@fluid-topics/ft-viewer 2.1.22 → 2.1.24

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 Nf=Object.defineProperty;var Y=(t,e)=>{for(var r in e)Nf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(C,x){if(C=C.toLowerCase(),this._getDefinition(C)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${C}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let O=x.prototype.attributeChangedCallback,D=new Set(x.observedAttributes||[]);g(x,D,O);let ee={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:O,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(C,ee),this._definitionsByClass.set(x,ee);let W=r.call(o,C);W||(W=h(C),e.call(o,C,W)),this===window.customElements&&(s.set(x,ee),ee.standInClass=W);let j=this._awaitingUpgrade.get(C);if(j){this._awaitingUpgrade.delete(C);for(let U of j)a.delete(U),b(U,ee,!0)}let k=this._whenDefinedPromises.get(C);return k!==void 0&&(k.resolve(x),this._whenDefinedPromises.delete(C)),x}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(C){return this._definitionsByTag.get(C)?.elementClass}_getDefinition(C){return this._definitionsByTag.get(C)}whenDefined(C){let x=this._getDefinition(C);if(x!==void 0)return Promise.resolve(x.elementClass);let O=this._whenDefinedPromises.get(C);return O===void 0&&(O={},O.promise=new Promise(D=>O.resolve=D),this._whenDefinedPromises.set(C,O)),O.promise}_upgradeWhenDefined(C,x,O){let D=this._awaitingUpgrade.get(x);D||this._awaitingUpgrade.set(x,D=new Set),O?D.add(C):D.delete(C)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let O=s.get(this.constructor);if(!O)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],O.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,O),x},window.HTMLElement.prototype=t.prototype;let p=C=>C===document||C instanceof ShadowRoot,m=C=>{let x=C.getRootNode();if(!p(x)){let O=E[E.length-1];if(O instanceof CustomElementRegistry)return O;x=O.getRootNode(),p(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},h=C=>class{static get formAssociated(){return!0}constructor(){let O=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(O,HTMLElement.prototype);let D=m(O)||window.customElements,ee=D._getDefinition(C);return ee?b(O,ee):a.set(O,D),O}connectedCallback(){let O=n.get(this);O?O.connectedCallback&&O.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!0)}disconnectedCallback(){let O=n.get(this);O?O.disconnectedCallback&&O.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let O=n.get(this);O&&O.formAssociated&&O?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let O=n.get(this);O?.formAssociated&&O?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let O=n.get(this);O?.formAssociated&&O?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let O=n.get(this);O?.formAssociated&&O?.formStateRestoreCallback?.apply(this,arguments)}},g=(C,x,O)=>{if(x.size===0||O===void 0)return;let D=C.prototype.setAttribute;D&&(C.prototype.setAttribute=function(j,k){let U=j.toLowerCase();if(x.has(U)){let q=this.getAttribute(U);D.call(this,U,k),O.call(this,U,q,k)}else D.call(this,U,k)});let ee=C.prototype.removeAttribute;ee&&(C.prototype.removeAttribute=function(j){let k=j.toLowerCase();if(x.has(k)){let U=this.getAttribute(k);ee.call(this,k),O.call(this,k,U,null)}else ee.call(this,k)});let W=C.prototype.toggleAttribute;W&&(C.prototype.toggleAttribute=function(j,k){let U=j.toLowerCase();if(x.has(U)){let q=this.getAttribute(U);W.call(this,U,k);let Ne=this.getAttribute(U);O.call(this,U,q,Ne)}else W.call(this,U,k)})},y=C=>{let x=Object.getPrototypeOf(C);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(C,window.HTMLElement):y(x)},b=(C,x,O=!1)=>{Object.setPrototypeOf(C,x.elementClass.prototype),n.set(C,x),d=C;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(D=>{C.hasAttribute(D)&&x.attributeChangedCallback.call(C,D,null,C.getAttribute(D))}),O&&x.connectedCallback&&C.isConnected&&x.connectedCallback.call(C)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(C){let x=w.apply(this,arguments);return C.customElements&&(x.customElements=C.customElements),x};let E=[document],_=(C,x,O=void 0)=>{let D=(O?Object.getPrototypeOf(O):C.prototype)[x];C.prototype[x]=function(){E.push(this);let ee=D.apply(O||this,arguments);return ee!==void 0&&l.set(ee,this),E.pop(),ee}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let P=(C,x)=>{let O=Object.getOwnPropertyDescriptor(C.prototype,x);Object.defineProperty(C.prototype,x,{...O,set(D){E.push(this),O.set.call(this,D),E.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let C=new WeakMap,x=HTMLElement.prototype.attachInternals,O=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...j){let k=x.call(this,...j);return C.set(k,this),k},O.forEach(j=>{let k=window.ElementInternals.prototype,U=k[j];k[j]=function(...q){let Ne=C.get(this);if(n.get(Ne).formAssociated===!0)return U?.call(this,...q);throw new DOMException(`Failed to execute ${U} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class ee{constructor(k){let U=new Map;k.forEach((q,Ne)=>{let Sa=q.getAttribute("name"),rc=U.get(Sa)||[];this[+Ne]=q,rc.push(q),U.set(Sa,rc)}),this.length=k.length,U.forEach((q,Ne)=>{q&&(q.length===1?this[Ne]=q[0]:this[Ne]=new D(q))})}namedItem(k){return this[k]}}let W=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let j=W.get.call(this,[]),k=[];for(let U of j){let q=n.get(U);(!q||q.formAssociated===!0)&&k.push(U)}return new ee(k)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var Pa={};Y(Pa,{CSSResult:()=>io,LitElement:()=>It,ReactiveElement:()=>ct,_$LE:()=>yc,_$LH:()=>La,adoptStyles:()=>jo,css:()=>A,defaultConverter:()=>no,getCompatibleStyle:()=>Hi,html:()=>v,isServer:()=>Qg,mathml:()=>Ta,noChange:()=>Oe,notEqual:()=>Ko,nothing:()=>L,render:()=>Ia,supportsAdoptingStyleSheets:()=>Wo,svg:()=>Jo,unsafeCSS:()=>zt});var Vi=globalThis,Wo=Vi.ShadowRoot&&(Vi.ShadyCSS===void 0||Vi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ca=Symbol(),oc=new WeakMap,io=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ca)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(Wo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=oc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&oc.set(r,e))}return e}toString(){return this.cssText}},zt=t=>new io(typeof t=="string"?t:t+"",void 0,Ca),A=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new io(r,t,Ca)},jo=(t,e)=>{if(Wo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Vi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Hi=Wo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return zt(r)})(t):t;var{is:Df,defineProperty:Mf,getOwnPropertyDescriptor:$f,getOwnPropertyNames:Ff,getOwnPropertySymbols:Uf,getPrototypeOf:Bf}=Object,zi=globalThis,ic=zi.trustedTypes,Vf=ic?ic.emptyScript:"",Hf=zi.reactiveElementPolyfillSupport,Go=(t,e)=>t,no={toAttribute(t,e){switch(e){case Boolean:t=t?Vf: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}},Ko=(t,e)=>!Df(t,e),nc={attribute:!0,type:String,converter:no,reflect:!1,useDefault:!1,hasChanged:Ko};Symbol.metadata??=Symbol("metadata"),zi.litPropertyMetadata??=new WeakMap;var ct=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=nc){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Mf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=$f(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??nc}static _$Ei(){if(this.hasOwnProperty(Go("elementProperties")))return;let e=Bf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Go("properties"))){let r=this.properties,o=[...Ff(r),...Uf(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Hi(n))}else e!==void 0&&r.push(Hi(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:no).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:no;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Ko)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[Go("elementProperties")]=new Map,ct[Go("finalized")]=new Map,Hf?.({ReactiveElement:ct}),(zi.reactiveElementVersions??=[]).push("2.1.2");var Ea=globalThis,ac=t=>t,Wi=Ea.trustedTypes,sc=Wi?Wi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Oa="$lit$",Wt=`lit$${Math.random().toFixed(9).slice(2)}$`,Aa="?"+Wt,zf=`<${Aa}>`,Rr=document,qo=()=>Rr.createComment(""),Yo=t=>t===null||typeof t!="object"&&typeof t!="function",Ra=Array.isArray,fc=t=>Ra(t)||typeof t?.[Symbol.iterator]=="function",wa=`[
2
- \f\r]`,Zo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lc=/-->/g,cc=/>/g,Or=RegExp(`>|${wa}(?:([^\\s"'>=/]+)(${wa}*=${wa}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dc=/'/g,uc=/"/g,hc=/^(?:script|style|textarea|title)$/i,_a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),v=_a(1),Jo=_a(2),Ta=_a(3),Oe=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pc=new WeakMap,Ar=Rr.createTreeWalker(Rr,129);function mc(t,e){if(!Ra(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sc!==void 0?sc.createHTML(e):e}var gc=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Zo;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===Zo?m[1]==="!--"?s=lc:m[1]!==void 0?s=cc:m[2]!==void 0?(hc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Or):m[3]!==void 0&&(s=Or):s===Or?m[0]===">"?(s=n??Zo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,p=m[1],s=m[3]===void 0?Or:m[3]==='"'?uc:dc):s===uc||s===dc?s=Or:s===lc||s===cc?s=Zo:(s=Or,n=void 0);let y=s===Or&&t[l+1].startsWith("/>")?" ":"";a+=s===Zo?d+zf:h>=0?(o.push(p),d.slice(0,h)+Oa+d.slice(h)+Wt+y):d+Wt+(h===-2?l:y)}return[mc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Xo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,m]=gc(e,r);if(this.el=t.createElement(p,o),Ar.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Ar.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Oa)){let g=m[s++],y=n.getAttribute(h).split(Wt),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?Gi:b[1]==="?"?Ki:b[1]==="@"?Zi:Tr}),n.removeAttribute(h)}else h.startsWith(Wt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(hc.test(n.tagName)){let h=n.textContent.split(Wt),g=h.length-1;if(g>0){n.textContent=Wi?Wi.emptyScript:"";for(let y=0;y<g;y++)n.append(h[y],qo()),Ar.nextNode(),d.push({type:2,index:++a});n.append(h[g],qo())}}}else if(n.nodeType===8)if(n.data===Aa)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Wt,h+1))!==-1;)d.push({type:7,index:a}),h+=Wt.length-1}a++}}static createElement(e,r){let o=Rr.createElement("template");return o.innerHTML=e,o}};function _r(t,e,r=t,o){if(e===Oe)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Yo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=_r(t,n._$AS(t,e.values),n,o)),e}var ji=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Rr).importNode(r,!0);Ar.currentNode=n;let a=Ar.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ao(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new qi(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Ar.nextNode(),s++)}return Ar.currentNode=Rr,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},ao=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=_r(this,e,r),Yo(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==Oe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fc(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!==L&&Yo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Rr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Xo.createElement(mc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ji(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=pc.get(e.strings);return r===void 0&&pc.set(e.strings,r=new Xo(e)),r}k(e){Ra(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(qo()),this.O(qo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=ac(e).nextSibling;ac(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=L}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=_r(this,e,r,0),s=!Yo(e)||e!==this._$AH&&e!==Oe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=_r(this,l[o+d],r,d),p===Oe&&(p=this._$AH[d]),s||=!Yo(p)||p!==this._$AH[d],p===L?e=L:e!==L&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gi=class extends Tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},Ki=class extends Tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==L)}},Zi=class extends Tr{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=_r(this,e,r,0)??L)===Oe)return;let o=this._$AH,n=e===L&&o!==L||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==L&&(o===L||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},qi=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){_r(this,e)}},La={M:Oa,P:Wt,A:Aa,C:1,L:gc,R:ji,D:fc,V:_r,I:ao,H:Tr,N:Ki,U:Zi,B:Gi,F:qi},Wf=Ea.litHtmlPolyfillSupport;Wf?.(Xo,ao),(Ea.litHtmlVersions??=[]).push("3.3.3");var Ia=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new ao(e.insertBefore(qo(),a),a,void 0,r??{})}return n._$AI(t),n};var ka=globalThis,It=class extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ia(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}};It._$litElement$=!0,It.finalized=!0,ka.litElementHydrateSupport?.({LitElement:It});var jf=ka.litElementPolyfillSupport;jf?.({LitElement:It});var yc={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(ka.litElementVersions??=[]).push("4.2.2");var Qg=!1;var Da={};Y(Da,{customElement:()=>Gf,eventOptions:()=>Yi,property:()=>f,query:()=>F,queryAll:()=>Na,queryAssignedElements:()=>Qo,queryAssignedNodes:()=>ei,queryAsync:()=>qf,standardProperty:()=>bc,state:()=>I});var Gf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Kf={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Ko},bc=(t=Kf,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+o)};function f(t){return(e,r)=>typeof r=="object"?bc(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function I(t){return f({...t,state:!0,attribute:!1})}function Yi(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var vt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function F(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return vt(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return vt(r,o,{get(){return a(this)}})}}var Zf;function Na(t){return(e,r)=>vt(e,r,{get(){return(this.renderRoot??(Zf??=document.createDocumentFragment())).querySelectorAll(t)}})}function qf(t){return(e,r)=>vt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Qo(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function ei(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Ma={};Y(Ma,{repeat:()=>qe});var kt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rt=t=>(...e)=>({_$litDirective$:t,values:e}),dt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Yf}=La,vc=t=>t;var Sc=t=>t.strings===void 0,xc=()=>document.createComment(""),so=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(xc(),n),s=o.insertBefore(xc(),n);r=new Yf(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=vc(d).nextSibling;vc(o).insertBefore(d,n),d=p}}}return r},ar=(t,e,r=t)=>(t._$AI(e,r),t),Xf={},Cc=(t,e=Xf)=>t._$AH=e,wc=t=>t._$AH,Xi=t=>{t._$AR(),t._$AA.remove()};var Ec=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},qe=rt(class extends dt{constructor(t){if(super(t),t.type!==kt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=wc(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,y=0,b=a.length-1;for(;h<=g&&y<=b;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[y])d[y]=ar(n[h],a[y]),h++,y++;else if(l[g]===s[b])d[b]=ar(n[g],a[b]),g--,b--;else if(l[h]===s[b])d[b]=ar(n[h],a[b]),so(t,d[b+1],n[h]),h++,b--;else if(l[g]===s[y])d[y]=ar(n[g],a[y]),so(t,n[h],n[g]),g--,y++;else if(p===void 0&&(p=Ec(s,y,b),m=Ec(l,h,g)),p.has(l[h]))if(p.has(l[g])){let w=m.get(s[y]),E=w!==void 0?n[w]:null;if(E===null){let _=so(t,n[h]);ar(_,a[y]),d[y]=_}else d[y]=ar(E,a[y]),so(t,n[h],E),n[w]=null;y++}else Xi(n[g]),g--;else Xi(n[h]),h++;for(;y<=b;){let w=so(t,d[b+1]);ar(w,a[y]),d[y++]=w}for(;h<=g;){let w=n[h++];w!==null&&Xi(w)}return this.ut=s,Cc(t,d),Oe}});var $a={};Y($a,{classMap:()=>ne});var ne=rt(class extends dt{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(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return Oe}});var Fa={};Y(Fa,{styleMap:()=>Qf});var Oc="important",Jf=" !"+Oc,Qf=rt(class extends dt{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 o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Jf);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?Oc:""):r[o]=n}}return Oe}});var Ua={};Y(Ua,{UnsafeHTMLDirective:()=>lo,unsafeHTML:()=>ti});var lo=class extends dt{constructor(e){if(super(e),this.it=L,e.type!==kt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===L||e==null)return this._t=void 0,this.it=e;if(e===Oe)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:[]}}};lo.directiveName="unsafeHTML",lo.resultType=1;var ti=rt(lo);var Za={};Y(Za,{CacheRegistry:()=>Nt,ClearCacheEvent:()=>ai});var Va={};Y(Va,{CancelablePromise:()=>Ji,CanceledPromiseError:()=>Lr,cancelable:()=>Ba});var Lr=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Ji=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new Lr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new Lr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ba=t=>new Ji((e,r)=>t.then(e).catch(r));var Ka={};Y(Ka,{FtNotificationEvent:()=>Pt,PostResizeEvent:()=>Ga,PreResizeEvent:()=>ja,WithEventBus:()=>Gt,withEventBus:()=>tn});var Wa={};Y(Wa,{applyMixinOnce:()=>fe,customElements:()=>Z,dateReviver:()=>ih,deepCopy:()=>ot,deepEqual:()=>it,delay:()=>Qi,eventPathContainsMatchingElement:()=>oi,everyDeep:()=>oh,flatDeep:()=>_c,forEachDeep:()=>Tc,getComposedPathTo:()=>za,hasChanged:()=>St,ignoreComposingEvents:()=>jt,last:()=>ii,minmax:()=>Ir,parseDate:()=>en,randomId:()=>ni,someDeep:()=>Lc,unslotText:()=>co,waitFor:()=>Rc,waitUntil:()=>rh});var Ha={};Y(Ha,{customElement:()=>ri,dateProperty:()=>th,isNumber:()=>Ac,jsonProperty:()=>De,numberProperty:()=>xt,optionalNumberProperty:()=>eh});var ri=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function De(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return ot(t);try{return JSON.parse(r)}catch{return ot(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:St,...e??{}})}function eh(t){return xt(t)}function xt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Ac(e)?Ir(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Ac(t){return!isNaN(parseFloat(t))}function th(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 Qi=t=>new Promise(e=>setTimeout(e,t));async function rh(t,e=10,r=2e4){await Rc(async()=>await t()||void 0,e,r)}async function Rc(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await Qi(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function _c(t,e){return t.flatMap(r=>[r,..._c(e(r),e)])}function Tc(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Lc(t,e,r){let o=!1;return Tc(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function oh(t,e,r){return!Lc(t,e,(o,n,a,s)=>!r(o,n,a,s))}function ih(...t){return(e,r)=>t.includes(e)?en(r):r}function en(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function nh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!it(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!it(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!it(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function it(t,e){try{return nh(t,e)}catch{return!1}}function St(t,e){return!it(t,e)}function oi(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Ir(t,e,r){return Math.min(Math.max(t,e),r)}function ii(t){return t[t.length-1]}function co(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>co(e)).join(""):t?.textContent||""}function za(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function ot(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ni(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function fe(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function jt(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function Z(t){for(let[e,r]of Object.entries(t))ri(e)(r)}var Pt=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})}},Ga=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},tn=fe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Gt=class extends tn(Object){};var ai=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Nt=class extends Gt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new ai(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new ai([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=Ba(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Ja={};Y(Ja,{ClusteringHelper:()=>sr,formatHierarchicalValues:()=>Xa});var Ya={};Y(Ya,{accessBreadcrumb:()=>ah,accessResult:()=>uo,accessResultId:()=>qa,accessResultUrl:()=>si});function uo(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function qa(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.contentId}function si(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.viewerUrl}function ah(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 Xa(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var sr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=uo(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(Xa(l)),s.push(Xa(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,y)=>y.findIndex(b=>b.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var Qa={};Y(Qa,{Debouncer:()=>Me});var Me=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var os={};Y(os,{designSystemVariables:()=>S});var rs={};Y(rs,{DesignSystemFamily:()=>li,DesignSystemSize:()=>ci,FtCssVariableFactory:()=>i,badge:()=>xh,banner:()=>vh,button:()=>ch,card:()=>dh,chart:()=>Mh,checkbox:()=>ph,chip:()=>gh,chipChoice:()=>mh,chipGroup:()=>yh,collapsible:()=>Nh,combobox:()=>kh,dateRangePicker:()=>Hh,drawer:()=>Rh,floatingMenu:()=>Ih,foundation:()=>c,link:()=>bh,modal:()=>Oh,notice:()=>Fh,notification:()=>Bh,pageDesigner:()=>$h,pageFooter:()=>wh,pageHeader:()=>Ch,pageLayout:()=>Eh,popover:()=>Ph,radio:()=>fh,reorderableList:()=>Ah,resolveFamilyClass:()=>es,resolveSizeClass:()=>ts,semantic:()=>u,setVariable:()=>R,switch_:()=>Dh,table:()=>hh,tabs:()=>_h,textArea:()=>Lh,textInput:()=>Th,titleBreadcrumb:()=>Sh,toggle:()=>Uh,tooltip:()=>Vh,treeList:()=>uh,typographies:()=>sh,typographyBody1Medium:()=>Mc,typographyBody1Regular:()=>Dc,typographyBody1Semibold:()=>$c,typographyBody2Medium:()=>Uc,typographyBody2MediumUnderline:()=>Bc,typographyBody2Regular:()=>Fc,typographyBody2Semibold:()=>Vc,typographyCaption1Medium:()=>Hc,typographyCaption1Semibold:()=>zc,typographyCaption2Bold:()=>Gc,typographyCaption2Medium:()=>Wc,typographyCaption2Semibold:()=>jc,typographyDisplay:()=>Ic,typographyTitle1:()=>kc,typographyTitle2:()=>Pc,typographyTitle3:()=>Nc,typographyVariants:()=>lh});var lr=t=>typeof t=="string"?zt(t):t,i=class{static create(e,r,o,n){let a=l=>lr(l??n),s=A`var(${lr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${lr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=A`var(${lr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${lr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=A`var(${lr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>A`var(${lr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function R(t,e){return lr(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ic={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},kc={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Pc={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Nc={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Dc={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Mc={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},$c={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Fc={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Uc={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Bc={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Vc={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Hc={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},zc={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Wc={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},jc={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Gc={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},sh={display:Ic,"title-1":kc,"title-2":Pc,"title-3":Nc,"body-1-regular":Dc,"body-1-medium":Mc,"body-1-semibold":$c,"body-2-regular":Fc,"body-2-medium":Uc,"body-2-medium-underline":Bc,"body-2-semibold":Vc,"caption-1-medium":Hc,"caption-1-semibold":zc,"caption-2-medium":Wc,"caption-2-semibold":jc,"caption-2-bold":Gc},lh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var ch={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var dh={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var uh={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var ph={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var fh={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var hh={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var mh={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var gh={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var yh={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var bh={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)};var vh={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var xh={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Sh={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Ch={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var wh={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Eh={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var Oh={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Ah={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Rh={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var _h={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Th={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Lh={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Ih={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var kh={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Ph={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Nh={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Dh={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Mh={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var $h={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Fh={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var Uh={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)};var Bh={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Vh={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var Hh={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var li;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(li||(li={}));var ci;(function(t){t.large="large",t.medium="medium",t.small="small"})(ci||(ci={}));function es(t){return`ftds--family-${t}`}function ts(t){return`ftds--size-${t}`}var S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var is={};Y(is,{DynamicImporter:()=>rn,dynamicImporter:()=>zh});var rn=class{async import(e){if(e)return import(e)}},zh=new rn;var ys={};Y(ys,{computeOffsetAutoPosition:()=>gs,computeOffsetPosition:()=>mi});var Zc=["top","right","bottom","left"],Kc=["start","end"],as=Zc.reduce((t,e)=>t.concat(e,e+"-"+Kc[0],e+"-"+Kc[1]),[]),kr=Math.min,Dt=Math.max,di=Math.round;var Mt=t=>({x:t,y:t}),Wh={left:"right",right:"left",bottom:"top",top:"bottom"};function qc(t,e,r){return Dt(t,kr(e,r))}function po(t,e){return typeof t=="function"?t(e):t}function Pr(t){return t.split("-")[0]}function $t(t){return t.split("-")[1]}function ss(t){return t==="x"?"y":"x"}function ls(t){return t==="y"?"height":"width"}function fo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function cs(t){return ss(fo(t))}function Yc(t,e,r){r===void 0&&(r=!1);let o=$t(t),n=cs(t),a=ls(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ns(s)),[s,ns(s)]}function Xc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ns(t){let e=Pr(t);return Wh[e]+t.slice(e.length)}function jh(t){var e,r,o,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(n=t.left)!=null?n:0}}function Jc(t){return typeof t!="number"?jh(t):{top:t,right:t,bottom:t,left:t}}function Nr(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function Qc(t,e,r){let{reference:o,floating:n}=t,a=fo(e),s=cs(e),l=ls(s),d=Pr(e),p=a==="y",m=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,y;switch(d){case"top":y={x:m,y:o.y-n.height};break;case"bottom":y={x:m,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-n.width,y:h};break;default:y={x:o.x,y:o.y}}let b=$t(e);return b&&(y[s]+=g*(b==="end"?1:-1)*(r&&p?-1:1)),y}async function ed(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=po(e,t),b=Jc(y),E=l[g?h==="floating"?"reference":"floating":h],_=Nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),P=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(C))&&await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1},O=Nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:C,strategy:d}):P);return{top:(_.top-O.top+b.top)/x.y,bottom:(O.bottom-_.bottom+b.bottom)/x.y,left:(_.left-O.left+b.left)/x.x,right:(O.right-_.right+b.right)/x.x}}var Gh=50,td=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ed},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=Qc(p,o,d),g=o,y=0,b={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:_,fn:P}=E,{x:C,y:x,data:O,reset:D}=await P({x:m,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:l,elements:{reference:t,floating:e}});m=C??m,h=x??h,b[_]={...b[_],...O},D&&y<Gh&&(y++,typeof D=="object"&&(D.placement&&(g=D.placement),D.rects&&(p=D.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:m,y:h}=Qc(p,g,d)),w=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:b}};function Kh(t,e,r){return(t?[...r.filter(n=>$t(n)===t),...r.filter(n=>$t(n)!==t)]:r.filter(n=>Pr(n)===n)).filter(n=>t?$t(n)===t||(e?Xc(n)!==n:!1):!0)}var rd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=as,autoAlignment:y=!0,...b}=po(t,e),w=h!==void 0||g===as?Kh(h||null,y,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,_=w[E];if(_==null)return{};if(l!==_)return{reset:{placement:w[0]}};let P=await d.detectOverflow(e,b),C=Yc(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),x=[P[Pr(_)],P[C[0]],P[C[1]]],O=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:x}],D=w[E+1];if(D)return{data:{index:E+1,overflows:O},reset:{placement:D}};let ee=O.map(k=>{let U=$t(k.placement);return[k.placement,U&&m?k.overflows.slice(0,2).reduce((q,Ne)=>q+Ne,0):k.overflows[0],k.overflows]}).sort((k,U)=>k[1]-U[1]),j=((n=ee.filter(k=>k[2].slice(0,$t(k[0])?2:3).every(U=>U<=0))[0])==null?void 0:n[0])||ee[0][0];return j!==l?{data:{index:E+1,overflows:O},reset:{placement:j}}:{}}}};var Zh=new Set(["left","top"]);async function qh(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Pr(r),l=$t(r),d=fo(r)==="y",p=Zh.has(s)?-1:1,m=a&&d?-1:1,h=po(e,t),{mainAxis:g,crossAxis:y,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*m,y:g*p}:{x:g*p,y:y*m}}var od=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await qh(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},id=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:C,y:x}=P;return{x:C,y:x}}},...p}=po(t,e),m={x:r,y:o},h=await a.detectOverflow(e,p),g=fo(n),y=ss(g),b=m[y],w=m[g],E=(P,C)=>qc(C+h[P==="y"?"top":"left"],C,C-h[P==="y"?"bottom":"right"]);s&&(b=E(y,b)),l&&(w=E(g,w));let _=d.fn({...e,[y]:b,[g]:w});return{..._,data:{x:_.x-r,y:_.y-o,enabled:{[y]:s,[g]:l}}}}}};var nd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=po(t,e),d=await n.detectOverflow(e,l),p=Pr(r),m=$t(r),h=fo(r)==="y",{width:g,height:y}=o.floating,b,w;p==="top"||p==="bottom"?(b=p,w=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=m==="end"?"top":"bottom");let E=y-d.top-d.bottom,_=g-d.left-d.right,P=kr(y-d[b],E),C=kr(g-d[w],_),x=e.middlewareData.shift,O=!x,D=P,ee=C;x!=null&&x.enabled.x&&(ee=_),x!=null&&x.enabled.y&&(D=E),O&&!m&&(h?ee=g-2*Dt(d.left,d.right):D=y-2*Dt(d.top,d.bottom)),await s({...e,availableWidth:ee,availableHeight:D});let W=await n.getDimensions(a.floating);return g!==W.width||y!==W.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function Mr(t){return sd(t)?(t.nodeName||"").toLowerCase():"#document"}function Ye(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(sd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sd(t){return nn()?t instanceof Node||t instanceof Ye(t).Node:!1}function Ct(t){return nn()?t instanceof Element||t instanceof Ye(t).Element:!1}function Zt(t){return nn()?t instanceof HTMLElement||t instanceof Ye(t).HTMLElement:!1}function ad(t){return!nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ye(t).ShadowRoot}function ui(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=wt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function ld(t){return/^(table|td|th)$/.test(Mr(t))}function pi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Yh=/transform|translate|scale|rotate|perspective|filter/,Xh=/paint|layout|strict|content/,Dr=t=>!!t&&t!=="none",ds;function ho(t){let e=Ct(t)?wt(t):t;return Dr(e.transform)||Dr(e.translate)||Dr(e.scale)||Dr(e.rotate)||Dr(e.perspective)||!an()&&(Dr(e.backdropFilter)||Dr(e.filter))||Yh.test(e.willChange||"")||Xh.test(e.contain||"")}function cd(t){let e=cr(t);for(;Zt(e)&&!mo(e);){if(ho(e))return e;if(pi(e))return null;e=cr(e)}return null}function an(){return ds==null&&(ds=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ds}function mo(t){return/^(html|body|#document)$/.test(Mr(t))}function wt(t){return Ye(t).getComputedStyle(t)}function fi(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function cr(t){if(Mr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ad(t)&&t.host||Kt(t);return ad(e)?e.host:e}function dd(t){let e=cr(t);return mo(e)?(t.ownerDocument||t).body:Zt(e)&&ui(e)?e:dd(e)}function on(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=dd(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ye(n);if(a){let l=sn(s);return e.concat(s,s.visualViewport||[],ui(n)?n:[],l&&r?on(l):[])}else return e.concat(n,on(n,[],r))}function sn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fd(t){let e=wt(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Zt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=di(r)!==a||di(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function hd(t){return Ct(t)?t:t.contextElement}function go(t){let e=hd(t);if(!Zt(e))return Mt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=fd(e),s=(a?di(r.width):r.width)/o,l=(a?di(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Jh=Mt(0);function md(t){let e=Ye(t);return!an()||!e.visualViewport?Jh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ye(t)}function hi(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=hd(t),s=Mt(1);e&&(o?Ct(o)&&(s=go(o)):s=go(t));let l=Qh(a,r,o)?md(a):Mt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&o){let g=Ye(a),y=Ct(o)?Ye(o):o,b=g,w=sn(b);for(;w&&y!==b;){let E=go(w),_=w.getBoundingClientRect(),P=wt(w),C=_.left+(w.clientLeft+parseFloat(P.paddingLeft))*E.x,x=_.top+(w.clientTop+parseFloat(P.paddingTop))*E.y;d*=E.x,p*=E.y,m*=E.x,h*=E.y,d+=C,p+=x,b=Ye(w),w=sn(b)}}return Nr({width:m,height:h,x:d,y:p})}function ln(t,e){let r=fi(t).scrollLeft;return e?e.left+r:hi(Kt(t)).left+r}function gd(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-ln(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function em(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=Kt(o),l=e?pi(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=Mt(1),m=Mt(0),h=Zt(o);if((h||!a)&&((Mr(o)!=="body"||ui(s))&&(d=fi(o)),h)){let y=hi(o);p=go(o),m.x=y.x+o.clientLeft,m.y=y.y+o.clientTop}let g=s&&!h&&!a?gd(s,d):Mt(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function tm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function rm(t){let e=fi(t),r=t.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+ln(t),s=-e.scrollTop;return wt(r).direction==="rtl"&&(a+=Dt(t.clientWidth,r.clientWidth)-o),{width:o,height:n,x:a,y:s}}var om=25;function im(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=Ye(t),a=Kt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,m=0;if(s){let g=!an()||e==="fixed";o?g||(p=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,m=s.offsetTop))}if(ln(a)<=0){let g=a.ownerDocument,y=g.body,b=getComputedStyle(y),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-w),_=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;_<=om&&(l-=_)}return{width:l,height:d,x:p,y:m}}function nm(t,e){let r=hi(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=go(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function ud(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=im(t,r,e);else if(e==="document")o=rm(Kt(t));else if(Ct(e))o=nm(e,r);else{let n=md(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Nr(o)}function am(t,e){let r=e.get(t);if(r)return r;let o=on(t,[],!1).filter(l=>Ct(l)&&Mr(l)!=="body"),n=null,a=wt(t).position==="fixed",s=a?cr(t):t;for(;Ct(s)&&!mo(s);){let l=wt(s),d=ho(s),p=n?n.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):n=l,s=cr(s)}return e.set(t,o),o}function sm(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?pi(e)?[]:am(e,this._c):[].concat(r),o],l=ud(e,s[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let y=ud(e,s[g],n);d=Dt(y.top,d),p=kr(y.right,p),m=kr(y.bottom,m),h=Dt(y.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function lm(t){let{width:e,height:r}=fd(t);return{width:e,height:r}}function cm(t,e,r){let o=Zt(e),n=Kt(e),a=r==="fixed",s=hi(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Mt(0);if((o||!a)&&((Mr(e)!=="body"||ui(n))&&(l=fi(e)),o)){let g=hi(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&n&&(d.x=ln(n));let p=n&&!o&&!a?gd(n,l):Mt(0),m=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:s.width,height:s.height}}function us(t){return wt(t).position==="static"}function pd(t,e){if(!Zt(t)||wt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function yd(t,e){let r=Ye(t);if(pi(t))return r;if(!Zt(t)){let n=cr(t);for(;n&&!mo(n);){if(Ct(n)&&!us(n))return n;n=cr(n)}return r}let o=pd(t,e);for(;o&&ld(o)&&us(o);)o=pd(o,e);return o&&mo(o)&&us(o)&&!ho(o)?r:o||cd(t)||r}var dm=async function(t){let e=this.getOffsetParent||yd,r=this.getDimensions,o=await r(t.floating);return{reference:cm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function um(t){return wt(t).direction==="rtl"}var yo={convertOffsetParentRelativeRectToViewportRelativeRect:em,getDocumentElement:Kt,getClippingRect:sm,getOffsetParent:yd,getElementRects:dm,getClientRects:tm,getDimensions:lm,getScale:go,isElement:Ct,isRTL:um};var bd=od,ps=rd,vd=id;var xd=nd;var fs=(t,e,r)=>{let o=new Map,n=r??{},a={...yo,...n.platform,_c:o};return td(t,e,{...n,platform:a})};function ms(t){return pm(t)}function hs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function pm(t){for(let e=t;e;e=hs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=hs(t);e;e=hs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ho(r)||e.tagName==="BODY"))return e}return null}async function mi(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},fs(t,e,{strategy:o.strategy,platform:{...yo,getOffsetParent:n=>yo.getOffsetParent(n,ms)},middleware:[vd({crossAxis:!0}),ps({allowedPlacements:[o.placement]})]})}async function gs(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,fs(t,e,{placement:l,strategy:n,platform:{...yo,getOffsetParent:p=>yo.getOffsetParent(p,ms)},middleware:[bd(s??4),ps({allowedPlacements:o}),xd({apply({availableHeight:p,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var bs={};Y(bs,{isSlotEmptyOrWithoutContent:()=>fm});var fm=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Es={};Y(Es,{FtdsBase:()=>ws,toFtdsBase:()=>Rd});var Cs={};Y(Cs,{ExportpartsUpdatedEvent:()=>$r,FtLitElement:()=>$});var vs={};Y(vs,{ScopedRegistryLitElement:()=>gi});var gi=class extends It{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return jo(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){ri(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 Ss={};Y(Ss,{shadowQuerySelector:()=>xs,shadowQuerySelectorAll:()=>hm});function xs(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function hm(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var bo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ed,Sd=Symbol("constructorPrototype"),Cd=Symbol("constructorName"),Od=Symbol("exportpartsDebouncer"),wd=Symbol("dynamicDependenciesLoaded"),$r=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};$r.eventName="exportparts-updated";var $=class extends gi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ed]=new Me(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Od].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[Cd]=this.constructor.name,this[Sd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cd]&&Object.setPrototypeOf(this,this[Sd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[wd]||(r[wd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener($r.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener($r.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 $r)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=xs(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],w=[...y,...b].filter(d).map(E=>E.trim());for(let E of w)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(y=>`${g}:${y}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Ed=Od;bo([f()],$.prototype,"exportpartsPrefix",void 0);bo([De([])],$.prototype,"exportpartsPrefixes",void 0);bo([f({reflect:!0})],$.prototype,"exportparts",void 0);bo([f()],$.prototype,"customStylesheet",void 0);bo([f()],$.prototype,"elementToFocus",void 0);bo([I()],$.prototype,"useAdoptedStyleSheets",void 0);var Ad=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rd=fe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ci.medium,this.family=li.neutral}getDesignSystemBaseClasses(){return{[es(this.family)]:!0,[ts(this.size)]:!0}}}return Ad([f()],e.prototype,"size",void 0),Ad([f()],e.prototype,"family",void 0),e}),ws=class extends Rd($){};var _d={};var Rs={};Y(Rs,{highlightHtml:()=>As,highlightHtmlColorCssVariable:()=>Td,highlightHtmlStyles:()=>gm});var Fr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,o(m)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>d.push(y),n)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var yi=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 Fr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Fr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,m=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,m),e.value=h+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=m),e.nodes[b].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let m=p.index;if(s!==0)for(let h=1;h<s;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let m=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,m,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,m,g=>r(g,l,a.value.substring(p,m),d),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,y)=>this.opt.filter(y,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=Fr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Os(t){let e=new yi(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var mm=Os,Td=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),gm=A`
1
+ "use strict";(()=>{var kf=Object.defineProperty;var Y=(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,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,v){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let O=v.prototype.attributeChangedCallback,D=new Set(v.observedAttributes||[]);g(v,D,O);let ee={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:O,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(S,ee),this._definitionsByClass.set(v,ee);let z=r.call(o,S);z||(z=h(S),e.call(o,S,z)),this===window.customElements&&(s.set(v,ee),ee.standInClass=z);let W=this._awaitingUpgrade.get(S);if(W){this._awaitingUpgrade.delete(S);for(let U of W)a.delete(U),b(U,ee,!0)}let k=this._whenDefinedPromises.get(S);return k!==void 0&&(k.resolve(v),this._whenDefinedPromises.delete(S)),v}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let v=this._getDefinition(S);if(v!==void 0)return Promise.resolve(v.elementClass);let O=this._whenDefinedPromises.get(S);return O===void 0&&(O={},O.promise=new Promise(D=>O.resolve=D),this._whenDefinedPromises.set(S,O)),O.promise}_upgradeWhenDefined(S,v,O){let D=this._awaitingUpgrade.get(v);D||this._awaitingUpgrade.set(v,D=new Set),O?D.add(S):D.delete(S)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let O=s.get(this.constructor);if(!O)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(t,[],O.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),n.set(v,O),v},window.HTMLElement.prototype=t.prototype;let p=S=>S===document||S instanceof ShadowRoot,m=S=>{let v=S.getRootNode();if(!p(v)){let O=E[E.length-1];if(O instanceof CustomElementRegistry)return O;v=O.getRootNode(),p(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},h=S=>class{static get formAssociated(){return!0}constructor(){let O=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(O,HTMLElement.prototype);let D=m(O)||window.customElements,ee=D._getDefinition(S);return ee?b(O,ee):a.set(O,D),O}connectedCallback(){let O=n.get(this);O?O.connectedCallback&&O.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let O=n.get(this);O?O.disconnectedCallback&&O.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let O=n.get(this);O&&O.formAssociated&&O?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let O=n.get(this);O?.formAssociated&&O?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let O=n.get(this);O?.formAssociated&&O?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let O=n.get(this);O?.formAssociated&&O?.formStateRestoreCallback?.apply(this,arguments)}},g=(S,v,O)=>{if(v.size===0||O===void 0)return;let D=S.prototype.setAttribute;D&&(S.prototype.setAttribute=function(W,k){let U=W.toLowerCase();if(v.has(U)){let X=this.getAttribute(U);D.call(this,U,k),O.call(this,U,X,k)}else D.call(this,U,k)});let ee=S.prototype.removeAttribute;ee&&(S.prototype.removeAttribute=function(W){let k=W.toLowerCase();if(v.has(k)){let U=this.getAttribute(k);ee.call(this,k),O.call(this,k,U,null)}else ee.call(this,k)});let z=S.prototype.toggleAttribute;z&&(S.prototype.toggleAttribute=function(W,k){let U=W.toLowerCase();if(v.has(U)){let X=this.getAttribute(U);z.call(this,U,k);let Pe=this.getAttribute(U);O.call(this,U,X,Pe)}else z.call(this,U,k)})},y=S=>{let v=Object.getPrototypeOf(S);if(v!==window.HTMLElement)return v===t?Object.setPrototypeOf(S,window.HTMLElement):y(v)},b=(S,v,O=!1)=>{Object.setPrototypeOf(S,v.elementClass.prototype),n.set(S,v),d=S;try{new v.elementClass}catch{y(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(D=>{S.hasAttribute(D)&&v.attributeChangedCallback.call(S,D,null,S.getAttribute(D))}),O&&v.connectedCallback&&S.isConnected&&v.connectedCallback.call(S)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let v=w.apply(this,arguments);return S.customElements&&(v.customElements=S.customElements),v};let E=[document],_=(S,v,O=void 0)=>{let D=(O?Object.getPrototypeOf(O):S.prototype)[v];S.prototype[v]=function(){E.push(this);let ee=D.apply(O||this,arguments);return ee!==void 0&&l.set(ee,this),E.pop(),ee}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let P=(S,v)=>{let O=Object.getOwnPropertyDescriptor(S.prototype,v);Object.defineProperty(S.prototype,v,{...O,set(D){E.push(this),O.set.call(this,D),E.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,v=HTMLElement.prototype.attachInternals,O=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...W){let k=v.call(this,...W);return S.set(k,this),k},O.forEach(W=>{let k=window.ElementInternals.prototype,U=k[W];k[W]=function(...X){let Pe=S.get(this);if(n.get(Pe).formAssociated===!0)return U?.call(this,...X);throw new DOMException(`Failed to execute ${U} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class ee{constructor(k){let U=new Map;k.forEach((X,Pe)=>{let ma=X.getAttribute("name"),Ql=U.get(ma)||[];this[+Pe]=X,Ql.push(X),U.set(ma,Ql)}),this.length=k.length,U.forEach((X,Pe)=>{X&&(X.length===1?this[Pe]=X[0]:this[Pe]=new D(X))})}namedItem(k){return this[k]}}let z=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let W=z.get.call(this,[]),k=[];for(let U of W){let X=n.get(U);(!X||X.formAssociated===!0)&&k.push(U)}return new ee(k)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var Ra={};Y(Ra,{CSSResult:()=>eo,LitElement:()=>_t,ReactiveElement:()=>nt,_$LE:()=>hc,_$LH:()=>Ea,adoptStyles:()=>Bo,css:()=>A,defaultConverter:()=>to,getCompatibleStyle:()=>Mi,html:()=>x,isServer:()=>ey,mathml:()=>wa,noChange:()=>Oe,notEqual:()=>Ho,nothing:()=>L,render:()=>Oa,supportsAdoptingStyleSheets:()=>Uo,svg:()=>Ko,unsafeCSS:()=>Vt});var Di=globalThis,Uo=Di.ShadowRoot&&(Di.ShadyCSS===void 0||Di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ga=Symbol(),ec=new WeakMap,eo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==ga)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Uo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=ec.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ec.set(r,e))}return e}toString(){return this.cssText}},Vt=t=>new eo(typeof t=="string"?t:t+"",void 0,ga),A=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new eo(r,t,ga)},Bo=(t,e)=>{if(Uo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Di.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Mi=Uo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Vt(r)})(t):t;var{is:Pf,defineProperty:Nf,getOwnPropertyDescriptor:Df,getOwnPropertyNames:Mf,getOwnPropertySymbols:$f,getPrototypeOf:Ff}=Object,$i=globalThis,tc=$i.trustedTypes,Uf=tc?tc.emptyScript:"",Bf=$i.reactiveElementPolyfillSupport,Vo=(t,e)=>t,to={toAttribute(t,e){switch(e){case Boolean:t=t?Uf: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}},Ho=(t,e)=>!Pf(t,e),rc={attribute:!0,type:String,converter:to,reflect:!1,useDefault:!1,hasChanged:Ho};Symbol.metadata??=Symbol("metadata"),$i.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=rc){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Nf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=Df(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??rc}static _$Ei(){if(this.hasOwnProperty(Vo("elementProperties")))return;let e=Ff(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Vo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vo("properties"))){let r=this.properties,o=[...Mf(r),...$f(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Mi(n))}else e!==void 0&&r.push(Mi(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:to).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:to;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Ho)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[Vo("elementProperties")]=new Map,nt[Vo("finalized")]=new Map,Bf?.({ReactiveElement:nt}),($i.reactiveElementVersions??=[]).push("2.1.2");var ba=globalThis,oc=t=>t,Fi=ba.trustedTypes,ic=Fi?Fi.createPolicy("lit-html",{createHTML:t=>t}):void 0,va="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,xa="?"+Ht,Vf=`<${xa}>`,Cr=document,Wo=()=>Cr.createComment(""),jo=t=>t===null||typeof t!="object"&&typeof t!="function",Sa=Array.isArray,dc=t=>Sa(t)||typeof t?.[Symbol.iterator]=="function",ya=`[
2
+ \f\r]`,zo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nc=/-->/g,ac=/>/g,xr=RegExp(`>|${ya}(?:([^\\s"'>=/]+)(${ya}*=${ya}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sc=/'/g,lc=/"/g,uc=/^(?:script|style|textarea|title)$/i,Ca=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Ca(1),Ko=Ca(2),wa=Ca(3),Oe=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),cc=new WeakMap,Sr=Cr.createTreeWalker(Cr,129);function pc(t,e){if(!Sa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ic!==void 0?ic.createHTML(e):e}var fc=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=zo;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===zo?m[1]==="!--"?s=nc:m[1]!==void 0?s=ac:m[2]!==void 0?(uc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=xr):m[3]!==void 0&&(s=xr):s===xr?m[0]===">"?(s=n??zo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,p=m[1],s=m[3]===void 0?xr:m[3]==='"'?lc:sc):s===lc||s===sc?s=xr:s===nc||s===ac?s=zo:(s=xr,n=void 0);let y=s===xr&&t[l+1].startsWith("/>")?" ":"";a+=s===zo?d+Vf:h>=0?(o.push(p),d.slice(0,h)+va+d.slice(h)+Ht+y):d+Ht+(h===-2?l:y)}return[pc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Go=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,m]=fc(e,r);if(this.el=t.createElement(p,o),Sr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Sr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(va)){let g=m[s++],y=n.getAttribute(h).split(Ht),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?Bi:b[1]==="?"?Vi:b[1]==="@"?Hi:Er}),n.removeAttribute(h)}else h.startsWith(Ht)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(uc.test(n.tagName)){let h=n.textContent.split(Ht),g=h.length-1;if(g>0){n.textContent=Fi?Fi.emptyScript:"";for(let y=0;y<g;y++)n.append(h[y],Wo()),Sr.nextNode(),d.push({type:2,index:++a});n.append(h[g],Wo())}}}else if(n.nodeType===8)if(n.data===xa)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Ht,h+1))!==-1;)d.push({type:7,index:a}),h+=Ht.length-1}a++}}static createElement(e,r){let o=Cr.createElement("template");return o.innerHTML=e,o}};function wr(t,e,r=t,o){if(e===Oe)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=jo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=wr(t,n._$AS(t,e.values),n,o)),e}var Ui=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Cr).importNode(r,!0);Sr.currentNode=n;let a=Sr.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ro(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new zi(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Sr.nextNode(),s++)}return Sr.currentNode=Cr,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},ro=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=wr(this,e,r),jo(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==Oe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):dc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==L&&jo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Cr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Go.createElement(pc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Ui(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=cc.get(e.strings);return r===void 0&&cc.set(e.strings,r=new Go(e)),r}k(e){Sa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(Wo()),this.O(Wo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=oc(e).nextSibling;oc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Er=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=L}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=wr(this,e,r,0),s=!jo(e)||e!==this._$AH&&e!==Oe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=wr(this,l[o+d],r,d),p===Oe&&(p=this._$AH[d]),s||=!jo(p)||p!==this._$AH[d],p===L?e=L:e!==L&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Bi=class extends Er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},Vi=class extends Er{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==L)}},Hi=class extends Er{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=wr(this,e,r,0)??L)===Oe)return;let o=this._$AH,n=e===L&&o!==L||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==L&&(o===L||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zi=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){wr(this,e)}},Ea={M:va,P:Ht,A:xa,C:1,L:fc,R:Ui,D:dc,V:wr,I:ro,H:Er,N:Vi,U:Hi,B:Bi,F:zi},Hf=ba.litHtmlPolyfillSupport;Hf?.(Go,ro),(ba.litHtmlVersions??=[]).push("3.3.3");var Oa=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new ro(e.insertBefore(Wo(),a),a,void 0,r??{})}return n._$AI(t),n};var Aa=globalThis,_t=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=Oa(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}};_t._$litElement$=!0,_t.finalized=!0,Aa.litElementHydrateSupport?.({LitElement:_t});var zf=Aa.litElementPolyfillSupport;zf?.({LitElement:_t});var hc={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Aa.litElementVersions??=[]).push("4.2.2");var ey=!1;var Ta={};Y(Ta,{customElement:()=>Wf,eventOptions:()=>Wi,property:()=>f,query:()=>F,queryAll:()=>_a,queryAssignedElements:()=>Zo,queryAssignedNodes:()=>qo,queryAsync:()=>Kf,standardProperty:()=>mc,state:()=>I});var Wf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var jf={attribute:!0,type:String,converter:to,reflect:!1,hasChanged:Ho},mc=(t=jf,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+o)};function f(t){return(e,r)=>typeof r=="object"?mc(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function I(t){return f({...t,state:!0,attribute:!1})}function Wi(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var gt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function F(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return gt(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return gt(r,o,{get(){return a(this)}})}}var Gf;function _a(t){return(e,r)=>gt(e,r,{get(){return(this.renderRoot??(Gf??=document.createDocumentFragment())).querySelectorAll(t)}})}function Kf(t){return(e,r)=>gt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Zo(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return 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 qo(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return gt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var La={};Y(La,{repeat:()=>Ke});var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qe=t=>(...e)=>({_$litDirective$:t,values:e}),at=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Zf}=Ea,gc=t=>t;var bc=t=>t.strings===void 0,yc=()=>document.createComment(""),oo=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(yc(),n),s=o.insertBefore(yc(),n);r=new Zf(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=gc(d).nextSibling;gc(o).insertBefore(d,n),d=p}}}return r},rr=(t,e,r=t)=>(t._$AI(e,r),t),qf={},vc=(t,e=qf)=>t._$AH=e,xc=t=>t._$AH,ji=t=>{t._$AR(),t._$AA.remove()};var Sc=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},Ke=Qe(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 o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=xc(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,y=0,b=a.length-1;for(;h<=g&&y<=b;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[y])d[y]=rr(n[h],a[y]),h++,y++;else if(l[g]===s[b])d[b]=rr(n[g],a[b]),g--,b--;else if(l[h]===s[b])d[b]=rr(n[h],a[b]),oo(t,d[b+1],n[h]),h++,b--;else if(l[g]===s[y])d[y]=rr(n[g],a[y]),oo(t,n[h],n[g]),g--,y++;else if(p===void 0&&(p=Sc(s,y,b),m=Sc(l,h,g)),p.has(l[h]))if(p.has(l[g])){let w=m.get(s[y]),E=w!==void 0?n[w]:null;if(E===null){let _=oo(t,n[h]);rr(_,a[y]),d[y]=_}else d[y]=rr(E,a[y]),oo(t,n[h],E),n[w]=null;y++}else ji(n[g]),g--;else ji(n[h]),h++;for(;y<=b;){let w=oo(t,d[b+1]);rr(w,a[y]),d[y++]=w}for(;h<=g;){let w=n[h++];w!==null&&ji(w)}return this.ut=s,vc(t,d),Oe}});var Ia={};Y(Ia,{classMap:()=>ie});var ie=Qe(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(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return Oe}});var ka={};Y(ka,{styleMap:()=>Xf});var Cc="important",Yf=" !"+Cc,Xf=Qe(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 o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Yf);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?Cc:""):r[o]=n}}return Oe}});var Pa={};Y(Pa,{UnsafeHTMLDirective:()=>io,unsafeHTML:()=>Yo});var io=class extends at{constructor(e){if(super(e),this.it=L,e.type!==Tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===L||e==null)return this._t=void 0,this.it=e;if(e===Oe)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:[]}}};io.directiveName="unsafeHTML",io.resultType=1;var Yo=Qe(io);var Ha={};Y(Ha,{CacheRegistry:()=>It,ClearCacheEvent:()=>ti});var Da={};Y(Da,{CancelablePromise:()=>Gi,CanceledPromiseError:()=>Or,cancelable:()=>Na});var Or=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Gi=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new Or("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new Or("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Na=t=>new Gi((e,r)=>t.then(e).catch(r));var Va={};Y(Va,{FtNotificationEvent:()=>Lt,PostResizeEvent:()=>Ba,PreResizeEvent:()=>Ua,WithEventBus:()=>Wt,withEventBus:()=>Yi});var Fa={};Y(Fa,{applyMixinOnce:()=>fe,customElements:()=>Z,dateReviver:()=>rh,deepCopy:()=>et,deepEqual:()=>Ve,delay:()=>Ki,eventPathContainsMatchingElement:()=>Jo,everyDeep:()=>th,flatDeep:()=>Oc,forEachDeep:()=>Ac,getComposedPathTo:()=>$a,hasChanged:()=>bt,ignoreComposingEvents:()=>zt,last:()=>Qo,minmax:()=>Ar,parseDate:()=>Zi,randomId:()=>ei,someDeep:()=>Rc,unslotText:()=>qi,waitFor:()=>Ec,waitUntil:()=>eh});var Ma={};Y(Ma,{customElement:()=>Xo,dateProperty:()=>Qf,isNumber:()=>wc,jsonProperty:()=>Ne,numberProperty:()=>yt,optionalNumberProperty:()=>Jf});var Xo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Ne(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 Jf(t){return yt(t)}function yt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return wc(e)?Ar(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function wc(t){return!isNaN(parseFloat(t))}function Qf(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 Ki=t=>new Promise(e=>setTimeout(e,t));async function eh(t,e=10,r=2e4){await Ec(async()=>await t()||void 0,e,r)}async function Ec(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await Ki(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Oc(t,e){return t.flatMap(r=>[r,...Oc(e(r),e)])}function Ac(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Rc(t,e,r){let o=!1;return Ac(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function th(t,e,r){return!Rc(t,e,(o,n,a,s)=>!r(o,n,a,s))}function rh(...t){return(e,r)=>t.includes(e)?Zi(r):r}function Zi(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function oh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ve(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ve(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ve(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ve(t,e){try{return oh(t,e)}catch{return!1}}function bt(t,e){return!Ve(t,e)}function Jo(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Ar(t,e,r){return Math.min(Math.max(t,e),r)}function Qo(t){return t[t.length-1]}function qi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>qi(e)).join(""):t?.textContent||""}function $a(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function et(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function fe(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function zt(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function Z(t){for(let[e,r]of Object.entries(t))Xo(e)(r)}var Lt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Ua=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ba=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Yi=fe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Wt=class extends Yi(Object){};var ti=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},It=class extends Wt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new ti(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new ti([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=Na(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Ga={};Y(Ga,{ClusteringHelper:()=>or,formatHierarchicalValues:()=>ja});var Wa={};Y(Wa,{accessBreadcrumb:()=>ih,accessResult:()=>no,accessResultId:()=>za,accessResultUrl:()=>ri});function no(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function za(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.contentId}function ri(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.viewerUrl}function ih(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 ja(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var or=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=no(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ja(l)),s.push(ja(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,y)=>y.findIndex(b=>b.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var Ka={};Y(Ka,{Debouncer:()=>De});var De=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xa={};Y(Xa,{designSystemVariables:()=>C});var Ya={};Y(Ya,{DesignSystemFamily:()=>oi,DesignSystemSize:()=>ii,FtCssVariableFactory:()=>i,badge:()=>bh,banner:()=>yh,button:()=>sh,card:()=>lh,chart:()=>Nh,checkbox:()=>dh,chip:()=>hh,chipChoice:()=>fh,chipGroup:()=>mh,collapsible:()=>kh,combobox:()=>Lh,dateRangePicker:()=>Bh,drawer:()=>Oh,floatingMenu:()=>Th,foundation:()=>c,link:()=>gh,modal:()=>wh,notice:()=>Mh,notification:()=>Fh,pageDesigner:()=>Dh,pageFooter:()=>Sh,pageHeader:()=>xh,pageLayout:()=>Ch,popover:()=>Ih,radio:()=>uh,reorderableList:()=>Eh,resolveFamilyClass:()=>Za,resolveSizeClass:()=>qa,semantic:()=>u,setVariable:()=>R,switch_:()=>Ph,table:()=>ph,tabs:()=>Ah,textArea:()=>_h,textInput:()=>Rh,titleBreadcrumb:()=>vh,toggle:()=>$h,tooltip:()=>Uh,treeList:()=>ch,typographies:()=>nh,typographyBody1Medium:()=>Pc,typographyBody1Regular:()=>kc,typographyBody1Semibold:()=>Nc,typographyBody2Medium:()=>Mc,typographyBody2MediumUnderline:()=>$c,typographyBody2Regular:()=>Dc,typographyBody2Semibold:()=>Fc,typographyCaption1Medium:()=>Uc,typographyCaption1Semibold:()=>Bc,typographyCaption2Bold:()=>zc,typographyCaption2Medium:()=>Vc,typographyCaption2Semibold:()=>Hc,typographyDisplay:()=>_c,typographyTitle1:()=>Tc,typographyTitle2:()=>Lc,typographyTitle3:()=>Ic,typographyVariants:()=>ah});var ir=t=>typeof t=="string"?Vt(t):t,i=class{static create(e,r,o,n){let a=l=>ir(l??n),s=A`var(${ir(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${ir(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=A`var(${ir(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${ir(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=A`var(${ir(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>A`var(${ir(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function R(t,e){return ir(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},_c={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Tc={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Lc={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ic={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},kc={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Pc={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Nc={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Dc={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Mc={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},$c={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Fc={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Uc={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Bc={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Vc={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Hc={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},zc={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},nh={display:_c,"title-1":Tc,"title-2":Lc,"title-3":Ic,"body-1-regular":kc,"body-1-medium":Pc,"body-1-semibold":Nc,"body-2-regular":Dc,"body-2-medium":Mc,"body-2-medium-underline":$c,"body-2-semibold":Fc,"caption-1-medium":Uc,"caption-1-semibold":Bc,"caption-2-medium":Vc,"caption-2-semibold":Hc,"caption-2-bold":zc},ah=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var sh={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var lh={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var ch={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var dh={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var uh={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var ph={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var fh={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var hh={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var mh={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var gh={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)};var yh={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var bh={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var vh={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var xh={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Sh={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Ch={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var wh={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Eh={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Oh={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var Ah={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Rh={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var _h={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Th={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Lh={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Ih={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var kh={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Ph={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Nh={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Dh={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Mh={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var $h={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)};var Fh={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Uh={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var Bh={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var oi;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(oi||(oi={}));var ii;(function(t){t.large="large",t.medium="medium",t.small="small"})(ii||(ii={}));function Za(t){return`ftds--family-${t}`}function qa(t){return`ftds--size-${t}`}var C={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ja={};Y(Ja,{DynamicImporter:()=>Xi,dynamicImporter:()=>Vh});var Xi=class{async import(e){if(e)return import(e)}},Vh=new Xi;var us={};Y(us,{computeOffsetAutoPosition:()=>ds,computeOffsetPosition:()=>di});var jc=["top","right","bottom","left"],Wc=["start","end"],es=jc.reduce((t,e)=>t.concat(e,e+"-"+Wc[0],e+"-"+Wc[1]),[]),Rr=Math.min,kt=Math.max,ni=Math.round;var Pt=t=>({x:t,y:t}),Hh={left:"right",right:"left",bottom:"top",top:"bottom"};function Gc(t,e,r){return kt(t,Rr(e,r))}function ao(t,e){return typeof t=="function"?t(e):t}function _r(t){return t.split("-")[0]}function Nt(t){return t.split("-")[1]}function ts(t){return t==="x"?"y":"x"}function rs(t){return t==="y"?"height":"width"}function so(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function os(t){return ts(so(t))}function Kc(t,e,r){r===void 0&&(r=!1);let o=Nt(t),n=os(t),a=rs(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Qa(s)),[s,Qa(s)]}function Zc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Qa(t){let e=_r(t);return Hh[e]+t.slice(e.length)}function zh(t){var e,r,o,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(n=t.left)!=null?n:0}}function qc(t){return typeof t!="number"?zh(t):{top:t,right:t,bottom:t,left:t}}function Tr(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function Yc(t,e,r){let{reference:o,floating:n}=t,a=so(e),s=os(e),l=rs(s),d=_r(e),p=a==="y",m=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,y;switch(d){case"top":y={x:m,y:o.y-n.height};break;case"bottom":y={x:m,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-n.width,y:h};break;default:y={x:o.x,y:o.y}}let b=Nt(e);return b&&(y[s]+=g*(b==="end"?1:-1)*(r&&p?-1:1)),y}async function Xc(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=ao(e,t),b=qc(y),E=l[g?h==="floating"?"reference":"floating":h],_=Tr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),P=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),v=await(a.isElement==null?void 0:a.isElement(S))&&await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1},O=Tr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:S,strategy:d}):P);return{top:(_.top-O.top+b.top)/v.y,bottom:(O.bottom-_.bottom+b.bottom)/v.y,left:(_.left-O.left+b.left)/v.x,right:(O.right-_.right+b.right)/v.x}}var Wh=50,Jc=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Xc},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=Yc(p,o,d),g=o,y=0,b={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:_,fn:P}=E,{x:S,y:v,data:O,reset:D}=await P({x:m,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:l,elements:{reference:t,floating:e}});m=S??m,h=v??h,b[_]={...b[_],...O},D&&y<Wh&&(y++,typeof D=="object"&&(D.placement&&(g=D.placement),D.rects&&(p=D.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:m,y:h}=Yc(p,g,d)),w=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:b}};function jh(t,e,r){return(t?[...r.filter(n=>Nt(n)===t),...r.filter(n=>Nt(n)!==t)]:r.filter(n=>_r(n)===n)).filter(n=>t?Nt(n)===t||(e?Zc(n)!==n:!1):!0)}var Qc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=es,autoAlignment:y=!0,...b}=ao(t,e),w=h!==void 0||g===es?jh(h||null,y,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,_=w[E];if(_==null)return{};if(l!==_)return{reset:{placement:w[0]}};let P=await d.detectOverflow(e,b),S=Kc(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),v=[P[_r(_)],P[S[0]],P[S[1]]],O=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:v}],D=w[E+1];if(D)return{data:{index:E+1,overflows:O},reset:{placement:D}};let ee=O.map(k=>{let U=Nt(k.placement);return[k.placement,U&&m?k.overflows.slice(0,2).reduce((X,Pe)=>X+Pe,0):k.overflows[0],k.overflows]}).sort((k,U)=>k[1]-U[1]),W=((n=ee.filter(k=>k[2].slice(0,Nt(k[0])?2:3).every(U=>U<=0))[0])==null?void 0:n[0])||ee[0][0];return W!==l?{data:{index:E+1,overflows:O},reset:{placement:W}}:{}}}};var Gh=new Set(["left","top"]);async function Kh(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=_r(r),l=Nt(r),d=so(r)==="y",p=Gh.has(s)?-1:1,m=a&&d?-1:1,h=ao(e,t),{mainAxis:g,crossAxis:y,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*m,y:g*p}:{x:g*p,y:y*m}}var ed=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Kh(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},td=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:S,y:v}=P;return{x:S,y:v}}},...p}=ao(t,e),m={x:r,y:o},h=await a.detectOverflow(e,p),g=so(n),y=ts(g),b=m[y],w=m[g],E=(P,S)=>Gc(S+h[P==="y"?"top":"left"],S,S-h[P==="y"?"bottom":"right"]);s&&(b=E(y,b)),l&&(w=E(g,w));let _=d.fn({...e,[y]:b,[g]:w});return{..._,data:{x:_.x-r,y:_.y-o,enabled:{[y]:s,[g]:l}}}}}};var rd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=ao(t,e),d=await n.detectOverflow(e,l),p=_r(r),m=Nt(r),h=so(r)==="y",{width:g,height:y}=o.floating,b,w;p==="top"||p==="bottom"?(b=p,w=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=m==="end"?"top":"bottom");let E=y-d.top-d.bottom,_=g-d.left-d.right,P=Rr(y-d[b],E),S=Rr(g-d[w],_),v=e.middlewareData.shift,O=!v,D=P,ee=S;v!=null&&v.enabled.x&&(ee=_),v!=null&&v.enabled.y&&(D=E),O&&!m&&(h?ee=g-2*kt(d.left,d.right):D=y-2*kt(d.top,d.bottom)),await s({...e,availableWidth:ee,availableHeight:D});let z=await n.getDimensions(a.floating);return g!==z.width||y!==z.height?{reset:{rects:!0}}:{}}}};function Qi(){return typeof window<"u"}function Ir(t){return id(t)?(t.nodeName||"").toLowerCase():"#document"}function Ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(id(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function id(t){return Qi()?t instanceof Node||t instanceof Ze(t).Node:!1}function vt(t){return Qi()?t instanceof Element||t instanceof Ze(t).Element:!1}function Gt(t){return Qi()?t instanceof HTMLElement||t instanceof Ze(t).HTMLElement:!1}function od(t){return!Qi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ze(t).ShadowRoot}function ai(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=xt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function nd(t){return/^(table|td|th)$/.test(Ir(t))}function si(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Zh=/transform|translate|scale|rotate|perspective|filter/,qh=/paint|layout|strict|content/,Lr=t=>!!t&&t!=="none",is;function lo(t){let e=vt(t)?xt(t):t;return Lr(e.transform)||Lr(e.translate)||Lr(e.scale)||Lr(e.rotate)||Lr(e.perspective)||!en()&&(Lr(e.backdropFilter)||Lr(e.filter))||Zh.test(e.willChange||"")||qh.test(e.contain||"")}function ad(t){let e=nr(t);for(;Gt(e)&&!co(e);){if(lo(e))return e;if(si(e))return null;e=nr(e)}return null}function en(){return is==null&&(is=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),is}function co(t){return/^(html|body|#document)$/.test(Ir(t))}function xt(t){return Ze(t).getComputedStyle(t)}function li(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nr(t){if(Ir(t)==="html")return t;let e=t.assignedSlot||t.parentNode||od(t)&&t.host||jt(t);return od(e)?e.host:e}function sd(t){let e=nr(t);return co(e)?(t.ownerDocument||t).body:Gt(e)&&ai(e)?e:sd(e)}function Ji(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=sd(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ze(n);if(a){let l=tn(s);return e.concat(s,s.visualViewport||[],ai(n)?n:[],l&&r?Ji(l):[])}else return e.concat(n,Ji(n,[],r))}function tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dd(t){let e=xt(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Gt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=ni(r)!==a||ni(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function ud(t){return vt(t)?t:t.contextElement}function uo(t){let e=ud(t);if(!Gt(e))return Pt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=dd(e),s=(a?ni(r.width):r.width)/o,l=(a?ni(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Yh=Pt(0);function pd(t){let e=Ze(t);return!en()||!e.visualViewport?Yh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ze(t)}function ci(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=ud(t),s=Pt(1);e&&(o?vt(o)&&(s=uo(o)):s=uo(t));let l=Xh(a,r,o)?pd(a):Pt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&o){let g=Ze(a),y=vt(o)?Ze(o):o,b=g,w=tn(b);for(;w&&y!==b;){let E=uo(w),_=w.getBoundingClientRect(),P=xt(w),S=_.left+(w.clientLeft+parseFloat(P.paddingLeft))*E.x,v=_.top+(w.clientTop+parseFloat(P.paddingTop))*E.y;d*=E.x,p*=E.y,m*=E.x,h*=E.y,d+=S,p+=v,b=Ze(w),w=tn(b)}}return Tr({width:m,height:h,x:d,y:p})}function rn(t,e){let r=li(t).scrollLeft;return e?e.left+r:ci(jt(t)).left+r}function fd(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-rn(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function Jh(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=jt(o),l=e?si(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=Pt(1),m=Pt(0),h=Gt(o);if((h||!a)&&((Ir(o)!=="body"||ai(s))&&(d=li(o)),h)){let y=ci(o);p=uo(o),m.x=y.x+o.clientLeft,m.y=y.y+o.clientTop}let g=s&&!h&&!a?fd(s,d):Pt(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function Qh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function em(t){let e=li(t),r=t.ownerDocument.body,o=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+rn(t),s=-e.scrollTop;return xt(r).direction==="rtl"&&(a+=kt(t.clientWidth,r.clientWidth)-o),{width:o,height:n,x:a,y:s}}var tm=25;function rm(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=Ze(t),a=jt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,m=0;if(s){let g=!en()||e==="fixed";o?g||(p=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,m=s.offsetTop))}if(rn(a)<=0){let g=a.ownerDocument,y=g.body,b=getComputedStyle(y),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-w),_=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;_<=tm&&(l-=_)}return{width:l,height:d,x:p,y:m}}function om(t,e){let r=ci(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=uo(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function ld(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=rm(t,r,e);else if(e==="document")o=em(jt(t));else if(vt(e))o=om(e,r);else{let n=pd(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tr(o)}function im(t,e){let r=e.get(t);if(r)return r;let o=Ji(t,[],!1).filter(l=>vt(l)&&Ir(l)!=="body"),n=null,a=xt(t).position==="fixed",s=a?nr(t):t;for(;vt(s)&&!co(s);){let l=xt(s),d=lo(s),p=n?n.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):n=l,s=nr(s)}return e.set(t,o),o}function nm(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?si(e)?[]:im(e,this._c):[].concat(r),o],l=ld(e,s[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let y=ld(e,s[g],n);d=kt(y.top,d),p=Rr(y.right,p),m=Rr(y.bottom,m),h=kt(y.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function am(t){let{width:e,height:r}=dd(t);return{width:e,height:r}}function sm(t,e,r){let o=Gt(e),n=jt(e),a=r==="fixed",s=ci(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Pt(0);if((o||!a)&&((Ir(e)!=="body"||ai(n))&&(l=li(e)),o)){let g=ci(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&n&&(d.x=rn(n));let p=n&&!o&&!a?fd(n,l):Pt(0),m=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:s.width,height:s.height}}function ns(t){return xt(t).position==="static"}function cd(t,e){if(!Gt(t)||xt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return jt(t)===r&&(r=r.ownerDocument.body),r}function hd(t,e){let r=Ze(t);if(si(t))return r;if(!Gt(t)){let n=nr(t);for(;n&&!co(n);){if(vt(n)&&!ns(n))return n;n=nr(n)}return r}let o=cd(t,e);for(;o&&nd(o)&&ns(o);)o=cd(o,e);return o&&co(o)&&ns(o)&&!lo(o)?r:o||ad(t)||r}var lm=async function(t){let e=this.getOffsetParent||hd,r=this.getDimensions,o=await r(t.floating);return{reference:sm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function cm(t){return xt(t).direction==="rtl"}var po={convertOffsetParentRelativeRectToViewportRelativeRect:Jh,getDocumentElement:jt,getClippingRect:nm,getOffsetParent:hd,getElementRects:lm,getClientRects:Qh,getDimensions:am,getScale:uo,isElement:vt,isRTL:cm};var md=ed,as=Qc,gd=td;var yd=rd;var ss=(t,e,r)=>{let o=new Map,n=r??{},a={...po,...n.platform,_c:o};return Jc(t,e,{...n,platform:a})};function cs(t){return dm(t)}function ls(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function dm(t){for(let e=t;e;e=ls(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ls(t);e;e=ls(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||lo(r)||e.tagName==="BODY"))return e}return null}async function di(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},ss(t,e,{strategy:o.strategy,platform:{...po,getOffsetParent:n=>po.getOffsetParent(n,cs)},middleware:[gd({crossAxis:!0}),as({allowedPlacements:[o.placement]})]})}async function ds(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ss(t,e,{placement:l,strategy:n,platform:{...po,getOffsetParent:p=>po.getOffsetParent(p,cs)},middleware:[md(s??4),as({allowedPlacements:o}),yd({apply({availableHeight:p,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var ps={};Y(ps,{isSlotEmptyOrWithoutContent:()=>um});var um=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var bs={};Y(bs,{FtdsBase:()=>ys,toFtdsBase:()=>Ed});var gs={};Y(gs,{ExportpartsUpdatedEvent:()=>kr,FtLitElement:()=>$});var fs={};Y(fs,{ScopedRegistryLitElement:()=>ui});var ui=class extends _t{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Bo(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){Xo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var ms={};Y(ms,{shadowQuerySelector:()=>hs,shadowQuerySelectorAll:()=>pm});function hs(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function pm(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var fo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Sd,bd=Symbol("constructorPrototype"),vd=Symbol("constructorName"),Cd=Symbol("exportpartsDebouncer"),xd=Symbol("dynamicDependenciesLoaded"),kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};kr.eventName="exportparts-updated";var $=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sd]=new De(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Cd].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[vd]=this.constructor.name,this[bd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[vd]&&Object.setPrototypeOf(this,this[bd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[xd]||(r[xd]=!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:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=hs(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],w=[...y,...b].filter(d).map(E=>E.trim());for(let E of w)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(y=>`${g}:${y}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Sd=Cd;fo([f()],$.prototype,"exportpartsPrefix",void 0);fo([Ne([])],$.prototype,"exportpartsPrefixes",void 0);fo([f({reflect:!0})],$.prototype,"exportparts",void 0);fo([f()],$.prototype,"customStylesheet",void 0);fo([f()],$.prototype,"elementToFocus",void 0);fo([I()],$.prototype,"useAdoptedStyleSheets",void 0);var wd=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ed=fe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ii.medium,this.family=oi.neutral}getDesignSystemBaseClasses(){return{[Za(this.family)]:!0,[qa(this.size)]:!0}}}return wd([f()],e.prototype,"size",void 0),wd([f()],e.prototype,"family",void 0),e}),ys=class extends Ed($){};var Od={};var Ss={};Y(Ss,{highlightHtml:()=>xs,highlightHtmlColorCssVariable:()=>Ad,highlightHtmlStyles:()=>hm});var Pr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,o(m)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>d.push(y),n)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var pi=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Pr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Pr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,m=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,m),e.value=h+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=m),e.nodes[b].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let m=p.index;if(s!==0)for(let h=1;h<s;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let m=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,m,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,m,g=>r(g,l,a.value.substring(p,m),d),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,y)=>this.opt.filter(y,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=Pr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function vs(t){let e=new pi(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var fm=vs,Ad=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),hm=A`
5
5
  .highlight-html-match {
6
- background: ${Td};
6
+ background: ${Ad};
7
7
  }
8
- `;function As(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new mm(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ts={};Y(Ts,{noTextInputDefaultClearButton:()=>_s,noTextSelect:()=>qt,safariEllipsisFix:()=>bi,wordWrap:()=>ym});var qt=A`
8
+ `;function xs(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new fm(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var ws={};Y(ws,{noTextInputDefaultClearButton:()=>Cs,noTextSelect:()=>Kt,safariEllipsisFix:()=>fi,wordWrap:()=>mm});var Kt=A`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,ym=A`
17
+ `,mm=A`
18
18
  .ft-word-wrap {
19
19
  white-space: normal;
20
20
  word-wrap: break-word;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,bi=A`
29
+ `,fi=A`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,_s=A`
40
+ `,Cs=A`
41
41
  input::-webkit-search-cancel-button,
42
42
  input::-webkit-search-decoration,
43
43
  input::-webkit-search-results-button,
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var Ld={};var Ls={};Y(Ls,{ParametrizedLabelResolver:()=>vi});var vi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var tl={};Y(tl,{FtCommandQueue:()=>xi,FtLitElementRedux:()=>ve,FtReduxStore:()=>Xt,FtStateManager:()=>Hr,ReduxWatcher:()=>hn,clearAllStores:()=>eg,isFtReduxStore:()=>vo,redux:()=>H,reduxEventListener:()=>ut,reduxReactive:()=>Is,watch:()=>tg,withRedux:()=>Id});var Is=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},H=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:St,attribute:!1,...e};f(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},ut=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var xi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function vo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Si=Symbol("internalReduxEventsUnsubscribers"),dr=Symbol("internalStoresUnsubscribers"),Ur=Symbol("internalStores"),Id=fe(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ur].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ur].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ur].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ur].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ur].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ur].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[dr].has(s.store):this[dr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[dr].set(s,l.subscribe(()=>this.updateFromStores())),this[Si].set(s,[]),vo(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[Si].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[dr].has(s)&&this[dr].get(s)(),this[dr].delete(s),(l=this[Si].get(s))===null||l===void 0||l.forEach(d=>d()),this[Si].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dr,r=Ur,o=Si,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ve=class extends Id($){};function pt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Yt(t){return!!t&&!!t[le]}function Et(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Om})(t)||Array.isArray(t)||!!t[Fd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Fd])||Bs(t)||Vs(t))}function Br(t,e,r){r===void 0&&(r=!1),Co(t)===0?(r?Object.keys:So)(t).forEach((function(o){r&&typeof o=="symbol"||e(o,t[o],t)})):t.forEach((function(o,n){return e(n,o,t)}))}function Co(t){var e=t[le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bs(t)?2:Vs(t)?3:0}function xo(t,e){return Co(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function bm(t,e){return Co(t)===2?t.get(e):t[e]}function Ud(t,e,r){var o=Co(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Bd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bs(t){return wm&&t instanceof Map}function Vs(t){return Em&&t instanceof Set}function ur(t){return t.o||t.t}function Hs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zd(t);delete e[le];for(var r=So(e),o=0;o<r.length;o++){var n=r[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function zs(t,e){return e===void 0&&(e=!1),Ws(t)||Yt(t)||!Et(t)||(Co(t)>1&&(t.set=t.add=t.clear=t.delete=vm),Object.freeze(t),e&&Br(t,(function(r,o){return zs(o,!0)}),!0)),t}function vm(){pt(2)}function Ws(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ft(t){var e=Us[t];return e||pt(18,t),e}function xm(t,e){Us[t]||(Us[t]=e)}function Ms(){return wi}function ks(t,e){e&&(Ft("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){$s(t),t.p.forEach(Sm),t.p=null}function $s(t){t===wi&&(wi=t.l)}function kd(t){return wi={p:[],l:wi,h:t,m:!0,_:0}}function Sm(t){var e=t[le];e.i===0||e.i===1?e.j():e.g=!0}function Ps(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Ft("ES5").S(e,t,o),o?(r[le].P&&(cn(e),pt(4)),Et(t)&&(t=dn(e,t),e.l||un(e,t)),e.u&&Ft("Patches").M(r[le].t,t,e.u,e.s)):t=dn(e,r,[]),cn(e),e.u&&e.v(e.u,e.s),t!==Hd?t:void 0}function dn(t,e,r){if(Ws(e))return e;var o=e[le];if(!o)return Br(e,(function(l,d){return Pd(t,o,e,l,d,r)}),!0),e;if(o.A!==t)return e;if(!o.P)return un(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Hs(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),Br(a,(function(l,d){return Pd(t,o,n,l,d,r,s)})),un(t,n,!1),r&&t.u&&Ft("Patches").N(o,r,t.u,t.s)}return o.o}function Pd(t,e,r,o,n,a,s){if(Yt(n)){var l=dn(t,n,a&&e&&e.i!==3&&!xo(e.R,o)?a.concat(o):void 0);if(Ud(r,o,l),!Yt(l))return;t.m=!1}else s&&r.add(n);if(Et(n)&&!Ws(n)){if(!t.h.D&&t._<1)return;dn(t,n),e&&e.A.l||un(t,n)}}function un(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&zs(e,r)}function Ns(t,e){var r=t[le];return(r?ur(r):t)[e]}function Nd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function pr(t){t.P||(t.P=!0,t.l&&pr(t.l))}function Ds(t){t.o||(t.o=Hs(t.t))}function Fs(t,e,r){var o=Bs(e)?Ft("MapSet").F(e,r):Vs(e)?Ft("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ms(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Ei;s&&(d=[l],p=Ci);var m=Proxy.revocable(d,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g})(e,r):Ft("ES5").J(e,r);return(r?r.A:Ms()).p.push(o),o}function Cm(t){return Yt(t)||pt(22,t),(function e(r){if(!Et(r))return r;var o,n=r[le],a=Co(r);if(n){if(!n.P&&(n.i<4||!Ft("ES5").K(n)))return n.t;n.I=!0,o=Dd(r,a),n.I=!1}else o=Dd(r,a);return Br(o,(function(s,l){n&&bm(n.t,s)===l||Ud(o,s,e(l))})),a===3?new Set(o):o})(t)}function Dd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Hs(t)}function Vd(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[le];return Ei.get(p,s)},set:function(p){var m=this[le];Ei.set(m,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][le];if(!d.P)switch(d.i){case 5:o(d)&&pr(d);break;case 4:r(d)&&pr(d)}}}function r(s){for(var l=s.t,d=s.k,p=So(d),m=p.length-1;m>=0;m--){var h=p[m];if(h!==le){var g=l[h];if(g===void 0&&!xo(l,h))return!0;var y=d[h],b=y&&y[le];if(b?b.t!==g:!Bd(y,g))return!0}}var w=!!l[le];return p.length!==So(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(ur(s)))}var a={};xm("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,g){if(h){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,t(b,!0));return y}var w=zd(g);delete w[le];for(var E=So(w),_=0;_<E.length;_++){var P=E[_];w[P]=t(P,h||!!w[P].enumerable)}return Object.create(Object.getPrototypeOf(g),w)})(d,s),m={i:d?5:4,A:l?l.A:Ms(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,le,{value:m,writable:!0}),p},S:function(s,l,d){d?Yt(l)&&l[le].A===s&&e(s.p):(s.u&&(function p(m){if(m&&typeof m=="object"){var h=m[le];if(h){var g=h.t,y=h.k,b=h.R,w=h.i;if(w===4)Br(y,(function(x){x!==le&&(g[x]!==void 0||xo(g,x)?b[x]||p(y[x]):(b[x]=!0,pr(h)))})),Br(g,(function(x){y[x]!==void 0||xo(y,x)||(b[x]=!1,pr(h))}));else if(w===5){if(o(h)&&(pr(h),b.length=!0),y.length<g.length)for(var E=y.length;E<g.length;E++)b[E]=!1;else for(var _=g.length;_<y.length;_++)b[_]=!0;for(var P=Math.min(y.length,g.length),C=0;C<P;C++)y.hasOwnProperty(C)||(b[C]=!0),b[C]===void 0&&p(y[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Md,wi,js=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wm=typeof Map<"u",Em=typeof Set<"u",$d=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hd=js?Symbol.for("immer-nothing"):((Md={})["immer-nothing"]=!0,Md),Fd=js?Symbol.for("immer-draftable"):"__$immer_draftable",le=js?Symbol.for("immer-state"):"__$immer_state";var Om=""+Object.prototype.constructor,So=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zd=Object.getOwnPropertyDescriptors||function(t){var e={};return So(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Us={},Ei={get:function(t,e){if(e===le)return t;var r=ur(t);if(!xo(r,e))return(function(n,a,s){var l,d=Nd(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var o=r[e];return t.I||!Et(o)?o:o===Ns(t.t,e)?(Ds(t),t.o[e]=Fs(t.A.h,o,t)):o},has:function(t,e){return e in ur(t)},ownKeys:function(t){return Reflect.ownKeys(ur(t))},set:function(t,e,r){var o=Nd(ur(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=Ns(ur(t),e),a=n?.[le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Bd(r,n)&&(r!==void 0||xo(t.t,e)))return!0;Ds(t),pr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ns(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ds(t),pr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ur(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},Ci={};Br(Ei,(function(t,e){Ci[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ci.deleteProperty=function(t,e){return Ci.set.call(this,t,e,void 0)},Ci.set=function(t,e,r){return Ei.set.call(this,t[0],e,r,t[0])};var Am=(function(){function t(r){var o=this;this.O=$d,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var E=this;w===void 0&&(w=l);for(var _=arguments.length,P=Array(_>1?_-1:0),C=1;C<_;C++)P[C-1]=arguments[C];return d.produce(w,(function(x){var O;return(O=a).call.apply(O,[E,x].concat(P))}))}}var p;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),Et(n)){var m=kd(o),h=Fs(o,n,void 0),g=!0;try{p=a(h),g=!1}finally{g?cn(m):$s(m)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(w){return ks(m,s),Ps(w,m)}),(function(w){throw cn(m),w})):(ks(m,s),Ps(p,m))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Hd&&(p=void 0),o.D&&zs(p,!0),s){var y=[],b=[];Ft("Patches").M(n,p,y,b),s(y,b)}return p}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return o.produceWithPatches(p,(function(y){return n.apply(void 0,[y].concat(h))}))};var s,l,d=o.produce(n,a,(function(p,m){s=p,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Et(r)||pt(8),Yt(r)&&(r=Cm(r));var o=kd(this),n=Fs(this,r,void 0);return n[le].C=!0,$s(o),n},e.finishDraft=function(r,o){var n=r&&r[le],a=n.A;return ks(a,o),Ps(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!$d&&pt(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=Ft("Patches").$;return Yt(r)?s(r,o):this.produce(r,(function(l){return s(l,o)}))},t})(),nt=new Am,Rm=nt.produce,AS=nt.produceWithPatches.bind(nt),RS=nt.setAutoFreeze.bind(nt),_S=nt.setUseProxies.bind(nt),TS=nt.applyPatches.bind(nt),LS=nt.createDraft.bind(nt),IS=nt.finishDraft.bind(nt),pn=Rm;function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function Wd(t,e){if(Vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Vr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jd(t){var e=Wd(t,"string");return Vr(e)=="symbol"?e:e+""}function Gd(t,e,r){return(e=jd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Gs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kd(Object(r),!0).forEach(function(o){Gd(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function $e(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 Zd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ks=function(){return Math.random().toString(36).substring(7).split("").join(".")},fn={INIT:"@@redux/INIT"+Ks(),REPLACE:"@@redux/REPLACE"+Ks(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ks()}};function _m(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Zs(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($e(1));return r(Zs)(t,e)}if(typeof t!="function")throw new Error($e(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function m(){if(d)throw new Error($e(3));return a}function h(w){if(typeof w!="function")throw new Error($e(4));if(d)throw new Error($e(5));var E=!0;return p(),l.push(w),function(){if(E){if(d)throw new Error($e(6));E=!1,p();var P=l.indexOf(w);l.splice(P,1),s=null}}}function g(w){if(!_m(w))throw new Error($e(7));if(typeof w.type>"u")throw new Error($e(8));if(d)throw new Error($e(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var E=s=l,_=0;_<E.length;_++){var P=E[_];P()}return w}function y(w){if(typeof w!="function")throw new Error($e(10));n=w,g({type:fn.REPLACE})}function b(){var w,E=h;return w={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error($e(11));function C(){P.next&&P.next(m())}C();var x=E(C);return{unsubscribe:x}}},w[Zd]=function(){return this},w}return g({type:fn.INIT}),o={dispatch:g,subscribe:h,getState:m,replaceReducer:y},o[Zd]=b,o}function Tm(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:fn.INIT});if(typeof o>"u")throw new Error($e(12));if(typeof r(void 0,{type:fn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($e(13))})}function qd(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Tm(r)}catch(d){l=d}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,y={},b=0;b<a.length;b++){var w=a[b],E=r[w],_=p[w],P=E(_,m);if(typeof P>"u"){var C=m&&m.type;throw new Error($e(14))}y[w]=P,g=g||P!==_}return g=g||a.length!==Object.keys(p).length,g?y:p}}function wo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Yd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error($e(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=wo.apply(void 0,l)(n.dispatch),Gs(Gs({},n),{},{dispatch:a})}}}function Xd(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Jd=Xd();Jd.withExtraArgument=Xd;var qs=Jd;var ou=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),Lm=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(m){return d([p,m])}}function d(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(m){p=[6,m],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Eo=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},Im=Object.defineProperty,km=Object.defineProperties,Pm=Object.getOwnPropertyDescriptors,Qd=Object.getOwnPropertySymbols,Nm=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,eu=function(t,e,r){return e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},fr=function(t,e){for(var r in e||(e={}))Nm.call(e,r)&&eu(t,r,e[r]);if(Qd)for(var o=0,n=Qd(e);o<n.length;o++){var r=n[o];Dm.call(e,r)&&eu(t,r,e[r])}return t},Ys=function(t,e){return km(t,Pm(e))},Mm=function(t,e,r){return new Promise(function(o,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var $m=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wo:wo.apply(null,arguments)},qS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Fm(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function hr(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return fr(fr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}var Um=(function(t){ou(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Eo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Eo([void 0],r.concat(this))))},e})(Array),Bm=(function(t){ou(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Eo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Eo([void 0],r.concat(this))))},e})(Array);function Qs(t){return Et(t)?pn(t,function(){}):t}function Vm(t){return typeof t=="boolean"}function Hm(){return function(e){return zm(e)}}function zm(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Um;if(r&&(Vm(r)?p.push(qs):p.push(qs.withExtraArgument(r.extraArgument))),0){if(n)var m;if(s)var h;if(d)var g}return p}var Xs=!0;function iu(t){var e=Hm(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,m=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,y;if(typeof n=="function")y=n;else if(Fm(n))y=qd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Xs&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xs&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Yd.apply(void 0,b),E=wo;d&&(E=$m(fr({trace:!Xs},typeof d=="object"&&d)));var _=new Bm(w),P=_;Array.isArray(g)?P=Eo([w],g):typeof g=="function"&&(P=g(_));var C=E.apply(void 0,P);return Zs(y,m,C)}function nu(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function Wm(t){return typeof t=="function"}function jm(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?nu(e):[e,r,o],a=n[0],s=n[1],l=n[2],d;if(Wm(t))d=function(){return Qs(t())};else{var p=Qs(t);d=function(){return p}}function m(h,g){h===void 0&&(h=d());var y=Eo([a[g.type]],s.filter(function(b){var w=b.matcher;return w(g)}).map(function(b){var w=b.reducer;return w}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,w){if(w)if(Yt(b)){var E=b,_=w(E,g);return _===void 0?b:_}else{if(Et(b))return pn(b,function(P){return w(P,g)});var _=w(b,g);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},h)}return m.getInitialState=d,m}function Gm(t,e){return t+"/"+e}function au(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Qs(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var h=o[m],g=Gm(e,m),y,b;"reducer"in h?(y=h.reducer,b=h.prepare):y=h,a[m]=y,s[g]=y,l[m]=b?hr(g,b):hr(g)});function d(){var m=typeof t.extraReducers=="function"?nu(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,y=m[1],b=y===void 0?[]:y,w=m[2],E=w===void 0?void 0:w,_=fr(fr({},g),s);return jm(r,function(P){for(var C in _)P.addCase(C,_[C]);for(var x=0,O=b;x<O.length;x++){var D=O[x];P.addMatcher(D.matcher,D.reducer)}E&&P.addDefaultCase(E)})}var p;return{name:e,reducer:function(m,h){return p||(p=d()),p(m,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Km="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zm=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Km[Math.random()*64|0];return e},qm=["name","message","stack","code"],Js=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),tu=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ym=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=qm;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},QS=(function(){function t(e,r,o){var n=hr(e+"/fulfilled",function(m,h,g,y){return{payload:m,meta:Ys(fr({},y||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=hr(e+"/pending",function(m,h,g){return{payload:void 0,meta:Ys(fr({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=hr(e+"/rejected",function(m,h,g,y,b){return{payload:y,error:(o&&o.serializeError||Ym)(m||"Rejected"),meta:Ys(fr({},b||{}),{arg:g,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function p(m){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(m):Zm(),w=new d,E,_=!1;function P(x){E=x,w.abort()}var C=(function(){return Mm(this,null,function(){var x,O,D,ee,W,j,k;return Lm(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),ee=(x=o?.condition)==null?void 0:x.call(o,m,{getState:g,extra:y}),Jm(ee)?[4,ee]:[3,2];case 1:ee=U.sent(),U.label=2;case 2:if(ee===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(q,Ne){return w.signal.addEventListener("abort",function(){return Ne({name:"AbortError",message:E||"Aborted"})})}),h(a(b,m,(O=o?.getPendingMeta)==null?void 0:O.call(o,{requestId:b,arg:m},{getState:g,extra:y}))),[4,Promise.race([W,Promise.resolve(r(m,{dispatch:h,getState:g,extra:y,requestId:b,signal:w.signal,abort:P,rejectWithValue:function(q,Ne){return new Js(q,Ne)},fulfillWithValue:function(q,Ne){return new tu(q,Ne)}})).then(function(q){if(q instanceof Js)throw q;return q instanceof tu?n(q.payload,b,m,q.meta):n(q,b,m)})])];case 3:return D=U.sent(),[3,5];case 4:return j=U.sent(),D=j instanceof Js?s(null,b,m,j.payload,j.meta):s(j,b,m),[3,5];case 5:return k=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,k||h(D),[2,D]}})})})();return Object.assign(C,{abort:P,requestId:b,arg:m,unwrap:function(){return C.then(Xm)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Xm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var su="listener",lu="completed",cu="cancelled",eC="task-"+cu,tC="task-"+lu,rC=su+"-"+cu,oC=su+"-"+lu;var el="listenerMiddleware";var iC=hr(el+"/add"),nC=hr(el+"/removeAll"),aC=hr(el+"/remove");var ru,sC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ru||(ru=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Qm=function(t){return function(e){setTimeout(e,t)}},lC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qm(10);Vd();window.ftReduxStores||(window.ftReduxStores={});var Xt=class t extends Gt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(vo(a))return a;if(n==null)return;let s=au({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=iu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=ot(s.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new xi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...m)=>{let h=p(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function eg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))vo(e)&&e.clear()}var hn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);St(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 hn(t,e,r).watch()}var Hr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var il={};Y(il,{scrollHelper:()=>rg});var rl,mn=new Map,ol=class{lock(e,r){if(r){let o=mn.get(r);if(o==null||o===e)return mn.set(r,e),r}}release(e,r){r&&mn.get(r)===e&&mn.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of za(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Ir(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(rl=window.FluidTopicsScrollHelper)!==null&&rl!==void 0?rl:new ol;var rg=window.FluidTopicsScrollHelper;var al={};Y(al,{SearchPlaceConverter:()=>Ro,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>Ku,serializeRequest:()=>ng});var du;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(du||(du={}));var uu;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(uu||(uu={}));var pu;(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"})(pu||(pu={}));var fu;(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"})(fu||(fu={}));var hu;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hu||(hu={}));var mu;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(mu||(mu={}));var gu;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(gu||(gu={}));var yu;(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"})(yu||(yu={}));var bu;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(bu||(bu={}));var vu;(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"})(vu||(vu={}));var xu;(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"})(xu||(xu={}));var Su;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Su||(Su={}));var Cu;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cu||(Cu={}));var wu;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(wu||(wu={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var Eu;(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"})(Eu||(Eu={}));var Oo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Oo||(Oo={}));var Ou;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ou||(Ou={}));var Au;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Au||(Au={}));var nl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(nl||(nl={}));var Pu=t=>Object.keys(nl).includes(t);var Ru;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ru||(Ru={}));var gn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gn||(gn={}));var _u;(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"})(_u||(_u={}));var Ao;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ao||(Ao={}));var Nu=t=>Object.keys(Ao).includes(t);var Tu;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Tu||(Tu={}));var Lu;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Lu||(Lu={}));var Iu;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Iu||(Iu={}));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 ft;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ft||(ft={}));var ku;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ku||(ku={}));var Du;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Du||(Du={}));var Mu;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Mu||(Mu={}));var $u;(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"})($u||($u={}));var Fu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Fu||(Fu={}));var Uu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Uu||(Uu={}));var Bu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bu||(Bu={}));var Vu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vu||(Vu={}));var Hu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Hu||(Hu={}));var zu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(zu||(zu={}));var Wu;(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"})(Wu||(Wu={}));var yn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yn||(yn={}));var og={[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 ju(t,e){return t===e||(og[t]??[]).some(r=>ju(r,e))}function Oi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>ju(o,e))}function ig(t){return`"${t}"`}function Gu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ng(t,e){return new Ro(t).serialize(e)}var z;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(z||(z={}));var ag=new Set(Object.values(z));function Ku(t){return ag.has(t)}var Ro=class{constructor(e,r=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,m,h,g,y,b,w;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(z.LOCALE,e.contentLocale):E.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&E.append(z.QUERY,e.query);let _=W=>{var j,k;let U=((k=(j=W.valueFilter)===null||j===void 0?void 0:j.values)!==null&&k!==void 0?k:[]).map(q=>this.escapeFilters(q)).map(q=>ig(Gu(q))).join("_");return`${W.key}~${U}`},P=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(W=>W.valueFilter&&!W.valueFilter.negative))!==null&&a!==void 0?a:[];P.length>0&&E.append(z.VALUE_FILTERS,P.map(_).join("*"));let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(W=>W.valueFilter&&W.valueFilter.negative))!==null&&l!==void 0?l:[];C.length>0&&E.append(z.NEGATIVE_VALUE_FILTERS,C.map(_).join("*"));let x=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(W=>W.dateFilter))!==null&&p!==void 0?p:[];if(x.length>0){let W=x.map(j=>{var k;return`${j.key}~${(k=j.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(z.DATE_FILTERS,W)}let O=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(W=>W.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let W=O.map(j=>{var k,U;return`${j.key}~${(k=j.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=j.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");E.append(z.RANGE_FILTERS,W)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(z.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&E.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let D=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let W in D)E.append(W,D[W]);let ee=new Array;return E.forEach((W,j)=>{ee.push(this.encodeQueryString(j)+"="+this.encodeQueryString(W))}),encodeURI(ee.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(_){console.warn("Could not decode search request query params, fallback on raw value",_)}let d=new URLSearchParams(e),p=d.get(z.LOCALE)==="all"?void 0:d.get(z.LOCALE),m=((r=d.get(z.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(z.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(n=d.get(z.SCOPE))!==null&&n!==void 0?n:"default",y=+((a=d.get(z.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(z.KEYWORD_MATCH),w=b?b.toUpperCase()===Oo.MANDATORY?Oo.MANDATORY:Oo.OPTIONAL:void 0,E={};for(let _ of d.keys())Ku(_)||(E[_]=d.get(_));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(z.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Pu(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Ir(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:w,otherQueryParams:E}}parseCompatFilters(e){var r,o,n,a,s,l,d;let p=[];return e.has(z.FILTERS)&&(p=this.parseValueFilters((r=e.get(z.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(z.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(z.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(z.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(z.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(z.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Gu).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Ao[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Nu(e))return[{key:"ft:lastEdition",dateFilter:{type:Ao[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[z.LOCALE,z.FILTERS,z.VALUE_FILTERS,z.NEGATIVE_VALUE_FILTERS,z.DATE_FILTERS,z.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(z.LOCALE),r!==void 0&&o.searchParams.append(z.LOCALE,r),o.toString()}};var ll={};Y(ll,{toFtFormComponent:()=>zr});var sl=Symbol("elementInternals"),zr=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[sl].form}constructor(...o){super(o),this[sl]=this.attachInternals()}setFormValue(o){this[sl].setFormValue(o)}}return e});var cl={};Y(cl,{DateFormatter:()=>Wr});var Wr=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ul={};Y(ul,{ALL_KEYS_VALUE:()=>dl,SameWindowStorageEvent:()=>_o});var dl="__all__",_o=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _o(dl))}});var fl={};Y(fl,{FocusMainContentEvent:()=>pl});var pl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Zu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function sg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function lg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",sg);document.addEventListener("click",lg);var qu=A`
47
+ `;var Rd={};var Es={};Y(Es,{ParametrizedLabelResolver:()=>hi});var hi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var qs={};Y(qs,{FtCommandQueue:()=>mi,FtLitElementRedux:()=>ve,FtReduxStore:()=>qt,FtStateManager:()=>$r,ReduxWatcher:()=>cn,clearAllStores:()=>Jm,isFtReduxStore:()=>ho,redux:()=>q,reduxEventListener:()=>st,reduxReactive:()=>Os,watch:()=>Qm,withRedux:()=>_d});var Os=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},q=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:bt,attribute:!1,...e};f(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},st=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var mi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function ho(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var gi=Symbol("internalReduxEventsUnsubscribers"),ar=Symbol("internalStoresUnsubscribers"),Nr=Symbol("internalStores"),_d=fe(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Nr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Nr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Nr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Nr].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[ar].has(s.store):this[ar].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[ar].set(s,l.subscribe(()=>this.updateFromStores())),this[gi].set(s,[]),ho(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[gi].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ar].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[ar].has(s)&&this[ar].get(s)(),this[ar].delete(s),(l=this[gi].get(s))===null||l===void 0||l.forEach(d=>d()),this[gi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ar,r=Nr,o=gi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ve=class extends _d($){};function lt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zt(t){return!!t&&!!t[le]}function St(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===wm})(t)||Array.isArray(t)||!!t[Dd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Dd])||Ns(t)||Ds(t))}function Dr(t,e,r){r===void 0&&(r=!1),yo(t)===0?(r?Object.keys:go)(t).forEach((function(o){r&&typeof o=="symbol"||e(o,t[o],t)})):t.forEach((function(o,n){return e(n,o,t)}))}function yo(t){var e=t[le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ns(t)?2:Ds(t)?3:0}function mo(t,e){return yo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gm(t,e){return yo(t)===2?t.get(e):t[e]}function Md(t,e,r){var o=yo(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function $d(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ns(t){return Sm&&t instanceof Map}function Ds(t){return Cm&&t instanceof Set}function sr(t){return t.o||t.t}function Ms(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Bd(t);delete e[le];for(var r=go(e),o=0;o<r.length;o++){var n=r[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function $s(t,e){return e===void 0&&(e=!1),Fs(t)||Zt(t)||!St(t)||(yo(t)>1&&(t.set=t.add=t.clear=t.delete=ym),Object.freeze(t),e&&Dr(t,(function(r,o){return $s(o,!0)}),!0)),t}function ym(){lt(2)}function Fs(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=Ps[t];return e||lt(18,t),e}function bm(t,e){Ps[t]||(Ps[t]=e)}function Ls(){return bi}function As(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function on(t){Is(t),t.p.forEach(vm),t.p=null}function Is(t){t===bi&&(bi=t.l)}function Td(t){return bi={p:[],l:bi,h:t,m:!0,_:0}}function vm(t){var e=t[le];e.i===0||e.i===1?e.j():e.g=!0}function Rs(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,o),o?(r[le].P&&(on(e),lt(4)),St(t)&&(t=nn(e,t),e.l||an(e,t)),e.u&&Dt("Patches").M(r[le].t,t,e.u,e.s)):t=nn(e,r,[]),on(e),e.u&&e.v(e.u,e.s),t!==Ud?t:void 0}function nn(t,e,r){if(Fs(e))return e;var o=e[le];if(!o)return Dr(e,(function(l,d){return Ld(t,o,e,l,d,r)}),!0),e;if(o.A!==t)return e;if(!o.P)return an(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ms(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),Dr(a,(function(l,d){return Ld(t,o,n,l,d,r,s)})),an(t,n,!1),r&&t.u&&Dt("Patches").N(o,r,t.u,t.s)}return o.o}function Ld(t,e,r,o,n,a,s){if(Zt(n)){var l=nn(t,n,a&&e&&e.i!==3&&!mo(e.R,o)?a.concat(o):void 0);if(Md(r,o,l),!Zt(l))return;t.m=!1}else s&&r.add(n);if(St(n)&&!Fs(n)){if(!t.h.D&&t._<1)return;nn(t,n),e&&e.A.l||an(t,n)}}function an(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&$s(e,r)}function _s(t,e){var r=t[le];return(r?sr(r):t)[e]}function Id(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function lr(t){t.P||(t.P=!0,t.l&&lr(t.l))}function Ts(t){t.o||(t.o=Ms(t.t))}function ks(t,e,r){var o=Ns(e)?Dt("MapSet").F(e,r):Ds(e)?Dt("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ls(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=vi;s&&(d=[l],p=yi);var m=Proxy.revocable(d,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g})(e,r):Dt("ES5").J(e,r);return(r?r.A:Ls()).p.push(o),o}function xm(t){return Zt(t)||lt(22,t),(function e(r){if(!St(r))return r;var o,n=r[le],a=yo(r);if(n){if(!n.P&&(n.i<4||!Dt("ES5").K(n)))return n.t;n.I=!0,o=kd(r,a),n.I=!1}else o=kd(r,a);return Dr(o,(function(s,l){n&&gm(n.t,s)===l||Md(o,s,e(l))})),a===3?new Set(o):o})(t)}function kd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ms(t)}function Fd(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[le];return vi.get(p,s)},set:function(p){var m=this[le];vi.set(m,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][le];if(!d.P)switch(d.i){case 5:o(d)&&lr(d);break;case 4:r(d)&&lr(d)}}}function r(s){for(var l=s.t,d=s.k,p=go(d),m=p.length-1;m>=0;m--){var h=p[m];if(h!==le){var g=l[h];if(g===void 0&&!mo(l,h))return!0;var y=d[h],b=y&&y[le];if(b?b.t!==g:!$d(y,g))return!0}}var w=!!l[le];return p.length!==go(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&lt(3,JSON.stringify(sr(s)))}var a={};bm("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,g){if(h){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,t(b,!0));return y}var w=Bd(g);delete w[le];for(var E=go(w),_=0;_<E.length;_++){var P=E[_];w[P]=t(P,h||!!w[P].enumerable)}return Object.create(Object.getPrototypeOf(g),w)})(d,s),m={i:d?5:4,A:l?l.A:Ls(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,le,{value:m,writable:!0}),p},S:function(s,l,d){d?Zt(l)&&l[le].A===s&&e(s.p):(s.u&&(function p(m){if(m&&typeof m=="object"){var h=m[le];if(h){var g=h.t,y=h.k,b=h.R,w=h.i;if(w===4)Dr(y,(function(v){v!==le&&(g[v]!==void 0||mo(g,v)?b[v]||p(y[v]):(b[v]=!0,lr(h)))})),Dr(g,(function(v){y[v]!==void 0||mo(y,v)||(b[v]=!1,lr(h))}));else if(w===5){if(o(h)&&(lr(h),b.length=!0),y.length<g.length)for(var E=y.length;E<g.length;E++)b[E]=!1;else for(var _=g.length;_<y.length;_++)b[_]=!0;for(var P=Math.min(y.length,g.length),S=0;S<P;S++)y.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&p(y[S])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Pd,bi,Us=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Sm=typeof Map<"u",Cm=typeof Set<"u",Nd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ud=Us?Symbol.for("immer-nothing"):((Pd={})["immer-nothing"]=!0,Pd),Dd=Us?Symbol.for("immer-draftable"):"__$immer_draftable",le=Us?Symbol.for("immer-state"):"__$immer_state";var wm=""+Object.prototype.constructor,go=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bd=Object.getOwnPropertyDescriptors||function(t){var e={};return go(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Ps={},vi={get:function(t,e){if(e===le)return t;var r=sr(t);if(!mo(r,e))return(function(n,a,s){var l,d=Id(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var o=r[e];return t.I||!St(o)?o:o===_s(t.t,e)?(Ts(t),t.o[e]=ks(t.A.h,o,t)):o},has:function(t,e){return e in sr(t)},ownKeys:function(t){return Reflect.ownKeys(sr(t))},set:function(t,e,r){var o=Id(sr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=_s(sr(t),e),a=n?.[le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if($d(r,n)&&(r!==void 0||mo(t.t,e)))return!0;Ts(t),lr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return _s(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ts(t),lr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=sr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){lt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){lt(12)}},yi={};Dr(vi,(function(t,e){yi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),yi.deleteProperty=function(t,e){return yi.set.call(this,t,e,void 0)},yi.set=function(t,e,r){return vi.set.call(this,t[0],e,r,t[0])};var Em=(function(){function t(r){var o=this;this.O=Nd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var E=this;w===void 0&&(w=l);for(var _=arguments.length,P=Array(_>1?_-1:0),S=1;S<_;S++)P[S-1]=arguments[S];return d.produce(w,(function(v){var O;return(O=a).call.apply(O,[E,v].concat(P))}))}}var p;if(typeof a!="function"&&lt(6),s!==void 0&&typeof s!="function"&&lt(7),St(n)){var m=Td(o),h=ks(o,n,void 0),g=!0;try{p=a(h),g=!1}finally{g?on(m):Is(m)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(w){return As(m,s),Rs(w,m)}),(function(w){throw on(m),w})):(As(m,s),Rs(p,m))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Ud&&(p=void 0),o.D&&$s(p,!0),s){var y=[],b=[];Dt("Patches").M(n,p,y,b),s(y,b)}return p}lt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return o.produceWithPatches(p,(function(y){return n.apply(void 0,[y].concat(h))}))};var s,l,d=o.produce(n,a,(function(p,m){s=p,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){St(r)||lt(8),Zt(r)&&(r=xm(r));var o=Td(this),n=ks(this,r,void 0);return n[le].C=!0,Is(o),n},e.finishDraft=function(r,o){var n=r&&r[le],a=n.A;return As(a,o),Rs(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Nd&&lt(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=Dt("Patches").$;return Zt(r)?s(r,o):this.produce(r,(function(l){return s(l,o)}))},t})(),tt=new Em,Om=tt.produce,RS=tt.produceWithPatches.bind(tt),_S=tt.setAutoFreeze.bind(tt),TS=tt.setUseProxies.bind(tt),LS=tt.applyPatches.bind(tt),IS=tt.createDraft.bind(tt),kS=tt.finishDraft.bind(tt),sn=Om;function Mr(t){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(t)}function Vd(t,e){if(Mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Mr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hd(t){var e=Vd(t,"string");return Mr(e)=="symbol"?e:e+""}function zd(t,e,r){return(e=Hd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Bs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wd(Object(r),!0).forEach(function(o){zd(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Me(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 jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Vs=function(){return Math.random().toString(36).substring(7).split("").join(".")},ln={INIT:"@@redux/INIT"+Vs(),REPLACE:"@@redux/REPLACE"+Vs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vs()}};function Am(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Hs(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(Hs)(t,e)}if(typeof t!="function")throw new Error(Me(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(Me(3));return a}function h(w){if(typeof w!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));var E=!0;return p(),l.push(w),function(){if(E){if(d)throw new Error(Me(6));E=!1,p();var P=l.indexOf(w);l.splice(P,1),s=null}}}function g(w){if(!Am(w))throw new Error(Me(7));if(typeof w.type>"u")throw new Error(Me(8));if(d)throw new Error(Me(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var E=s=l,_=0;_<E.length;_++){var P=E[_];P()}return w}function y(w){if(typeof w!="function")throw new Error(Me(10));n=w,g({type:ln.REPLACE})}function b(){var w,E=h;return w={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Me(11));function S(){P.next&&P.next(m())}S();var v=E(S);return{unsubscribe:v}}},w[jd]=function(){return this},w}return g({type:ln.INIT}),o={dispatch:g,subscribe:h,getState:m,replaceReducer:y},o[jd]=b,o}function Rm(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:ln.INIT});if(typeof o>"u")throw new Error(Me(12));if(typeof r(void 0,{type:ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Gd(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Rm(r)}catch(d){l=d}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,y={},b=0;b<a.length;b++){var w=a[b],E=r[w],_=p[w],P=E(_,m);if(typeof P>"u"){var S=m&&m.type;throw new Error(Me(14))}y[w]=P,g=g||P!==_}return g=g||a.length!==Object.keys(p).length,g?y:p}}function bo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Kd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Me(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=bo.apply(void 0,l)(n.dispatch),Bs(Bs({},n),{},{dispatch:a})}}}function Zd(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var qd=Zd();qd.withExtraArgument=Zd;var zs=qd;var eu=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),_m=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(m){return d([p,m])}}function d(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(m){p=[6,m],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},vo=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},Tm=Object.defineProperty,Lm=Object.defineProperties,Im=Object.getOwnPropertyDescriptors,Yd=Object.getOwnPropertySymbols,km=Object.prototype.hasOwnProperty,Pm=Object.prototype.propertyIsEnumerable,Xd=function(t,e,r){return e in t?Tm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},cr=function(t,e){for(var r in e||(e={}))km.call(e,r)&&Xd(t,r,e[r]);if(Yd)for(var o=0,n=Yd(e);o<n.length;o++){var r=n[o];Pm.call(e,r)&&Xd(t,r,e[r])}return t},Ws=function(t,e){return Lm(t,Im(e))},Nm=function(t,e,r){return new Promise(function(o,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Dm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bo:bo.apply(null,arguments)},YS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Mm(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function dr(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return cr(cr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}var $m=(function(t){eu(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,vo([void 0],r[0].concat(this)))):new(e.bind.apply(e,vo([void 0],r.concat(this))))},e})(Array),Fm=(function(t){eu(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,vo([void 0],r[0].concat(this)))):new(e.bind.apply(e,vo([void 0],r.concat(this))))},e})(Array);function Ks(t){return St(t)?sn(t,function(){}):t}function Um(t){return typeof t=="boolean"}function Bm(){return function(e){return Vm(e)}}function Vm(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new $m;if(r&&(Um(r)?p.push(zs):p.push(zs.withExtraArgument(r.extraArgument))),0){if(n)var m;if(s)var h;if(d)var g}return p}var js=!0;function tu(t){var e=Bm(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,m=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,y;if(typeof n=="function")y=n;else if(Mm(n))y=Gd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!js&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!js&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Kd.apply(void 0,b),E=bo;d&&(E=Dm(cr({trace:!js},typeof d=="object"&&d)));var _=new Fm(w),P=_;Array.isArray(g)?P=vo([w],g):typeof g=="function"&&(P=g(_));var S=E.apply(void 0,P);return Hs(y,m,S)}function ru(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function Hm(t){return typeof t=="function"}function zm(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?ru(e):[e,r,o],a=n[0],s=n[1],l=n[2],d;if(Hm(t))d=function(){return Ks(t())};else{var p=Ks(t);d=function(){return p}}function m(h,g){h===void 0&&(h=d());var y=vo([a[g.type]],s.filter(function(b){var w=b.matcher;return w(g)}).map(function(b){var w=b.reducer;return w}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,w){if(w)if(Zt(b)){var E=b,_=w(E,g);return _===void 0?b:_}else{if(St(b))return sn(b,function(P){return w(P,g)});var _=w(b,g);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},h)}return m.getInitialState=d,m}function Wm(t,e){return t+"/"+e}function ou(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ks(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var h=o[m],g=Wm(e,m),y,b;"reducer"in h?(y=h.reducer,b=h.prepare):y=h,a[m]=y,s[g]=y,l[m]=b?dr(g,b):dr(g)});function d(){var m=typeof t.extraReducers=="function"?ru(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,y=m[1],b=y===void 0?[]:y,w=m[2],E=w===void 0?void 0:w,_=cr(cr({},g),s);return zm(r,function(P){for(var S in _)P.addCase(S,_[S]);for(var v=0,O=b;v<O.length;v++){var D=O[v];P.addMatcher(D.matcher,D.reducer)}E&&P.addDefaultCase(E)})}var p;return{name:e,reducer:function(m,h){return p||(p=d()),p(m,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var jm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gm=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=jm[Math.random()*64|0];return e},Km=["name","message","stack","code"],Gs=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Jd=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Zm=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Km;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},eC=(function(){function t(e,r,o){var n=dr(e+"/fulfilled",function(m,h,g,y){return{payload:m,meta:Ws(cr({},y||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=dr(e+"/pending",function(m,h,g){return{payload:void 0,meta:Ws(cr({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=dr(e+"/rejected",function(m,h,g,y,b){return{payload:y,error:(o&&o.serializeError||Zm)(m||"Rejected"),meta:Ws(cr({},b||{}),{arg:g,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function p(m){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(m):Gm(),w=new d,E,_=!1;function P(v){E=v,w.abort()}var S=(function(){return Nm(this,null,function(){var v,O,D,ee,z,W,k;return _m(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),ee=(v=o?.condition)==null?void 0:v.call(o,m,{getState:g,extra:y}),Ym(ee)?[4,ee]:[3,2];case 1:ee=U.sent(),U.label=2;case 2:if(ee===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,z=new Promise(function(X,Pe){return w.signal.addEventListener("abort",function(){return Pe({name:"AbortError",message:E||"Aborted"})})}),h(a(b,m,(O=o?.getPendingMeta)==null?void 0:O.call(o,{requestId:b,arg:m},{getState:g,extra:y}))),[4,Promise.race([z,Promise.resolve(r(m,{dispatch:h,getState:g,extra:y,requestId:b,signal:w.signal,abort:P,rejectWithValue:function(X,Pe){return new Gs(X,Pe)},fulfillWithValue:function(X,Pe){return new Jd(X,Pe)}})).then(function(X){if(X instanceof Gs)throw X;return X instanceof Jd?n(X.payload,b,m,X.meta):n(X,b,m)})])];case 3:return D=U.sent(),[3,5];case 4:return W=U.sent(),D=W instanceof Gs?s(null,b,m,W.payload,W.meta):s(W,b,m),[3,5];case 5:return k=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,k||h(D),[2,D]}})})})();return Object.assign(S,{abort:P,requestId:b,arg:m,unwrap:function(){return S.then(qm)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function qm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ym(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var iu="listener",nu="completed",au="cancelled",tC="task-"+au,rC="task-"+nu,oC=iu+"-"+au,iC=iu+"-"+nu;var Zs="listenerMiddleware";var nC=dr(Zs+"/add"),aC=dr(Zs+"/removeAll"),sC=dr(Zs+"/remove");var Qd,lC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qd||(Qd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Xm=function(t){return function(e){setTimeout(e,t)}},cC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xm(10);Fd();window.ftReduxStores||(window.ftReduxStores={});var qt=class t extends Wt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ho(a))return a;if(n==null)return;let s=ou({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=tu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=et(s.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new mi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...m)=>{let h=p(...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=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Jm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ho(e)&&e.clear()}var cn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);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 Qm(t,e,r){return new cn(t,e,r).watch()}var $r=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Js={};Y(Js,{scrollHelper:()=>eg});var Ys,dn=new Map,Xs=class{lock(e,r){if(r){let o=dn.get(r);if(o==null||o===e)return dn.set(r,e),r}}release(e,r){r&&dn.get(r)===e&&dn.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of $a(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Ar(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Ys=window.FluidTopicsScrollHelper)!==null&&Ys!==void 0?Ys:new Xs;var eg=window.FluidTopicsScrollHelper;var el={};Y(el,{SearchPlaceConverter:()=>Co,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>ju,serializeRequest:()=>ng});var tg=t=>typeof t=="object"&&t!=null;var rg=t=>typeof t=="number",un=t=>typeof t=="string",Lu=t=>tg(t)&&un(t.endpoint)&&un(t.method)&&un(t.statusText)&&un(t.body)&&rg(t.status),su;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(su||(su={}));var lu;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(lu||(lu={}));var cu;(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"})(cu||(cu={}));var du;(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"})(du||(du={}));var uu;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(uu||(uu={}));var pu;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pu||(pu={}));var fu;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(fu||(fu={}));var hu;(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"})(hu||(hu={}));var mu;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(mu||(mu={}));var gu;(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"})(gu||(gu={}));var yu;(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"})(yu||(yu={}));var bu;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(bu||(bu={}));var vu;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vu||(vu={}));var xu;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(xu||(xu={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var Su;(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"})(Su||(Su={}));var xo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(xo||(xo={}));var Cu;(function(t){t.ASC="ASC",t.DESC="DESC"})(Cu||(Cu={}));var wu;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(wu||(wu={}));var Qs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Qs||(Qs={}));var Iu=t=>Object.keys(Qs).includes(t);var Eu;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Eu||(Eu={}));var pn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(pn||(pn={}));var Ou;(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"})(Ou||(Ou={}));var So;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(So||(So={}));var ku=t=>Object.keys(So).includes(t);var Au;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Au||(Au={}));var Ru;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ru||(Ru={}));var _u;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(_u||(_u={}));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 ct;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ct||(ct={}));var Tu;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tu||(Tu={}));var Pu;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Pu||(Pu={}));var Nu;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Nu||(Nu={}));var Du;(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"})(Du||(Du={}));var Mu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Mu||(Mu={}));var $u;(function(t){t.JSON="JSON",t.TEXT="TEXT"})($u||($u={}));var Fu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fu||(Fu={}));var Uu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Uu||(Uu={}));var Bu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Bu||(Bu={}));var Vu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Vu||(Vu={}));var Hu;(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"})(Hu||(Hu={}));var fn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fn||(fn={}));var og={[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 zu(t,e){return t===e||(og[t]??[]).some(r=>zu(r,e))}function xi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>zu(o,e))}function ig(t){return`"${t}"`}function Wu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ng(t,e){return new Co(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 ag=new Set(Object.values(H));function ju(t){return ag.has(t)}var Co=class{constructor(e,r=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,m,h,g,y,b,w;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),((o=e.query)===null||o===void 0?void 0:o.length)>0&&E.append(H.QUERY,e.query);let _=z=>{var W,k;let U=((k=(W=z.valueFilter)===null||W===void 0?void 0:W.values)!==null&&k!==void 0?k:[]).map(X=>this.escapeFilters(X)).map(X=>ig(Wu(X))).join("_");return`${z.key}~${U}`},P=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(z=>z.valueFilter&&!z.valueFilter.negative))!==null&&a!==void 0?a:[];P.length>0&&E.append(H.VALUE_FILTERS,P.map(_).join("*"));let S=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(z=>z.valueFilter&&z.valueFilter.negative))!==null&&l!==void 0?l:[];S.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,S.map(_).join("*"));let v=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(z=>z.dateFilter))!==null&&p!==void 0?p:[];if(v.length>0){let z=v.map(W=>{var k;return`${W.key}~${(k=W.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,z)}let O=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(z=>z.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let z=O.map(W=>{var k,U;return`${W.key}~${(k=W.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=W.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");E.append(H.RANGE_FILTERS,z)}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&&((b=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&b!==void 0?b: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 D=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let z in D)E.append(z,D[z]);let ee=new Array;return E.forEach((z,W)=>{ee.push(this.encodeQueryString(W)+"="+this.encodeQueryString(z))}),encodeURI(ee.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(_){console.warn("Could not decode search request query params, fallback on raw value",_)}let d=new URLSearchParams(e),p=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=(o=d.get(H.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(n=d.get(H.SCOPE))!==null&&n!==void 0?n:"default",y=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(H.KEYWORD_MATCH),w=b?b.toUpperCase()===xo.MANDATORY?xo.MANDATORY:xo.OPTIONAL:void 0,E={};for(let _ of d.keys())ju(_)||(E[_]=d.get(_));return{contentLocale:p??(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:Iu(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Ar(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:w,otherQueryParams:E}}parseCompatFilters(e){var r,o,n,a,s,l,d;let p=[];return e.has(H.FILTERS)&&(p=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(H.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...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(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Wu).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:So[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(ku(e))return[{key:"ft:lastEdition",dateFilter:{type:So[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[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 o=new URL(e);return o.searchParams.delete(H.LOCALE),r!==void 0&&o.searchParams.append(H.LOCALE,r),o.toString()}};var rl={};Y(rl,{toFtFormComponent:()=>Fr});var tl=Symbol("elementInternals"),Fr=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[tl].form}constructor(...o){super(o),this[tl]=this.attachInternals()}setFormValue(o){this[tl].setFormValue(o)}}return e});var ol={};Y(ol,{DateFormatter:()=>Ur});var Ur=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var nl={};Y(nl,{ALL_KEYS_VALUE:()=>il,SameWindowStorageEvent:()=>wo});var il="__all__",wo=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==il}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new wo(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new wo(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new wo(il))}});var sl={};Y(sl,{FocusMainContentEvent:()=>al});var al=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Gu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function sg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function lg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",sg);document.addEventListener("click",lg);var Ku=A`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,25 +68,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var hl={};Y(hl,{withAriaNotification:()=>dg});var cg={checkVisibility:!0},dg=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,n){let{checkVisibility:a}={...cg,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Pt({type:"aria",message:o})))},20)}}return e});var ml={};Y(ml,{withConditionalVisibility:()=>Ai});var Yu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Ai(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Yu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Yu([I()],e.prototype,"isVisible",void 0),e}function gl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function bn(t,e,r){return t?e(t):r?.(t)}var Le=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(jr||(jr={}));var Gr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Gr||(Gr={}));var yl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},lw=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=jr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Gr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===jr.blur||this.validateOn===jr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Gr.default&&this.validateOn===jr.blurWithStatusResolutionOnInput||this.validateOn===jr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=gl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=gl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new yl(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return v`
71
+ `;var ll={};Y(ll,{withAriaNotification:()=>dg});var cg={checkVisibility:!0},dg=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,n){let{checkVisibility:a}={...cg,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Lt({type:"aria",message:o})))},20)}}return e});var dl={};Y(dl,{withConditionalVisibility:()=>cl});var Zu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function cl(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Zu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Zu([I()],e.prototype,"isVisible",void 0),e}var pl={};Y(pl,{FormController:()=>ul});function ug(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var ul=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=ug(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let o={...this.data};o[e]=r,this.data=o,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var o,n;let a=(n=(o=this.config[e]).validator)===null||n===void 0?void 0:n.call(o,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,o,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=Lu(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function fl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function hn(t,e,r){return t?e(t):r?.(t)}var Le=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Br;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Br||(Br={}));var Vr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Vr||(Vr={}));var hl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},dw=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Br.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Vr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Br.blur||this.validateOn===Br.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Vr.default&&this.validateOn===Br.blurWithStatusResolutionOnInput||this.validateOn===Br.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=fl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=fl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new hl(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
- ${qe(this.errorMessages,o=>v`
74
+ ${Ke(this.errorMessages,o=>x`
75
75
  <li>${o}</li>
76
76
  `)}
77
- ${qe(this.warningMessages,o=>v`
77
+ ${Ke(this.warningMessages,o=>x`
78
78
  <li>${o}</li>
79
79
  `)}
80
- ${bn(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>v`
80
+ ${hn(!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?Gr.error:this.warningMessages.length?Gr.warning:Gr.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([I()],e.prototype,"errorMessages",void 0),Le([I()],e.prototype,"warningMessages",void 0),Le([I()],e.prototype,"status",void 0),Le([I()],e.prototype,"focused",void 0),Le([I()],e.prototype,"additionalWarningRules",void 0),Le([I()],e.prototype,"additionalErrorRules",void 0),e});var Ri=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Ri(o,e);return!0},vn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Xu=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),fg(e)}};function ug(t){this._$AN!==void 0?(vn(this),this._$AM=t,Xu(this)):this._$AM=t}function pg(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)Ri(o[a],!1),vn(o[a]);else o!=null&&(Ri(o,!1),vn(o));else Ri(this,t)}var fg=t=>{t.type==kt.CHILD&&(t._$AP??=pg,t._$AQ??=ug)},To=class extends dt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),Xu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ri(this,e),vn(this))}setValue(e){if(Sc(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 bl=class extends To{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Oe}update(e){return this.part=e,this.ensureFocusTrap(e.element),Oe}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=0;o<r.length;o++){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ct&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},Aw=rt(bl);var Ju;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Ju||(Ju={}));var hg={sm:640,md:768,lg:1024,xl:1280},vl=class extends To{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,o,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),a=o??(()=>L);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:hg[e]}},Lw=rt(vl);var mg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xl=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Qu(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new xl({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,mg([De({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Sl,Cl,wl,El,Kr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((wl=(Cl=(Sl=window.safari)===null||Sl===void 0?void 0:Sl.pushNotification)===null||Cl===void 0?void 0:Cl.toString())!==null&&wl!==void 0?wl:"")==="[object SafariRemoteNotification]",gg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(El=window.ftGlobals)!==null&&El!==void 0?El:{lit:Pa,litDecorators:Da,litRepeat:Ma,litClassMap:$a,litStyleMap:Fa,litUnsafeHTML:Ua,wcUtils:{...Za,...Va,...Ja,...cl,...Qa,...Ha,...os,...Ka,...ys,...fl,...Zu,...il,...bs,...rs,...Es,...ll,...Cs,...hl,...ml,..._d,...Wa,...Rs,...is,...Ts,...qu,...Ld,...Ls,...tl,...ul,...vs,...Ss,...al,...Ya,isSafari:Kr,isTouchScreen:gg,setVariable:R}};var Jt=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}};var Lo=class{constructor(e,r,o,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=o,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Jt(this.context,this.host,this.t,this.subscribe))}};var xn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let o=r||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:o}]of this.subscriptions)r(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,r,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Ol=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},Io=class extends xn{constructor(e,r,o){super(r.context!==void 0?r.initialValue:o),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Jt(this.context,l,s,!0)));n.stopPropagation()},this.host=e,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ol(this.context,this.host))}};var _i=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=r;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Jt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function Ti({context:t}){return(e,r)=>{let o=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return o.get(this).setValue(n),e.set.call(this,n)},init(n){return o.set(this,new Io(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{o.set(s,new Io(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){o.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){o.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Li({context:t,subscribe:e}){return(r,o)=>{typeof o=="object"?o.addInitializer((function(){new Lo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new Lo(n,{context:t,callback:a=>{n[o]=a},subscribe:e})}))}}var yg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Al=Symbol("asset-viewer-state-manager"),ht=fe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(o){super.willUpdate(o),o.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return yg([Li({context:Al,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),e});var bg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Sn=t=>Xt.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:bg});var ko=class extends Hr{constructor(e){super(),this.store=e}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var vg="ft-app-info",Ut=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ut.eventName="authentication-change";var Zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zr.eventName="ui-locale-changed";var xg={session:(t,e)=>{it(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new Ut(e.payload)),0))}},N=Xt.get({name:vg,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Cn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tp=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Wr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Cn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Cn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Cn([H({store:N.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Cn([H({store:N.name})],e.prototype,"uiLocale",void 0),e});var Bt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=N.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=N.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var Ie=class extends Po{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new Nt,this.cache=e?n.commonCache:new Nt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var wn=class extends Ie{async listMySearches(){let{session:e}=N.getState();return Oi(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends Ie{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 On=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=N.getState().session;return!!e?.sessionAuthenticated}};var An=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=N.getState().session;return!!e?.sessionAuthenticated}};var Sg="ft-user-assets",Cg={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ft).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:n}=e.payload;_l(t,r,[...Rl(t,r),n]),rp(t,r,1,o),op(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;_l(t,r,Rl(t,r).map(n=>n.id===o.id?o:n)),op(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;_l(t,r,Rl(t,r).filter(a=>a.id!==n)),rp(t,r,-1,o)}},ip={[ft.SEARCHES]:"savedSearches",[ft.BOOKMARKS]:"bookmarks",[ft.BOOKS]:void 0,[ft.COLLECTIONS]:void 0},Rl=(t,e)=>{var r;let o=ip[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},_l=(t,e,r)=>{let o=ip[e];o&&(t[o]=r)},rp=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ft.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},op=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},We=Xt.get({name:Sg,reducers:Cg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ft).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Tl=class{constructor(e=new On,r=new An){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new wn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();it((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(),We.actions.clearAssetCount(),We.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),We.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),We.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();We.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();We.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&We.getState().assetCounts.allAsset[e]!==r.count&&We.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&We.getState().assetCounts.bookmarkByMap[e]!==r.count&&We.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(We.getState().assetCounts.bookmarkByMap).length!==0;e===ft.BOOKMARKS&&r&&We.actions.clearBookmarkCountByMap(),We.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;We.actions.bookmarks(r)}}},wg=new Tl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wg);var Ll=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ll;var np,No=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Eg=Symbol("clearAfterUnitTest"),Rn=class extends tn(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[np]=()=>{this.defaultMessages={},this.cache=new Nt,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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};it(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new vi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Lr)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new No({loadedContexts:e})),this.dispatchEvent(new No({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new No({loadedContexts:[e]})),this.dispatchEvent(new No({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Qi(0).then(()=>o()).catch(()=>null)))}};np=Eg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Do=window.FluidTopicsI18nService,_n=window.FluidTopicsCustomI18nService;var Il=class{highlightHtml(e,r,o){As(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Il;var kl=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a,s;if(e==null)return"";try{return Wr.format(e,(o=r?.locale)!==null&&o!==void 0?o: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 kl;var Ii=class{static get(e,r){var o,n,a,s;let l=N.getState(),{lang:d,region:p}=(a=(n=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ro(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${p}`)}};var Pl=class{urlToSearchRequest(e){return Ii.get().parse(e)}searchRequestToUrl(e){return Ii.get().serialize(e)}};window.FluidTopicsUrlService=new Pl;var qr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};qr.eventName="change";var Nl=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))}},ap=new Nl;var Tn=class t extends Gt{static build(){return new t(window.history,ap,()=>window.location,!1)}constructor(e,r,o,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),it(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new qr(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(qr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(qr.eventName,e)}currentItem(){return ot(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 ot(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return ot(r.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return ot(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Tn.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 Ln=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let o=JSON.stringify(r);window.localStorage.setItem(e,o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:o,storageArea:window.localStorage}))}get(e){var r,o;if(!this.isAuthenticated())return(o=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&o!==void 0?o:void 0}addStoreListener(e,r){let o=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(o),window.addEventListener("storage",o)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var sp=A`
85
- `;function lp(t,e){let{authenticationRequired:r,session:o}=N.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var In=class extends Po{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Dl=class t extends Hr{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt,this.withManualResources=!0,this.userLocaleService=new In,this.cleanSessionDebouncer=new Me,this.reloadDebouncer=new Me(500),this.apiProvider=r??(()=>Bt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Ut.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",()=>lp(()=>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(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zr(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}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)}},Mo=Dl.build();var ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends ve{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Mo,this.contextRoot=new _i}render(){return v`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vr.error:this.warningMessages.length?Vr.warning:Vr.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([I()],e.prototype,"errorMessages",void 0),Le([I()],e.prototype,"warningMessages",void 0),Le([I()],e.prototype,"status",void 0),Le([I()],e.prototype,"focused",void 0),Le([I()],e.prototype,"additionalWarningRules",void 0),Le([I()],e.prototype,"additionalErrorRules",void 0),e});var Si=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Si(o,e);return!0},mn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},qu=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),hg(e)}};function pg(t){this._$AN!==void 0?(mn(this),this._$AM=t,qu(this)):this._$AM=t}function fg(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)Si(o[a],!1),mn(o[a]);else o!=null&&(Si(o,!1),mn(o));else Si(this,t)}var hg=t=>{t.type==Tt.CHILD&&(t._$AP??=fg,t._$AQ??=pg)},Eo=class extends at{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),qu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Si(this,e),mn(this))}setValue(e){if(bc(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var ml=class extends Eo{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Oe}update(e){return this.part=e,this.ensureFocusTrap(e.element),Oe}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=0;o<r.length;o++){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof nt&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},_w=Qe(ml);var Yu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Yu||(Yu={}));var mg={sm:640,md:768,lg:1024,xl:1280},gl=class extends Eo{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,o,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),a=o??(()=>L);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:mg[e]}},kw=Qe(gl);var gg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yl=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Xu(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new yl({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,gg([Ne({})],r.prototype,"configuredAnalyticsActions",void 0),r}var bl,vl,xl,Sl,Hr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((xl=(vl=(bl=window.safari)===null||bl===void 0?void 0:bl.pushNotification)===null||vl===void 0?void 0:vl.toString())!==null&&xl!==void 0?xl:"")==="[object SafariRemoteNotification]",yg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Sl=window.ftGlobals)!==null&&Sl!==void 0?Sl:{lit:Ra,litDecorators:Ta,litRepeat:La,litClassMap:Ia,litStyleMap:ka,litUnsafeHTML:Pa,wcUtils:{...Ha,...Da,...Ga,...ol,...Ka,...Ma,...Xa,...Va,...us,...sl,...Gu,...Js,...ps,...Ya,...bs,...rl,...gs,...ll,...dl,...Od,...Fa,...Ss,...Ja,...ws,...Ku,...Rd,...Es,...qs,...nl,...fs,...ms,...el,...Wa,...pl,isSafari:Hr,isTouchScreen:yg,setVariable:R}};var Yt=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}};var Oo=class{constructor(e,r,o,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=o,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Yt(this.context,this.host,this.t,this.subscribe))}};var gn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let o=r||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:o}]of this.subscriptions)r(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,r,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Cl=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},Ao=class extends gn{constructor(e,r,o){super(r.context!==void 0?r.initialValue:o),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Yt(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 Cl(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:o}=r;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Yt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function wi({context:t}){return(e,r)=>{let o=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return o.get(this).setValue(n),e.set.call(this,n)},init(n){return o.set(this,new Ao(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{o.set(s,new Ao(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){o.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){o.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Ei({context:t,subscribe:e}){return(r,o)=>{typeof o=="object"?o.addInitializer((function(){new Oo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new Oo(n,{context:t,callback:a=>{n[o]=a},subscribe:e})}))}}var bg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wl=Symbol("asset-viewer-state-manager"),Mt=fe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(o){super.willUpdate(o),o.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return bg([Ei({context:wl,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),e});var vg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},yn=t=>qt.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:vg});var Ro=class extends $r{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",$t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$t.eventName="authentication-change";var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};zr.eventName="ui-locale-changed";var Sg={session:(t,e)=>{Ve(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new $t(e.payload)),0))}},N=qt.get({name:xg,reducers:Sg,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var bn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qu=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Ur.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return bn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),bn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),bn([q({store:N.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),bn([q({store:N.name})],e.prototype,"uiLocale",void 0),e});var Ft=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=N.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=N.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};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 o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new 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,o)=>0|31*r+o.charCodeAt(0),0))}};var vn=class extends Ie{async listMySearches(){let{session:e}=N.getState();return xi(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var xn=class extends Ie{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 Sn=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=N.getState().session;return!!e?.sessionAuthenticated}};var Cn=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=N.getState().session;return!!e?.sessionAuthenticated}};var Cg="ft-user-assets",wg={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ct).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:n}=e.payload;Ol(t,r,[...El(t,r),n]),ep(t,r,1,o),tp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Ol(t,r,El(t,r).map(n=>n.id===o.id?o:n)),tp(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;Ol(t,r,El(t,r).filter(a=>a.id!==n)),ep(t,r,-1,o)}},rp={[ct.SEARCHES]:"savedSearches",[ct.BOOKMARKS]:"bookmarks",[ct.BOOKS]:void 0,[ct.COLLECTIONS]:void 0},El=(t,e)=>{var r;let o=rp[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Ol=(t,e,r)=>{let o=rp[e];o&&(t[o]=r)},ep=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ct.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},tp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},He=qt.get({name:Cg,reducers:wg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ct).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Al=class{constructor(e=new Sn,r=new Cn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xn,this.savedSearchesService=new vn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.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(),He.actions.clearAssetCount(),He.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),He.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),He.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();He.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();He.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&He.getState().assetCounts.allAsset[e]!==r.count&&He.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&He.getState().assetCounts.bookmarkByMap[e]!==r.count&&He.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(He.getState().assetCounts.bookmarkByMap).length!==0;e===ct.BOOKMARKS&&r&&He.actions.clearBookmarkCountByMap(),He.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;He.actions.bookmarks(r)}}},Eg=new Al;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Eg);var Rl=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Rl;var op,To=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Og=Symbol("clearAfterUnitTest"),wn=class extends Yi(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[op]=()=>{this.defaultMessages={},this.cache=new It,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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};Ve(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new hi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Or)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new To({loadedContexts:e})),this.dispatchEvent(new To({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new To({loadedContexts:[e]})),this.dispatchEvent(new To({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Ki(0).then(()=>o()).catch(()=>null)))}};op=Og;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends wn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends wn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Lo=window.FluidTopicsI18nService,En=window.FluidTopicsCustomI18nService;var _l=class{highlightHtml(e,r,o){xs(e,r,o)}};window.FluidTopicsHighlightHtmlService=new _l;var Tl=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a,s;if(e==null)return"";try{return Ur.format(e,(o=r?.locale)!==null&&o!==void 0?o: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 Tl;var Oi=class{static get(e,r){var o,n,a,s;let l=N.getState(),{lang:d,region:p}=(a=(n=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Co(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${p}`)}};var Ll=class{urlToSearchRequest(e){return Oi.get().parse(e)}searchRequestToUrl(e){return Oi.get().serialize(e)}};window.FluidTopicsUrlService=new Ll;var Wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Wr.eventName="change";var Il=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))}},ip=new Il;var On=class t extends Wt{static build(){return new t(window.history,ip,()=>window.location,!1)}constructor(e,r,o,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ve(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Wr(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(Wr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Wr.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(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return et(r.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return 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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=On.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 An=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let o=JSON.stringify(r);window.localStorage.setItem(e,o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:o,storageArea:window.localStorage}))}get(e){var r,o;if(!this.isAuthenticated())return(o=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&o!==void 0?o:void 0}addStoreListener(e,r){let o=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(o),window.addEventListener("storage",o)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var np=A`
85
+ `;function ap(t,e){let{authenticationRequired:r,session:o}=N.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Rn=class extends _o{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var kl=class t extends $r{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new It,this.withManualResources=!0,this.userLocaleService=new Rn,this.cleanSessionDebouncer=new De,this.reloadDebouncer=new De(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",()=>ap(()=>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(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new zr(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}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)}},Io=kl.build();var ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends ve{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Io,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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Do.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};me.elementDefinitions={};me.styles=sp;ke([f()],me.prototype,"baseUrl",void 0);ke([f()],me.prototype,"tenantId",void 0);ke([f()],me.prototype,"apiIntegrationIdentifier",void 0);ke([f()],me.prototype,"apiIntegrationAppVersion",void 0);ke([f()],me.prototype,"uiLocale",void 0);ke([De(null)],me.prototype,"availableUiLocales",void 0);ke([De(null)],me.prototype,"metadataConfiguration",void 0);ke([f({type:Boolean})],me.prototype,"editorMode",void 0);ke([f({type:Boolean})],me.prototype,"noCustom",void 0);ke([f({type:Boolean})],me.prototype,"openExternalDocumentInNewTab",void 0);ke([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],me.prototype,"noCustomComponent",void 0);ke([f({type:Boolean})],me.prototype,"withManualResources",void 0);ke([f({type:Boolean})],me.prototype,"navigatorOnline",void 0);ke([f({type:Boolean})],me.prototype,"forcedOffline",void 0);ke([f({type:Boolean})],me.prototype,"authenticationRequired",void 0);ke([De([])],me.prototype,"messageContexts",void 0);ke([De(void 0)],me.prototype,"session",void 0);var cp={"ft-app-context":me};Z(cp);var mr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(mr||(mr={}));var Vt;(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"})(Vt||(Vt={}));var Yr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:ot(e),composed:!0,bubbles:!0})}};Yr.eventName="ft-viewer-loaded";var kn=class extends Ie{getAsset(e,r,o){let n={[mr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[mr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[mr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[o])}};var Pn=class t extends ko{static build(e){return new t(Sn(e),new kn)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:o}=this.store.getState();if(e&&r&&o){let n=await this.service.getAsset(e,r,o);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,o){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(o),await this.reload(),this.store.getState()}};var ki=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qt=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Pn.build(this.id||ni(6))}render(){return v`
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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Lo.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};me.elementDefinitions={};me.styles=np;ke([f()],me.prototype,"baseUrl",void 0);ke([f()],me.prototype,"tenantId",void 0);ke([f()],me.prototype,"apiIntegrationIdentifier",void 0);ke([f()],me.prototype,"apiIntegrationAppVersion",void 0);ke([f()],me.prototype,"uiLocale",void 0);ke([Ne(null)],me.prototype,"availableUiLocales",void 0);ke([Ne(null)],me.prototype,"metadataConfiguration",void 0);ke([f({type:Boolean})],me.prototype,"editorMode",void 0);ke([f({type:Boolean})],me.prototype,"noCustom",void 0);ke([f({type:Boolean})],me.prototype,"openExternalDocumentInNewTab",void 0);ke([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],me.prototype,"noCustomComponent",void 0);ke([f({type:Boolean})],me.prototype,"withManualResources",void 0);ke([f({type:Boolean})],me.prototype,"navigatorOnline",void 0);ke([f({type:Boolean})],me.prototype,"forcedOffline",void 0);ke([f({type:Boolean})],me.prototype,"authenticationRequired",void 0);ke([Ne([])],me.prototype,"messageContexts",void 0);ke([Ne(void 0)],me.prototype,"session",void 0);var sp={"ft-app-context":me};Z(sp);var ur;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(ur||(ur={}));var lp;(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"})(lp||(lp={}));var jr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:et(e),composed:!0,bubbles:!0})}};jr.eventName="ft-viewer-loaded";var _n=class extends Ie{getAsset(e,r,o){let n={[ur.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[ur.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[ur.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[o])}};var Tn=class t extends Ro{static build(e){return new t(yn(e),new _n)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:o}=this.store.getState();if(e&&r&&o){let n=await this.service.getAsset(e,r,o);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,o){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(o),await this.reload(),this.store.getState()}};var Ai=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xt=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Tn.build(this.id||ei(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 Yr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}};ki([f()],Qt.prototype,"documentId",void 0);ki([f()],Qt.prototype,"assetId",void 0);ki([f()],Qt.prototype,"origin",void 0);ki([Ti({context:Al})],Qt.prototype,"viewerStateManager",void 0);ki([ut({eventName:Ut.eventName})],Qt.prototype,"onAuthenticationChange",null);var Fe=class extends ve{};var Og={position:i.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},dp=A`
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 jr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}};Ai([f()],Xt.prototype,"documentId",void 0);Ai([f()],Xt.prototype,"assetId",void 0);Ai([f()],Xt.prototype,"origin",void 0);Ai([wi({context:wl})],Xt.prototype,"viewerStateManager",void 0);Ai([st({eventName:$t.eventName})],Xt.prototype,"onAuthenticationChange",null);var qe=class extends ve{};var Ag={position:i.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},cp=A`
90
90
  :host {
91
91
  position: absolute;
92
92
  top: 0;
@@ -97,7 +97,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
97
97
  }
98
98
 
99
99
  .ft-watermark-container {
100
- position: ${Og.position};
100
+ position: ${Ag.position};
101
101
  top: 0;
102
102
  text-align: center;
103
103
  }
@@ -105,110 +105,110 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
105
105
  .ft-watermark {
106
106
  z-index: 79;
107
107
  }
108
- `;var pp=Symbol.for(""),Ag=t=>{if(t?.r===pp)return t?._$litStatic$},Ml=t=>({_$litStatic$:t,r:pp});var up=new Map,$l=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],d,p=0,m=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(n=Ag(a))!==void 0);)d+=n+e[++p],m=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),m){let h=s.join("$$lit$$");(e=up.get(h))===void 0&&(s.raw=s,up.set(h,e=s)),r=l}return t(e,...r)},Fl=$l(v),DR=$l(Jo),MR=$l(Ta);var oe;(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"})(oe||(oe={}));var fp=i.extend("--ft-typography-font-family","",S.titleFont),er=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:er,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gr={fontFamily:i.extend("--ft-typography-title-font-family","",fp),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},yr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",fp),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},$o={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",er),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},Fo={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",er),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},mt={fontFamily:i.extend("--ft-typography-body1-font-family","",er),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},gt={fontFamily:i.extend("--ft-typography-body2-font-family","",er),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},at={fontFamily:i.extend("--ft-typography-caption-font-family","",er),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Uo={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",er),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Bo={fontFamily:i.extend("--ft-typography-overline-font-family","",er),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},je={fontFamily:i.extend("--ft-typography-button-font-family","",er),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},hp=A`
108
+ `;var up=Symbol.for(""),Rg=t=>{if(t?.r===up)return t?._$litStatic$},Pl=t=>({_$litStatic$:t,r:up});var dp=new Map,Nl=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],d,p=0,m=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(n=Rg(a))!==void 0);)d+=n+e[++p],m=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),m){let h=s.join("$$lit$$");(e=dp.get(h))===void 0&&(s.raw=s,dp.set(h,e=s)),r=l}return t(e,...r)},Dl=Nl(x),FR=Nl(Ko),UR=Nl(wa);var re;(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"})(re||(re={}));var pp=i.extend("--ft-typography-font-family","",C.titleFont),Jt=i.extend("--ft-typography-font-family","",C.contentFont),M={fontFamily:Jt,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pr={fontFamily:i.extend("--ft-typography-title-font-family","",pp),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},fr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",pp),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},ko={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Jt),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},Po={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Jt),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},dt={fontFamily:i.extend("--ft-typography-body1-font-family","",Jt),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},ut={fontFamily:i.extend("--ft-typography-body2-font-family","",Jt),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},rt={fontFamily:i.extend("--ft-typography-caption-font-family","",Jt),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},No={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Jt),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Do={fontFamily:i.extend("--ft-typography-overline-font-family","",Jt),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},ze={fontFamily:i.extend("--ft-typography-button-font-family","",Jt),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},fp=A`
109
109
  .ft-typography--title {
110
- font-family: ${gr.fontFamily};
111
- font-size: ${gr.fontSize};
112
- font-weight: ${gr.fontWeight};
113
- letter-spacing: ${gr.letterSpacing};
114
- line-height: ${gr.lineHeight};
115
- text-transform: ${gr.textTransform};
116
- }
117
- `,mp=A`
110
+ font-family: ${pr.fontFamily};
111
+ font-size: ${pr.fontSize};
112
+ font-weight: ${pr.fontWeight};
113
+ letter-spacing: ${pr.letterSpacing};
114
+ line-height: ${pr.lineHeight};
115
+ text-transform: ${pr.textTransform};
116
+ }
117
+ `,hp=A`
118
118
  .ft-typography--title-dense {
119
- font-family: ${yr.fontFamily};
120
- font-size: ${yr.fontSize};
121
- font-weight: ${yr.fontWeight};
122
- letter-spacing: ${yr.letterSpacing};
123
- line-height: ${yr.lineHeight};
124
- text-transform: ${yr.textTransform};
119
+ font-family: ${fr.fontFamily};
120
+ font-size: ${fr.fontSize};
121
+ font-weight: ${fr.fontWeight};
122
+ letter-spacing: ${fr.letterSpacing};
123
+ line-height: ${fr.lineHeight};
124
+ text-transform: ${fr.textTransform};
125
125
  }
126
- `,gp=A`
126
+ `,mp=A`
127
127
  .ft-typography--subtitle1 {
128
- font-family: ${$o.fontFamily};
129
- font-size: ${$o.fontSize};
130
- font-weight: ${$o.fontWeight};
131
- letter-spacing: ${$o.letterSpacing};
132
- line-height: ${$o.lineHeight};
133
- text-transform: ${$o.textTransform};
128
+ font-family: ${ko.fontFamily};
129
+ font-size: ${ko.fontSize};
130
+ font-weight: ${ko.fontWeight};
131
+ letter-spacing: ${ko.letterSpacing};
132
+ line-height: ${ko.lineHeight};
133
+ text-transform: ${ko.textTransform};
134
134
  }
135
- `,yp=A`
135
+ `,gp=A`
136
136
  .ft-typography--subtitle2 {
137
- font-family: ${Fo.fontFamily};
138
- font-size: ${Fo.fontSize};
139
- font-weight: ${Fo.fontWeight};
140
- letter-spacing: ${Fo.letterSpacing};
141
- line-height: ${Fo.lineHeight};
142
- text-transform: ${Fo.textTransform};
137
+ font-family: ${Po.fontFamily};
138
+ font-size: ${Po.fontSize};
139
+ font-weight: ${Po.fontWeight};
140
+ letter-spacing: ${Po.letterSpacing};
141
+ line-height: ${Po.lineHeight};
142
+ text-transform: ${Po.textTransform};
143
143
  }
144
144
 
145
- `,br=A`
145
+ `,hr=A`
146
146
  .ft-typography--body1 {
147
- font-family: ${mt.fontFamily};
148
- font-size: ${mt.fontSize};
149
- font-weight: ${mt.fontWeight};
150
- letter-spacing: ${mt.letterSpacing};
151
- line-height: ${mt.lineHeight};
152
- text-transform: ${mt.textTransform};
147
+ font-family: ${dt.fontFamily};
148
+ font-size: ${dt.fontSize};
149
+ font-weight: ${dt.fontWeight};
150
+ letter-spacing: ${dt.letterSpacing};
151
+ line-height: ${dt.lineHeight};
152
+ text-transform: ${dt.textTransform};
153
153
  }
154
- `,bp=A`
154
+ `,yp=A`
155
155
  .ft-typography--body2 {
156
- font-family: ${gt.fontFamily};
157
- font-size: ${gt.fontSize};
158
- font-weight: ${gt.fontWeight};
159
- letter-spacing: ${gt.letterSpacing};
160
- line-height: ${gt.lineHeight};
161
- text-transform: ${gt.textTransform};
162
- }
163
- `,Nn=A`
156
+ font-family: ${ut.fontFamily};
157
+ font-size: ${ut.fontSize};
158
+ font-weight: ${ut.fontWeight};
159
+ letter-spacing: ${ut.letterSpacing};
160
+ line-height: ${ut.lineHeight};
161
+ text-transform: ${ut.textTransform};
162
+ }
163
+ `,Ln=A`
164
164
  .ft-typography--caption {
165
- font-family: ${at.fontFamily};
166
- font-size: ${at.fontSize};
167
- font-weight: ${at.fontWeight};
168
- letter-spacing: ${at.letterSpacing};
169
- line-height: ${at.lineHeight};
170
- text-transform: ${at.textTransform};
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
171
  }
172
- `,vp=A`
172
+ `,bp=A`
173
173
  .ft-typography--breadcrumb {
174
- font-family: ${Uo.fontFamily};
175
- font-size: ${Uo.fontSize};
176
- font-weight: ${Uo.fontWeight};
177
- letter-spacing: ${Uo.letterSpacing};
178
- line-height: ${Uo.lineHeight};
179
- text-transform: ${Uo.textTransform};
174
+ font-family: ${No.fontFamily};
175
+ font-size: ${No.fontSize};
176
+ font-weight: ${No.fontWeight};
177
+ letter-spacing: ${No.letterSpacing};
178
+ line-height: ${No.lineHeight};
179
+ text-transform: ${No.textTransform};
180
180
  }
181
- `,xp=A`
181
+ `,vp=A`
182
182
  .ft-typography--overline {
183
- font-family: ${Bo.fontFamily};
184
- font-size: ${Bo.fontSize};
185
- font-weight: ${Bo.fontWeight};
186
- letter-spacing: ${Bo.letterSpacing};
187
- line-height: ${Bo.lineHeight};
188
- text-transform: ${Bo.textTransform};
183
+ font-family: ${Do.fontFamily};
184
+ font-size: ${Do.fontSize};
185
+ font-weight: ${Do.fontWeight};
186
+ letter-spacing: ${Do.letterSpacing};
187
+ line-height: ${Do.lineHeight};
188
+ text-transform: ${Do.textTransform};
189
189
  }
190
- `,Sp=A`
190
+ `,xp=A`
191
191
  .ft-typography--button {
192
- font-family: ${je.fontFamily};
193
- font-size: ${je.fontSize};
194
- font-weight: ${je.fontWeight};
195
- letter-spacing: ${je.letterSpacing};
196
- line-height: ${je.lineHeight};
197
- text-transform: ${je.textTransform};
198
- }
199
- `,Cp=A`
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
+ `,Sp=A`
200
200
  .ft-typography {
201
201
  vertical-align: inherit;
202
202
  }
203
- `;var wp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},X=class extends ${constructor(){super(...arguments),this.variant=oe.body1}render(){return this.element?Fl`
204
- <${Ml(this.element)}
203
+ `;var Cp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J=class extends ${constructor(){super(...arguments),this.variant=re.body1}render(){return this.element?Dl`
204
+ <${Pl(this.element)}
205
205
  part="text"
206
206
  class="ft-typography ft-typography--${this.variant}">
207
207
  <slot></slot>
208
- </${Ml(this.element)}>
209
- `:Fl`
208
+ </${Pl(this.element)}>
209
+ `:Dl`
210
210
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
211
- `}};X.styles=[hp,mp,gp,yp,br,bp,Nn,vp,xp,Sp,Cp];wp([f()],X.prototype,"element",void 0);wp([f()],X.prototype,"variant",void 0);var Ep={"ft-typography":X};Z(Ep);var Dn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ot=class extends ${constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,o;return this.watermark?v`
211
+ `}};J.styles=[fp,hp,mp,gp,hr,yp,Ln,bp,vp,xp,Sp];Cp([f()],J.prototype,"element",void 0);Cp([f()],J.prototype,"variant",void 0);var wp={"ft-typography":J};Z(wp);var In=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class extends ${constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,o;return this.watermark?x`
212
212
  <style>
213
213
  .ft-watermark {
214
214
  height: ${this.height}px;
@@ -223,38 +223,38 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
223
223
  transform="rotate(-45)"
224
224
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
225
225
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
226
- ${qe(((o=this.watermark)===null||o===void 0?void 0:o.text)||[],n=>Jo`<tspan x="0" dy="1.2em">${n}</tspan>`)}
226
+ ${Ke(((o=this.watermark)===null||o===void 0?void 0:o.text)||[],n=>Ko`<tspan x="0" dy="1.2em">${n}</tspan>`)}
227
227
  </text>
228
228
  </svg>
229
229
  </div>
230
- `:L}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ot.styles=[dp,br];Dn([F(".ft-watermark")],Ot.prototype,"svg",void 0);Dn([f({attribute:!1})],Ot.prototype,"watermark",void 0);Dn([f({attribute:!1})],Ot.prototype,"heightReference",void 0);Dn([I()],Ot.prototype,"height",void 0);var Op={"ft-content-watermark":Ot};Z(Op);var st=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends Ai(Fe){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return v`
230
+ `:L}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()}};Ct.styles=[cp,hr];In([F(".ft-watermark")],Ct.prototype,"svg",void 0);In([f({attribute:!1})],Ct.prototype,"watermark",void 0);In([f({attribute:!1})],Ct.prototype,"heightReference",void 0);In([I()],Ct.prototype,"height",void 0);var Ep={"ft-content-watermark":Ct};Z(Ep);var ot=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends cl(qe){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
231
231
  ${this.renderContent()}
232
232
  <ft-content-watermark part="watermark"
233
233
  .watermark=${this.watermark}
234
234
  .exportpartsPrefixes=${["watermark"]}
235
235
  .heightReference=${this}></ft-content-watermark>
236
- `}renderContent(){var e;switch(this.viewerType){case"image":return this.renderImageViewer();case"inline-svg":return this.renderImageViewer();case"video":return this.renderVideoViewer();case"pdf":return this.renderPdfViewer();case"iframe":return this.renderIframeViewer((e=this.descriptor)===null||e===void 0?void 0:e.contentUrl);default:return L}}renderImageViewer(){var e,r;return v`
236
+ `}renderContent(){var e;switch(this.viewerType){case"image":return this.renderImageViewer();case"inline-svg":return this.renderImageViewer();case"video":return this.renderVideoViewer();case"pdf":return this.renderPdfViewer();case"iframe":return this.renderIframeViewer((e=this.descriptor)===null||e===void 0?void 0:e.contentUrl);default:return L}}renderImageViewer(){var e,r;return x`
237
237
  <div class="image-viewer">
238
238
  <div class="image-viewer-content">
239
239
  <div class="image-container">
240
- ${this.viewerType==="image"?v`
240
+ ${this.viewerType==="image"?x`
241
241
  <img src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}"
242
242
  alt="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
243
243
  @load=${this.onImageLoad}>
244
- `:v`
245
- ${ti(this.svgContent)}
244
+ `:x`
245
+ ${Yo(this.svgContent)}
246
246
  `}
247
247
 
248
248
  </div>
249
249
  </div>
250
250
  </div>
251
- `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,r=this.clientHeight/this.clientWidth;return e>r?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return v`
251
+ `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,r=this.clientHeight/this.clientWidth;return e>r?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return x`
252
252
  <video src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}" controls></video>
253
- `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Bt.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return v`
253
+ `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Ft.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return x`
254
254
  <iframe src="${e}"
255
255
  title="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
256
256
  ></iframe>
257
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(o=this.viewerStateManager)===null||o===void 0||o.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,o,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,o,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:p,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${p}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)&&((n=Bt.get())===null||n===void 0||n.fetch((a=this.descriptor)===null||a===void 0?void 0:a.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};xe.elementDefinitions={"ft-content-watermark":Ot};xe.styles=A`
257
+ `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(o=this.viewerStateManager)===null||o===void 0||o.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,o,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,o,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:p,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${p}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)&&((n=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":Ct};xe.styles=A`
258
258
  :host {
259
259
  display: block;
260
260
  min-height: 100px;
@@ -296,12 +296,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
296
296
  max-height: 100%;
297
297
  border: none;
298
298
  }
299
- `;st([H({store:"viewer"})],xe.prototype,"descriptor",void 0);st([I()],xe.prototype,"viewerType",void 0);st([I()],xe.prototype,"inlineSvgAllowed",void 0);st([H({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);st([H({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);st([H({store:"viewer"})],xe.prototype,"watermark",void 0);st([F("img")],xe.prototype,"image",void 0);st([F("svg")],xe.prototype,"svg",void 0);st([F(".image-viewer")],xe.prototype,"imageViewer",void 0);st([F(".image-container")],xe.prototype,"imageContainer",void 0);st([I()],xe.prototype,"imageHeight",void 0);st([I()],xe.prototype,"imageWidth",void 0);st([I()],xe.prototype,"svgContent",void 0);var Mn=class extends ht(xe){};var Xe=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?_n:Do}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Ul=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Vo=new Ul;var Rg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ni=Symbol("i18nAttributes"),Ap=Symbol("i18nListAttributes"),Di=Symbol("i18nProperties"),$n=Symbol("i18nContexts"),Pi=Symbol("i18nUnsubs"),Je=fe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?_n:Do}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Vo.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Ni])===null||s===void 0||s.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[Ap])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(y=>p(m,h,y))})}updateI18nProperties(a){var s;(s=this[Di])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[$n].set(d,{isCustomContext:l}),this[Pi].has(d)||this[Pi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[$n].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[$n].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Pi].forEach(a=>a()),this[Pi].clear()}}return e=$n,r=Pi,Rg([f({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Fn=class extends Je($){},Un=class extends Je(ve){};var Bn=(t,e)=>(r,o)=>{var n,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:o};r[Di]=(a=r[Di])!==null&&a!==void 0?a:new Map,r[Di].set(o,s)};var Rp=A`
300
- `;var Mi=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},At=class extends Un{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":L:v`
301
- <span class="ft-i18n">
302
- ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
303
- </span>
304
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};At.elementDefinitions={};At.styles=Rp;Mi([H()],At.prototype,"editorMode",void 0);Mi([f()],At.prototype,"context",void 0);Mi([f()],At.prototype,"key",void 0);Mi([De([])],At.prototype,"args",void 0);Mi([f()],At.prototype,"defaultMessage",void 0);var _p={"ft-i18n":At};Z(_p);var we={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Tp=[A`
299
+ `;ot([q({store:"viewer"})],xe.prototype,"descriptor",void 0);ot([I()],xe.prototype,"viewerType",void 0);ot([I()],xe.prototype,"inlineSvgAllowed",void 0);ot([q({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);ot([q({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);ot([q({store:"viewer"})],xe.prototype,"watermark",void 0);ot([F("img")],xe.prototype,"image",void 0);ot([F("svg")],xe.prototype,"svg",void 0);ot([F(".image-viewer")],xe.prototype,"imageViewer",void 0);ot([F(".image-container")],xe.prototype,"imageContainer",void 0);ot([I()],xe.prototype,"imageHeight",void 0);ot([I()],xe.prototype,"imageWidth",void 0);ot([I()],xe.prototype,"svgContent",void 0);var kn=class extends Mt(xe){};var _g=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qt=class extends qe{render(){return this.filename?x`
300
+ <ft-typography variant="${re.body1}" part="filename">
301
+ ${this.filename}
302
+ </ft-typography>
303
+ `:L}};Qt.elementDefinitions={"ft-typography":J};Qt.styles=A`
304
+ [part="filename"]::part(text) {
305
+ margin: unset;
306
+ }
307
+ `;_g([q({store:"viewer",selector:({descriptor:t})=>t?.filename})],Qt.prototype,"filename",void 0);var Pn=class extends Mt(Qt){};var Tg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gr=class extends qe{render(){return this.displayName?x`
308
+ <ft-typography variant="${re.title}" part="display-name" element="h2">
309
+ ${this.displayName}
310
+ </ft-typography>
311
+ `:L}};Gr.elementDefinitions={"ft-typography":J};Gr.styles=A`
312
+ [part="display-name"]::part(text) {
313
+ margin: unset;
314
+ }
315
+ `;Tg([q({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Gr.prototype,"displayName",void 0);var Nn=class extends Mt(Gr){};var we={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Op=[A`
305
316
  :host, i.ft-icon {
306
317
  display: inline-flex;
307
318
  align-items: center;
@@ -349,128 +360,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
349
360
  .ft-icon--material {
350
361
  font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
351
362
  }
352
- `,qt];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Qe;(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;"})(Qe||(Qe={}));var T;(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;"})(T||(T={}));var Bl=new Map([...["abw"].map(t=>[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,T.AUDIO]),...["avi"].map(t=>[t,T.AVI]),...["chm","xhs"].map(t=>[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,T.CODE]),...["csv"].map(t=>[t,T.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,T.DITA]),...["epub"].map(t=>[t,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,T.EXCEL]),...["flac"].map(t=>[t,T.FLAC]),...["gif"].map(t=>[t,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,T.GZIP]),...["html","htm","xhtml"].map(t=>[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,T.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,T.JPEG]),...["json"].map(t=>[t,T.JSON]),...["m4a","m4p"].map(t=>[t,T.M4A]),...["mov","qt"].map(t=>[t,T.MOV]),...["mp3"].map(t=>[t,T.MP3]),...["mp4","m4v"].map(t=>[t,T.MP4]),...["ogg","oga"].map(t=>[t,T.OGG]),...["pdf","ps"].map(t=>[t,T.PDF]),...["png"].map(t=>[t,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,T.POWERPOINT]),...["rar"].map(t=>[t,T.RAR]),...["stp"].map(t=>[t,T.STP]),...["txt","rtf","md","mdown"].map(t=>[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,T.VIDEO]),...["wav"].map(t=>[t,T.WAV]),...["wma"].map(t=>[t,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,T.WORD]),...["xml","xsl","rdf"].map(t=>[t,T.XML]),...["yaml","yml","x-yaml"].map(t=>[t,T.YAML]),...["zip"].map(t=>[t,T.ZIP])]),_g=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 Vn(t,e){var r,o,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=_g.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(o=Bl.get(l))!==null&&o!==void 0?o:Bl.get(e))!==null&&n!==void 0?n:Bl.get(s))!==null&&a!==void 0?a:T.UNKNOWN}var Vl={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var $i=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends ${constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=L}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return v`
363
+ `,Kt];var $e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})($e||($e={}));var Kr;(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;"})(Kr||(Kr={}));var T;(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;"})(T||(T={}));var Ml=new Map([...["abw"].map(t=>[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,T.AUDIO]),...["avi"].map(t=>[t,T.AVI]),...["chm","xhs"].map(t=>[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,T.CODE]),...["csv"].map(t=>[t,T.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,T.DITA]),...["epub"].map(t=>[t,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,T.EXCEL]),...["flac"].map(t=>[t,T.FLAC]),...["gif"].map(t=>[t,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,T.GZIP]),...["html","htm","xhtml"].map(t=>[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,T.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,T.JPEG]),...["json"].map(t=>[t,T.JSON]),...["m4a","m4p"].map(t=>[t,T.M4A]),...["mov","qt"].map(t=>[t,T.MOV]),...["mp3"].map(t=>[t,T.MP3]),...["mp4","m4v"].map(t=>[t,T.MP4]),...["ogg","oga"].map(t=>[t,T.OGG]),...["pdf","ps"].map(t=>[t,T.PDF]),...["png"].map(t=>[t,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,T.POWERPOINT]),...["rar"].map(t=>[t,T.RAR]),...["stp"].map(t=>[t,T.STP]),...["txt","rtf","md","mdown"].map(t=>[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,T.VIDEO]),...["wav"].map(t=>[t,T.WAV]),...["wma"].map(t=>[t,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,T.WORD]),...["xml","xsl","rdf"].map(t=>[t,T.XML]),...["yaml","yml","x-yaml"].map(t=>[t,T.YAML]),...["zip"].map(t=>[t,T.ZIP])]),Lg=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 Dn(t,e){var r,o,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=Lg.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(o=Ml.get(l))!==null&&o!==void 0?o:Ml.get(e))!==null&&n!==void 0?n:Ml.get(s))!==null&&a!==void 0?a:T.UNKNOWN}var $l={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var Ri=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends ${constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=L}render(){let e=this.variant&&Object.values($e).includes(this.variant)?this.variant:$e.fluid_topics,r=e!==$e.material||!!this.value;return x`
353
364
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
354
- ${ti(this.resolvedIcon)}
365
+ ${Yo(this.resolvedIcon)}
355
366
  <slot ?hidden=${r}></slot>
356
367
  </i>
357
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=T[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Ue.material:this.resolvedIcon=this.value||L;break;default:this.resolvedIcon=(r=Qe[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=Tp;$i([f()],te.prototype,"variant",void 0);$i([f()],te.prototype,"value",void 0);$i([f({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);$i([I()],te.prototype,"resolvedIcon",void 0);$i([F("slot")],te.prototype,"slottedContent",void 0);var Lp={"ft-icon":te};Z(Lp);var Fi={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Ip=A`
358
- .ft-tooltip--container {
359
- display: block;
360
- }
361
-
362
- .ft-tooltip--inline {
363
- display: inline-block;
364
- max-width: 100%;
365
- }
366
-
367
- .ft-tooltip {
368
- inset: 0;
369
- margin: 0;
370
- border: none;
371
- background: transparent;
372
- box-sizing: border-box;
373
- overflow: hidden;
374
- width: max-content;
375
- max-width: ${Fi.maxWidth};
376
- text-align: center;
377
- padding: ${Fi.distance};
378
- }
379
-
380
- .ft-tooltip--content {
381
- padding: 4px 8px;
382
- border-radius: ${Fi.borderRadiusS};
383
- background-color: ${Fi.backgroundColor};
384
- color: ${Fi.color};
385
- position: relative;
386
- word-break: break-word;
387
- }
388
- `;var Hl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Vo.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Tg=new Hl;var kp=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:St,converter:Vo,...e}),r[Ni]=(n=r[Ni])!==null&&n!==void 0?n:new Map,r[Ni].set(o,t??{})};var Rt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends Fn{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 Me,this.revealDebouncer=new Me,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 v`
389
- <div part="container"
390
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
391
- <slot part="slot"></slot>
392
- <div part="tooltip" role="tooltip" inert
393
- class="ft-tooltip ft-tooltip--${this.validPosition}"
394
- popover="manual">
395
- <div part="tooltip-content" class="ft-tooltip--content">
396
- <slot name="text"></slot>
397
- <ft-typography variant="${oe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
398
- ${(r=this.text)===null||r===void 0?void 0:r.message}
399
- </ft-typography>
400
- </div>
401
- </div>
402
- </div>
403
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&mi(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 oi(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":X};se.styles=Ip;Rt([kp()],se.prototype,"text",void 0);Rt([f({type:Boolean})],se.prototype,"manual",void 0);Rt([f({type:Boolean})],se.prototype,"inline",void 0);Rt([xt()],se.prototype,"delay",void 0);Rt([f()],se.prototype,"position",void 0);Rt([De([])],se.prototype,"ignoreMatchingElements",void 0);Rt([ei()],se.prototype,"slotNodes",void 0);Rt([F(".ft-tooltip--container")],se.prototype,"container",void 0);Rt([F(".ft-tooltip")],se.prototype,"tooltip",void 0);Rt([F(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);Rt([I()],se.prototype,"visible",void 0);var Pp={"ft-tooltip":se};Z(Pp);var vr=Xe.build("designedViewer"),Np={fitToContainerAriaLabel:"Fill available space",zoomRealSizeAriaLabel:"Display content at original size",zoomInAriaLabel:"Zoom in",zoomOutAriaLabel:"Zoom out",rotateLeftAriaLabel:"Rotate left",rotateRightAriaLabel:"Rotate right"};var tr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends Ai(Je(Fe)){constructor(){super(...arguments),this.disabled=!1,this.tabindex=0,this.role="button",this.ariaLabel="",this.control=Vt.FIT_TO_CONTAINER,this.controlDefinitions={[Vt.FIT_TO_CONTAINER]:{ariaLabel:()=>vr.messages.fitToContainerAriaLabel(),icon:Qe.ZOOM_FULLSCREEN,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(void 0)}},[Vt.ZOOM_REAL_SIZE]:{ariaLabel:()=>vr.messages.zoomRealSizeAriaLabel(),icon:Qe.ZOOM_REALSIZE,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(1)}},[Vt.ZOOM_IN]:{ariaLabel:()=>vr.messages.zoomInAriaLabel(),icon:Qe.ZOOM_IN,disabled:()=>{var e;return((e=this.zoom)!==null&&e!==void 0?e:1)>20},run:()=>{var e,r;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)*1.2)}},[Vt.ZOOM_OUT]:{ariaLabel:()=>vr.messages.zoomOutAriaLabel(),icon:Qe.ZOOM_OUT,disabled:()=>{var e;return((e=this.zoom)!==null&&e!==void 0?e:1)<.05},run:()=>{var e,r;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)/1.2)}},[Vt.ROTATE_LEFT]:{ariaLabel:()=>vr.messages.rotateLeftAriaLabel(),icon:Qe.ARROW_ROTATE_LEFT,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setRotation(this.rotation-90)}},[Vt.ROTATE_RIGHT]:{ariaLabel:()=>vr.messages.rotateRightAriaLabel(),icon:Qe.ARROW_ROTATE_RIGHT,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setRotation(this.rotation+90)}}},this.modifyContent=()=>{var e;(e=this.controlDefinitions[this.control])===null||e===void 0||e.run()}}render(){var e;return this.isVisible?v`
404
- <slot>
405
- <ft-tooltip text="${this.ariaLabel}">
406
- <ft-icon value="${(e=this.controlDefinitions[this.control])===null||e===void 0?void 0:e.icon}"></ft-icon>
407
- </ft-tooltip>
408
- </slot>
409
- `:L}willUpdate(e){var r,o,n,a;super.willUpdate(e),this.updateAriaLabel(),this.disabled=(n=(o=(r=this.controlDefinitions[this.control])===null||r===void 0?void 0:r.disabled)===null||o===void 0?void 0:o.call(r))!==null&&n!==void 0?n:!1,this.isVisible=!!(!((a=this.descriptor)===null||a===void 0)&&a.viewableInCurrentBrowser)&&this.descriptor.mimeType.startsWith("image/")}onI18nUpdate(e){super.onI18nUpdate(e),this.updateAriaLabel()}updateAriaLabel(){var e;this.ariaLabel=(e=this.controlDefinitions[this.control])===null||e===void 0?void 0:e.ariaLabel()}connectedCallback(){super.connectedCallback(),this.addI18nContext(vr,Np),this.updateComplete.then(()=>{var e;return(e=this.tooltip)===null||e===void 0?void 0:e.setupFor(this)}),this.addEventListener("click",this.modifyContent)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.modifyContent)}};Pe.elementDefinitions={"ft-icon":te,"ft-tooltip":se};Pe.styles=A`
410
- :host {
411
- display: inline-block;
412
- opacity: 1;
413
- filter: grayscale(0);
414
- transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
415
- cursor: pointer;
416
- }
417
-
418
- :host([disabled]) {
419
- opacity: 0.8;
420
- filter: grayscale(1);
421
- pointer-events: none;
422
- cursor: inherit;
423
- }
424
-
425
- ft-icon {
426
- display: inline-flex;
427
- align-items: center;
428
- justify-content: center;
429
- width: 40px;
430
- height: 40px;
431
- border-radius: 50%;
432
- background-color: ${S.colorPrimary};
433
- color: ${S.colorOnPrimary};
434
- cursor: pointer;
435
- transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
436
- }
437
-
438
- :host:hover, :host:focus-within {
439
- ft-icon {
440
- background-color: hsl(from ${S.colorPrimary} h s calc(l + 30));
441
- }
442
- }
443
- `;tr([f({type:Boolean,reflect:!0})],Pe.prototype,"disabled",void 0);tr([f({reflect:!0})],Pe.prototype,"tabindex",void 0);tr([f({reflect:!0})],Pe.prototype,"role",void 0);tr([f({reflect:!0,attribute:"aria-label"})],Pe.prototype,"ariaLabel",void 0);tr([f()],Pe.prototype,"control",void 0);tr([H({store:"viewer"})],Pe.prototype,"descriptor",void 0);tr([H({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],Pe.prototype,"zoom",void 0);tr([H({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],Pe.prototype,"rotation",void 0);tr([F("ft-tooltip")],Pe.prototype,"tooltip",void 0);var Hn=class extends ht(Pe){};var Lg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rr=class extends Fe{render(){return this.filename?v`
444
- <ft-typography variant="${oe.body1}" part="filename">
445
- ${this.filename}
446
- </ft-typography>
447
- `:L}};rr.elementDefinitions={"ft-typography":X};rr.styles=A`
448
- [part="filename"]::part(text) {
449
- margin: unset;
450
- }
451
- `;Lg([H({store:"viewer",selector:({descriptor:t})=>t?.filename})],rr.prototype,"filename",void 0);var zn=class extends ht(rr){};var Ig=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xr=class extends Fe{render(){return this.displayName?v`
452
- <ft-typography variant="${oe.title}" part="display-name" element="h2">
453
- ${this.displayName}
454
- </ft-typography>
455
- `:L}};Xr.elementDefinitions={"ft-typography":X};Xr.styles=A`
456
- [part="display-name"]::part(text) {
457
- margin: unset;
458
- }
459
- `;Ig([H({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Xr.prototype,"displayName",void 0);var Wn=class extends ht(Xr){};var Dp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},or=class extends Fe{render(){var e,r;return this.mimeType?v`
368
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case $e.file_format:this.resolvedIcon=(e=T[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case $e.material:this.resolvedIcon=this.value||L;break;default:this.resolvedIcon=(r=Kr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=Op;Ri([f()],oe.prototype,"variant",void 0);Ri([f()],oe.prototype,"value",void 0);Ri([f({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);Ri([I()],oe.prototype,"resolvedIcon",void 0);Ri([F("slot")],oe.prototype,"slottedContent",void 0);var Ap={"ft-icon":oe};Z(Ap);var Rp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},er=class extends qe{render(){var e,r;return this.mimeType?x`
460
369
  <ft-icon part="icon"
461
- variant="${Ue.file_format}"
462
- value="${Vn(this.mimeType,ii((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
463
- `:L}};or.elementDefinitions={"ft-icon":te};Dp([H({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],or.prototype,"mimeType",void 0);Dp([H({store:"viewer",selector:({descriptor:t})=>t?.filename})],or.prototype,"filename",void 0);var jn=class extends ht(or){};var kg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ir=class extends Fe{render(){return this.documentTitle?v`
464
- <ft-typography variant="${oe.title}" part="title" element="h1">
370
+ variant="${$e.file_format}"
371
+ value="${Dn(this.mimeType,Qo((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
372
+ `:L}};er.elementDefinitions={"ft-icon":oe};Rp([q({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],er.prototype,"mimeType",void 0);Rp([q({store:"viewer",selector:({descriptor:t})=>t?.filename})],er.prototype,"filename",void 0);var Mn=class extends Mt(er){};var Ig=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tr=class extends qe{render(){return this.documentTitle?x`
373
+ <ft-typography variant="${re.title}" part="title" element="h1">
465
374
  ${this.documentTitle}
466
375
  </ft-typography>
467
- `:L}};ir.elementDefinitions={"ft-typography":X};ir.styles=A`
376
+ `:L}};tr.elementDefinitions={"ft-typography":J};tr.styles=A`
468
377
  [part="title"]::part(text) {
469
378
  margin: unset;
470
379
  }
471
- `;kg([H({store:"viewer",selector:({document:t})=>t?.title})],ir.prototype,"documentTitle",void 0);var Gn=class extends ht(ir){};var Mp;(function(t){t.RATING="RATING"})(Mp||(Mp={}));var xr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(xr||(xr={}));var Sr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(Sr||(Sr={}));var Kn=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,o){return this.api.rateDocument(e,r,o)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,o){return this.api.sendDocumentFeedback(e,r,o)}isFeatureAccessible(e,{session:r}){switch(e){case Sr.FEEDBACK:return Oi(r??[],he.FEEDBACK_USER);case Sr.RATING:return Oi(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 o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Zn=class t extends ko{static build(e){return new t(Sn(e),new Kn)}constructor(e,r,o){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,e.actions.origin(mr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:o}=this.store.getState();if(o){let[n]=await Promise.all([this.service.getDocument(o),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:yn.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 o=(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(o!==void 0&&o.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(xr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>qa(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 sr(o,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 o=sr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return si(o)}};var $p=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zl=Symbol("ud-viewer-state-manager"),Be=fe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(o.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),o.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(o){this.clearStateManager(),this.viewerStateManager=o,this.addStore(o.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(o){o&&(o.registerComponent(this,this.neededUdvRequests),this.addStore(o.store,"viewer"))}unregisterFromUdvStateManager(o){o&&(o.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return $p([Li({context:zl,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),$p([I({hasChanged:St})],e.prototype,"neededUdvRequests",void 0),e});var qn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cr=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Zn.build(this.id||ni(6))}render(){return v`
380
+ `;Ig([q({store:"viewer",selector:({document:t})=>t?.title})],tr.prototype,"documentTitle",void 0);var $n=class extends Mt(tr){};var _p;(function(t){t.RATING="RATING"})(_p||(_p={}));var mr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(mr||(mr={}));var gr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(gr||(gr={}));var Fn=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,o){return this.api.rateDocument(e,r,o)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,o){return this.api.sendDocumentFeedback(e,r,o)}isFeatureAccessible(e,{session:r}){switch(e){case gr.FEEDBACK:return xi(r??[],he.FEEDBACK_USER);case gr.RATING:return xi(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 o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Un=class t extends Ro{static build(e){return new t(yn(e),new Fn)}constructor(e,r,o){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,e.actions.origin(ur.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:o}=this.store.getState();if(o){let[n]=await Promise.all([this.service.getDocument(o),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:fn.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 o=(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(o!==void 0&&o.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(mr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>za(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 or(o,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 o=or.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return ri(o)}};var Tp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fl=Symbol("ud-viewer-state-manager"),Ye=fe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(o.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),o.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(o){this.clearStateManager(),this.viewerStateManager=o,this.addStore(o.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(o){o&&(o.registerComponent(this,this.neededUdvRequests),this.addStore(o.store,"viewer"))}unregisterFromUdvStateManager(o){o&&(o.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return Tp([Ei({context:Fl,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),Tp([I({hasChanged:bt})],e.prototype,"neededUdvRequests",void 0),e});var Bn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yr=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Un.build(this.id||ei(6))}render(){return x`
472
381
  <slot></slot>
473
- `}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 Yr(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){Mo===null||Mo===void 0||Mo.stopReloadDebouncer();let o=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);o?window.location.assign(o):window.location.reload()}}};qn([f()],Cr.prototype,"documentId",void 0);qn([Ti({context:zl})],Cr.prototype,"viewerStateManager",void 0);qn([ut({eventName:Ut.eventName})],Cr.prototype,"onAuthenticationChange",null);qn([ut({store:N.name,eventName:Zr.eventName})],Cr.prototype,"reactToUiLocaleChanged",null);var Yn=class extends Be(xe){};var Xn=class extends Be(Pe){};var Jn=class extends Be(rr){};var Qn=class extends Be(ir){};var ea=class extends Be(or){};var Fp={itemsGap:i.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var ta;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ta||(ta={}));var Up;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Up||(Up={}));var Pg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jl=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Wl=Symbol("registerInterval"),Gl=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[Wl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Wl]):this.dispatchEvent(new jl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Wl,Pg([I()],r.prototype,"stateManager",void 0),r}),Bp=class extends Gl(ve){};var Kl=Xe.build("designedReaderAttachments"),Vp={download:"Download \u201C{0}\u201D"};var Hp=i.extend("--ft-ripple-color","",S.colorContent),ae={color:Hp,backgroundColor:i.extend("--ft-ripple-background-color","",Hp),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},zp=i.extend("--ft-ripple-color","",S.colorPrimary),Wp={color:zp,backgroundColor:i.extend("--ft-ripple-background-color","",zp)},jp=i.extend("--ft-ripple-color","",S.colorSecondary),Gp={color:jp,backgroundColor:i.extend("--ft-ripple-background-color","",jp)},Kp=A`
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 jr(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){Io===null||Io===void 0||Io.stopReloadDebouncer();let o=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);o?window.location.assign(o):window.location.reload()}}};Bn([f()],yr.prototype,"documentId",void 0);Bn([wi({context:Fl})],yr.prototype,"viewerStateManager",void 0);Bn([st({eventName:$t.eventName})],yr.prototype,"onAuthenticationChange",null);Bn([st({store:N.name,eventName:zr.eventName})],yr.prototype,"reactToUiLocaleChanged",null);var Vn=class extends Ye(xe){};var Hn=class extends Ye(Qt){};var zn=class extends Ye(tr){};var Wn=class extends Ye(er){};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?En:Lo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Ul=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Mo=new Ul;var kg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ti=Symbol("i18nAttributes"),Lp=Symbol("i18nListAttributes"),Li=Symbol("i18nProperties"),jn=Symbol("i18nContexts"),_i=Symbol("i18nUnsubs"),ft=fe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?En:Lo}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Mo.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Ti])===null||s===void 0||s.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[Lp])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(y=>p(m,h,y))})}updateI18nProperties(a){var s;(s=this[Li])===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[jn].set(d,{isCustomContext:l}),this[_i].has(d)||this[_i].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[jn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[_i].forEach(a=>a()),this[_i].clear()}}return e=jn,r=_i,kg([f({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Gn=class extends ft($){},Kn=class extends ft(ve){};var Zn=(t,e)=>(r,o)=>{var n,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:o};r[Li]=(a=r[Li])!==null&&a!==void 0?a:new Map,r[Li].set(o,s)};var Ip=A`
383
+ `;var Ii=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wt=class extends Kn{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":L:x`
384
+ <span class="ft-i18n">
385
+ ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
386
+ </span>
387
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};wt.elementDefinitions={};wt.styles=Ip;Ii([q()],wt.prototype,"editorMode",void 0);Ii([f()],wt.prototype,"context",void 0);Ii([f()],wt.prototype,"key",void 0);Ii([Ne([])],wt.prototype,"args",void 0);Ii([f()],wt.prototype,"defaultMessage",void 0);var kp={"ft-i18n":wt};Z(kp);var Pp={itemsGap:i.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-reader-attachments-item-border-color","",C.colorOutline),itemBorderRadius:i.extend("--ft-reader-attachments-item-border-radius","",C.borderRadiusS),itemBackgroundColor:i.extend("--ft-reader-attachments-item-background-color","",C.colorSurface),itemTextColor:i.extend("--ft-reader-attachments-item-text-color","",C.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-reader-attachments-item-hover-background-color","",C.colorPrimary),itemHoverTextColor:i.extend("--ft-reader-attachments-item-hover-text-color","",C.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var qn;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(qn||(qn={}));var Np;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Np||(Np={}));var Pg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vl=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Bl=Symbol("registerInterval"),Hl=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[Bl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Bl]):this.dispatchEvent(new Vl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bl,Pg([I()],r.prototype,"stateManager",void 0),r}),Dp=class extends Hl(ve){};var zl=pt.build("designedReaderAttachments"),Mp={download:"Download \u201C{0}\u201D"};var $p=i.extend("--ft-ripple-color","",C.colorContent),ae={color:$p,backgroundColor:i.extend("--ft-ripple-background-color","",$p),opacityContentOnSurfacePressed:i.external(C.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(C.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(C.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(C.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Fp=i.extend("--ft-ripple-color","",C.colorPrimary),Up={color:Fp,backgroundColor:i.extend("--ft-ripple-background-color","",Fp)},Bp=i.extend("--ft-ripple-color","",C.colorSecondary),Vp={color:Bp,backgroundColor:i.extend("--ft-ripple-background-color","",Bp)},Hp=A`
474
388
  :host {
475
389
  display: contents;
476
390
  }
@@ -525,19 +439,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
525
439
  }
526
440
 
527
441
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
528
- background-color: ${Gp.backgroundColor};
442
+ background-color: ${Vp.backgroundColor};
529
443
  }
530
444
 
531
445
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
532
- background-color: ${Gp.color};
446
+ background-color: ${Vp.color};
533
447
  }
534
448
 
535
449
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
536
- background-color: ${Wp.backgroundColor};
450
+ background-color: ${Up.backgroundColor};
537
451
  }
538
452
 
539
453
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
540
- background-color: ${Wp.color};
454
+ background-color: ${Up.color};
541
455
  }
542
456
 
543
457
  .ft-ripple .ft-ripple--background {
@@ -582,20 +496,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
582
496
  opacity: ${ae.opacityContentOnSurfacePressed};
583
497
  transform: translate(-50%, -50%) scale(1);
584
498
  }
585
- `;var et=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends ${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 Me(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 Me(10),this.moveRipple=e=>{var r,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{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 v`
499
+ `;var Xe=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends ${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 De(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 De(10),this.moveRipple=e=>{var r,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{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`
586
500
  <style>
587
501
  .ft-ripple .ft-ripple--effect {
588
502
  left: ${this.originX}px;
589
503
  top: ${this.originY}px;
590
504
  }
591
505
  </style>
592
- <div class="${ne(e)}">
506
+ <div class="${ie(e)}">
593
507
  <div class="ft-ripple--background"></div>
594
508
  <div class="ft-ripple--effect"></div>
595
509
  </div>
596
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Kp;et([f({type:Boolean})],K.prototype,"primary",void 0);et([f({type:Boolean})],K.prototype,"secondary",void 0);et([f({type:Boolean})],K.prototype,"unbounded",void 0);et([f({type:Boolean})],K.prototype,"activated",void 0);et([f({type:Boolean})],K.prototype,"selected",void 0);et([f({type:Boolean})],K.prototype,"disabled",void 0);et([I()],K.prototype,"hovered",void 0);et([I()],K.prototype,"focused",void 0);et([I()],K.prototype,"pressed",void 0);et([I()],K.prototype,"rippling",void 0);et([I()],K.prototype,"originX",void 0);et([I()],K.prototype,"originY",void 0);et([F(".ft-ripple")],K.prototype,"ripple",void 0);et([F(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var Zp={"ft-ripple":K};Z(Zp);var ra=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ng={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},_t=class extends Qu(ve,Ng){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 v`
597
- <div part="container" class="${ne(e)}">
598
- ${qe(this.attachments,r=>r.id,r=>{var o;let n=Vn(r.mimeType,ii(r.file.split(".")));return v`
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,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Hp;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([I()],K.prototype,"hovered",void 0);Xe([I()],K.prototype,"focused",void 0);Xe([I()],K.prototype,"pressed",void 0);Xe([I()],K.prototype,"rippling",void 0);Xe([I()],K.prototype,"originX",void 0);Xe([I()],K.prototype,"originY",void 0);Xe([F(".ft-ripple")],K.prototype,"ripple",void 0);Xe([F(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var zp={"ft-ripple":K};Z(zp);var Yn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ng={"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 Xu(ve,Ng){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
+ <div part="container" class="${ie(e)}">
512
+ ${Ke(this.attachments,r=>r.id,r=>{var o;let n=Dn(r.mimeType,Qo(r.file.split(".")));return x`
599
513
  <div part="attachment">
600
514
  <a part="viewer-link" href="${this.getAttachmentViewerLink(r)}"
601
515
  aria-label="${this.getAttachmentAriaLabel(r)}"
@@ -604,10 +518,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
604
518
  <ft-icon part="file-format-icon"
605
519
  variant="file-format"
606
520
  value="${n}"
607
- style="color: ${(o=Vl[n])!==null&&o!==void 0?o:Vl[T.UNKNOWN]}"></ft-icon>
608
- <ft-typography part="name" variant="${oe.body2}">${r.name}</ft-typography>
521
+ style="color: ${(o=$l[n])!==null&&o!==void 0?o:$l[T.UNKNOWN]}"></ft-icon>
522
+ <ft-typography part="name" variant="${re.body2}">${r.name}</ft-typography>
609
523
  </a>
610
- ${r.externalLink?L:v`
524
+ ${r.externalLink?L:x`
611
525
  <a part="download-link"
612
526
  target="_blank"
613
527
  href="${this.getAttachmentDownloadLink(r)}"
@@ -620,7 +534,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
620
534
  </div>
621
535
  `})}
622
536
  </div>
623
- `}return L}getAttachmentAriaLabel(e){var r;let o=e.name,n=e.file;if(o===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return o+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};_t.elementDefinitions={"ft-icon":te,"ft-ripple":K,"ft-typography":X};ra([f({type:Boolean})],_t.prototype,"hideFileFormatIcon",void 0);ra([f({type:Boolean})],_t.prototype,"hideFilename",void 0);ra([f({type:Boolean})],_t.prototype,"hideDownloadIcon",void 0);ra([I()],_t.prototype,"attachments",void 0);function oa(t){return A`
537
+ `}return L}getAttachmentAriaLabel(e){var r;let o=e.name,n=e.file;if(o===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return o+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Et.elementDefinitions={"ft-icon":oe,"ft-ripple":K,"ft-typography":J};Yn([f({type:Boolean})],Et.prototype,"hideFileFormatIcon",void 0);Yn([f({type:Boolean})],Et.prototype,"hideFilename",void 0);Yn([f({type:Boolean})],Et.prototype,"hideDownloadIcon",void 0);Yn([I()],Et.prototype,"attachments",void 0);function Xn(t){return A`
624
538
  [part="container"] {
625
539
  display: flex;
626
540
  flex-direction: column;
@@ -687,7 +601,53 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
687
601
  .hide-download-icon [part="download-link"] {
688
602
  display: none;
689
603
  }
690
- `}var qp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jr=class extends Gl(Je(_t)){constructor(){super(),this.addI18nContext(Kl,Vp)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Kl.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Jr.styles=oa(Fp);qp([H({store:"reader"})],Jr.prototype,"map",void 0);qp([ut({eventName:ta.mapAttachmentsUpdate})],Jr.prototype,"updateAttachments",null);var Yp={"ft-reader-attachments":Jr};Z(Yp);var Xp={itemsGap:i.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Ho=Xe.build("designedUdViewer"),Jp={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var Qp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qr=class extends Be(Je(_t)){constructor(){super(),this.addI18nContext(Ho,Jp)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Ho.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Qr.styles=oa(Xp);Qp([H({store:"viewer"})],Qr.prototype,"document",void 0);Qp([ut({eventName:xr.udAttachmentsUpdate})],Qr.prototype,"updateAttachments",null);var ia=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},na=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var eo={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},ef=A`
604
+ `}var Wp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Zr=class extends Hl(ft(Et)){constructor(){super(),this.addI18nContext(zl,Mp)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return zl.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Zr.styles=Xn(Pp);Wp([q({store:"reader"})],Zr.prototype,"map",void 0);Wp([st({eventName:qn.mapAttachmentsUpdate})],Zr.prototype,"updateAttachments",null);var jp={"ft-reader-attachments":Zr};Z(jp);var Gp={itemsGap:i.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-ud-viewer-attachments-item-border-color","",C.colorOutline),itemBorderRadius:i.extend("--ft-ud-viewer-attachments-item-border-radius","",C.borderRadiusS),itemBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-background-color","",C.colorSurface),itemTextColor:i.extend("--ft-ud-viewer-attachments-item-text-color","",C.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-hover-background-color","",C.colorPrimary),itemHoverTextColor:i.extend("--ft-ud-viewer-attachments-item-hover-text-color","",C.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var $o=pt.build("designedUdViewer"),Kp={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var Zp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},qr=class extends Ye(ft(Et)){constructor(){super(),this.addI18nContext($o,Kp)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return $o.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};qr.styles=Xn(Gp);Zp([q({store:"viewer"})],qr.prototype,"document",void 0);Zp([st({eventName:mr.udAttachmentsUpdate})],qr.prototype,"updateAttachments",null);var Jn=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},Qn=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var ki={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",C.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},qp=A`
605
+ .ft-tooltip--container {
606
+ display: block;
607
+ }
608
+
609
+ .ft-tooltip--inline {
610
+ display: inline-block;
611
+ max-width: 100%;
612
+ }
613
+
614
+ .ft-tooltip {
615
+ inset: 0;
616
+ margin: 0;
617
+ border: none;
618
+ background: transparent;
619
+ box-sizing: border-box;
620
+ overflow: hidden;
621
+ width: max-content;
622
+ max-width: ${ki.maxWidth};
623
+ text-align: center;
624
+ padding: ${ki.distance};
625
+ }
626
+
627
+ .ft-tooltip--content {
628
+ padding: 4px 8px;
629
+ border-radius: ${ki.borderRadiusS};
630
+ background-color: ${ki.backgroundColor};
631
+ color: ${ki.color};
632
+ position: relative;
633
+ word-break: break-word;
634
+ }
635
+ `;var Wl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Mo.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Dg=new Wl;var Yp=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:bt,converter:Mo,...e}),r[Ti]=(n=r[Ti])!==null&&n!==void 0?n:new Map,r[Ti].set(o,t??{})};var Ot=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ge=class extends Gn{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 De,this.revealDebouncer=new De,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
+ <div part="container"
637
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
638
+ <slot part="slot"></slot>
639
+ <div part="tooltip" role="tooltip" inert
640
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
641
+ popover="manual">
642
+ <div part="tooltip-content" class="ft-tooltip--content">
643
+ <slot name="text"></slot>
644
+ <ft-typography variant="${re.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
645
+ ${(r=this.text)===null||r===void 0?void 0:r.message}
646
+ </ft-typography>
647
+ </div>
648
+ </div>
649
+ </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,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&di(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${C.transitionDuration}, left ${C.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)}};ge.elementDefinitions={"ft-typography":J};ge.styles=qp;Ot([Yp()],ge.prototype,"text",void 0);Ot([f({type:Boolean})],ge.prototype,"manual",void 0);Ot([f({type:Boolean})],ge.prototype,"inline",void 0);Ot([yt()],ge.prototype,"delay",void 0);Ot([f()],ge.prototype,"position",void 0);Ot([Ne([])],ge.prototype,"ignoreMatchingElements",void 0);Ot([qo()],ge.prototype,"slotNodes",void 0);Ot([F(".ft-tooltip--container")],ge.prototype,"container",void 0);Ot([F(".ft-tooltip")],ge.prototype,"tooltip",void 0);Ot([F(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0);Ot([I()],ge.prototype,"visible",void 0);var Xp={"ft-tooltip":ge};Z(Xp);var Yr={color:i.extend("--ft-loader-color","",C.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Jp=A`
691
651
  :host {
692
652
  line-height: 0;
693
653
  }
@@ -696,8 +656,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
696
656
  display: inline-block;
697
657
  position: relative;
698
658
 
699
- width: ${eo.size};
700
- height: ${eo.size};
659
+ width: ${Yr.size};
660
+ height: ${Yr.size};
701
661
  }
702
662
 
703
663
  .ft-loader div {
@@ -706,7 +666,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
706
666
  width: 25%;
707
667
  height: 25%;
708
668
  border-radius: 50%;
709
- background: ${eo.color};
669
+ background: ${Yr.color};
710
670
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
711
671
  }
712
672
 
@@ -753,17 +713,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
753
713
  transform: translate(0, 0);
754
714
  }
755
715
  100% {
756
- transform: translate(calc(0.35 * ${eo.size}), 0);
716
+ transform: translate(calc(0.35 * ${Yr.size}), 0);
757
717
  }
758
718
  }
759
- `;var to=class extends ${render(){return v`
719
+ `;var Xr=class extends ${render(){return x`
760
720
  <div class="ft-loader">
761
721
  <div></div>
762
722
  <div></div>
763
723
  <div></div>
764
724
  <div></div>
765
725
  </div>
766
- `}};to.styles=ef;var tf={"ft-loader":to};Z(tf);var nr=t=>t??L;var rf=i.extend("--ft-button-color","",S.colorPrimary),re={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:rf,fontSize:i.extend("--ft-button-font-size","",je.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",rf),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},of=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Zl={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:of,rippleColor:i.extend("--ft-button-primary-ripple-color","",of)},Tt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},nf=A`
726
+ `}};Xr.styles=Jp;var Qp={"ft-loader":Xr};Z(Qp);var At=t=>t??L;var ef=i.extend("--ft-button-color","",C.colorPrimary),te={backgroundColor:i.extend("--ft-button-background-color","",C.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",C.borderRadiusL),color:ef,fontSize:i.extend("--ft-button-font-size","",ze.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",ef),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(C.colorOpacityDisabled,"Design system")},tf=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",C.colorOnPrimary)),jl={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",C.colorPrimary)),color:tf,rippleColor:i.extend("--ft-button-primary-ripple-color","",tf)},Ut={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",C.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},rf=A`
767
727
  :host {
768
728
  display: inline-block;
769
729
  max-width: 100%;
@@ -774,7 +734,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
774
734
  box-shadow: 0px 0px 0px transparent;
775
735
  border: 0px solid transparent;
776
736
  text-shadow: 0px 0px 0px transparent;
777
- font-size: ${re.fontSize};
737
+ font-size: ${te.fontSize};
778
738
  text-decoration: none;
779
739
  }
780
740
 
@@ -794,7 +754,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
794
754
  }
795
755
 
796
756
  .ft-button:focus-visible {
797
- outline: 2px solid ${S.colorPrimary};
757
+ outline: 2px solid ${C.colorPrimary};
798
758
  outline-offset: 2px;
799
759
  }
800
760
 
@@ -808,32 +768,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
808
768
  border: none;
809
769
  pointer-events: auto;
810
770
 
811
- --button-internal-line-height: max(calc(${re.fontSize} + 2px), ${re.iconSize});
812
- --button-internal-color: ${re.color};
813
- ${R(we.size,re.iconSize)};
814
- ${R(ae.color,re.rippleColor)};
815
- ${R(ae.borderRadius,re.borderRadius)};
771
+ --button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
772
+ --button-internal-color: ${te.color};
773
+ ${R(we.size,te.iconSize)};
774
+ ${R(ae.color,te.rippleColor)};
775
+ ${R(ae.borderRadius,te.borderRadius)};
816
776
 
817
- border-radius: ${re.borderRadius};
818
- padding: ${re.verticalPadding} ${re.horizontalPadding};
819
- background-color: ${re.backgroundColor};
777
+ border-radius: ${te.borderRadius};
778
+ padding: ${te.verticalPadding} ${te.horizontalPadding};
779
+ background-color: ${te.backgroundColor};
820
780
  color: var(--button-internal-color);
821
781
  }
822
782
 
823
783
  .ft-button.ft-button--outlined {
824
784
  border: 1px solid var(--button-internal-color);
825
- padding: calc(${re.verticalPadding} - 1px) calc(${re.horizontalPadding} - 1px);
785
+ padding: calc(${te.verticalPadding} - 1px) calc(${te.horizontalPadding} - 1px);
826
786
  }
827
787
 
828
788
  .ft-button.ft-button--dense {
829
- padding: ${Tt.verticalPadding} ${Tt.horizontalPadding};
830
- border-radius: ${Tt.borderRadius};
831
- gap: ${Tt.iconPadding};
832
- ${R(ae.borderRadius,Tt.borderRadius)};
789
+ padding: ${Ut.verticalPadding} ${Ut.horizontalPadding};
790
+ border-radius: ${Ut.borderRadius};
791
+ ${R(ae.borderRadius,Ut.borderRadius)};
833
792
  }
834
793
 
835
794
  .ft-button.ft-button--dense.ft-button--outlined {
836
- padding: calc(${Tt.verticalPadding} - 1px) calc(${Tt.horizontalPadding} - 1px);
795
+ padding: calc(${Ut.verticalPadding} - 1px) calc(${Ut.horizontalPadding} - 1px);
837
796
  }
838
797
 
839
798
  .ft-button:not([disabled]):hover {
@@ -841,22 +800,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
841
800
  }
842
801
 
843
802
  .ft-button--round {
844
- border-radius: calc(var(--button-internal-line-height) / 2 + ${re.verticalPadding});
803
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${te.verticalPadding});
845
804
  }
846
805
 
847
806
  .ft-button--round.ft-button--dense {
848
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Tt.verticalPadding});
807
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ut.verticalPadding});
849
808
  }
850
809
 
851
810
  .ft-button[disabled] {
852
811
  filter: grayscale(1);
853
- opacity: ${re.opacityDisabled};
812
+ opacity: ${te.opacityDisabled};
854
813
  }
855
814
 
856
815
  .ft-button.ft-button--primary {
857
- background-color: ${Zl.backgroundColor};
858
- --button-internal-color: ${Zl.color};
859
- ${R(ae.color,Zl.rippleColor)};
816
+ background-color: ${jl.backgroundColor};
817
+ --button-internal-color: ${jl.color};
818
+ ${R(ae.color,jl.rippleColor)};
860
819
  }
861
820
 
862
821
  .ft-button--label {
@@ -865,17 +824,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
865
824
  white-space: nowrap;
866
825
  text-overflow: ellipsis;
867
826
  display: block;
868
- margin: 0 ${re.iconPadding};
869
- ${R(je.fontSize,"1em")};
870
- ${R(je.lineHeight,"var(--button-internal-line-height)")};
827
+ margin: 0 ${te.iconPadding};
828
+ ${R(ze.fontSize,"1em")};
829
+ ${R(ze.lineHeight,"var(--button-internal-line-height)")};
871
830
  }
872
831
 
873
832
  .ft-button--dense .ft-button--label {
874
- margin: 0 ${Tt.iconPadding};
833
+ margin: 0 ${Ut.iconPadding};
875
834
  }
876
835
 
877
- .ft-button--label[hidden] {
878
- display: none;
836
+ .ft-button--label.ft-button--label-no-text {
837
+ margin: 0;
879
838
  }
880
839
 
881
840
  [part="icon"] {
@@ -884,13 +843,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
884
843
  }
885
844
 
886
845
  .ft-button--label[hidden] + [part="icon"] {
887
- margin: 0 calc(${re.horizontalPadding} * -1);
888
- padding: 0 ${re.verticalPadding};
846
+ margin: 0 calc(${te.horizontalPadding} * -1);
847
+ padding: 0 ${te.verticalPadding};
889
848
  }
890
849
 
891
850
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
892
- margin: 0 calc(${Tt.horizontalPadding} * -1);
893
- padding: 0 ${Tt.verticalPadding};
851
+ margin: 0 calc(${Ut.horizontalPadding} * -1);
852
+ padding: 0 ${Ut.verticalPadding};
894
853
  }
895
854
 
896
855
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -898,52 +857,51 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
898
857
  }
899
858
 
900
859
  ft-loader {
901
- ${R(eo.size,re.iconSize)};
902
- ${R(eo.color,"var(--button-internal-color)")};
860
+ ${R(Yr.size,te.iconSize)};
861
+ ${R(Yr.color,"var(--button-internal-color)")};
903
862
  }
904
- `;var ge=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J=class extends zr($){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.label="",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.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,o;let n=v`
863
+ `;var se=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},j=class t extends Fr($){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,o;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Hr,"ft-button--label-no-text":!this.hasTextContent},a=x`
905
864
  <ft-ripple part="ripple"
906
865
  ?disabled=${this.isDisabled()}
907
866
  ?activated=${this.activated}
908
867
  ></ft-ripple>
909
868
  <ft-typography part="label"
910
- variant="${oe.button}"
869
+ variant="${re.button}"
911
870
  element="span"
912
- class="ft-button--label ${Kr?"ft-safari-ellipsis-fix":""}"
913
- ?hidden=${!this.hasTextContent()}>
914
- <slot @slotchange=${this.onSlotchange}></slot>
871
+ class="${ie(n)}">
872
+ <slot></slot>
915
873
  </ft-typography>
916
874
  ${this.resolveIcon()}
917
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?v`
918
- <a href="${a}"
875
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?x`
876
+ <a href="${s}"
919
877
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
920
878
  part="button"
921
- class="${ne(this.buttonClasses)}"
922
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
879
+ class="${ie(this.buttonClasses)}"
880
+ aria-label="${At((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
923
881
  ?disabled=${this.isDisabled()}>
924
- ${n}
882
+ ${a}
925
883
  </a>
926
- `:v`
884
+ `:x`
927
885
  <button part="button"
928
- class="${ne(this.buttonClasses)}"
929
- aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
930
- aria-haspopup="${nr(this.ariaHasPopup)}"
931
- aria-pressed="${nr(this.ariaPressed)}"
886
+ class="${ie(this.buttonClasses)}"
887
+ aria-label="${At((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
888
+ aria-haspopup="${At(this.ariaHasPopup)}"
889
+ aria-pressed="${At(this.ariaPressed)}"
932
890
  ?disabled=${this.isDisabled()}>
933
- ${n}
891
+ ${a}
934
892
  </button>
935
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?v`
893
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?x`
936
894
  <ft-tooltip part="tooltip"
937
- text="${this.getLabel()}"
895
+ text="${this.label}"
938
896
  position="${this.tooltipPosition}">
939
897
  ${e}
940
898
  </ft-tooltip>
941
- `:e}resolveIcon(){return this.loading?v`
942
- <ft-loader part="loader icon"></ft-loader> `:this.icon?v`
899
+ `:e}resolveIcon(){return this.loading?x`
900
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?x`
943
901
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
944
- `:v`
902
+ `:x`
945
903
  <slot part="icon" name="icon"></slot>
946
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return co(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};J.elementDefinitions={"ft-ripple":K,"ft-tooltip":se,"ft-icon":te,"ft-loader":to,"ft-typography":X};J.styles=[bi,nf,qt];ge([f({type:Boolean})],J.prototype,"primary",void 0);ge([f({type:Boolean})],J.prototype,"outlined",void 0);ge([f({type:Boolean})],J.prototype,"dense",void 0);ge([f({type:Boolean})],J.prototype,"round",void 0);ge([f({type:Boolean})],J.prototype,"disabled",void 0);ge([f()],J.prototype,"icon",void 0);ge([f()],J.prototype,"iconVariant",void 0);ge([f({type:Boolean})],J.prototype,"trailingIcon",void 0);ge([f()],J.prototype,"label",void 0);ge([f()],J.prototype,"type",void 0);ge([f()],J.prototype,"href",void 0);ge([f()],J.prototype,"target",void 0);ge([f({type:Boolean})],J.prototype,"loading",void 0);ge([f({attribute:"aria-label"})],J.prototype,"ariaLabel",void 0);ge([f()],J.prototype,"ariaHasPopup",void 0);ge([f({attribute:"aria-pressed"})],J.prototype,"ariaPressed",void 0);ge([f()],J.prototype,"tooltipPosition",void 0);ge([f({type:Boolean})],J.prototype,"hideTooltip",void 0);ge([f({type:Boolean})],J.prototype,"forceTooltip",void 0);ge([f({type:Boolean})],J.prototype,"activated",void 0);ge([F(".ft-button")],J.prototype,"button",void 0);ge([F(".ft-button--label slot")],J.prototype,"slottedContent",void 0);ge([F("[part=tooltip]")],J.prototype,"tooltip",void 0);var af={"ft-button":J};Z(af);var be={textColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",je.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",S.colorPrimary)};var Ae={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},sf=A`
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 o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};j.elementDefinitions={"ft-ripple":K,"ft-tooltip":ge,"ft-icon":oe,"ft-loader":Xr,"ft-typography":J};j.styles=[fi,rf,Kt];j.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:j.labelsObserver.unobserve(e.target)}});se([f({type:Boolean})],j.prototype,"primary",void 0);se([f({type:Boolean})],j.prototype,"outlined",void 0);se([f({type:Boolean})],j.prototype,"dense",void 0);se([f({type:Boolean})],j.prototype,"round",void 0);se([f({type:Boolean})],j.prototype,"disabled",void 0);se([f()],j.prototype,"icon",void 0);se([f()],j.prototype,"iconVariant",void 0);se([f({type:Boolean})],j.prototype,"trailingIcon",void 0);se([f()],j.prototype,"label",void 0);se([f()],j.prototype,"type",void 0);se([f()],j.prototype,"href",void 0);se([f()],j.prototype,"target",void 0);se([f({type:Boolean})],j.prototype,"loading",void 0);se([f({attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);se([f()],j.prototype,"ariaHasPopup",void 0);se([f({attribute:"aria-pressed"})],j.prototype,"ariaPressed",void 0);se([f()],j.prototype,"tooltipPosition",void 0);se([f({type:Boolean})],j.prototype,"hideTooltip",void 0);se([f({type:Boolean})],j.prototype,"forceTooltip",void 0);se([f({type:Boolean})],j.prototype,"activated",void 0);se([F(".ft-button")],j.prototype,"button",void 0);se([F(".ft-button--label")],j.prototype,"labelContainer",void 0);se([I()],j.prototype,"hasTextContent",void 0);se([F(".ft-button--label slot")],j.prototype,"slottedContent",void 0);se([F("[part=tooltip]")],j.prototype,"tooltip",void 0);var of={"ft-button":j};Z(of);var be={textColor:i.extend("--ft-switch-text-color","",C.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",C.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",C.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",C.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",C.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",C.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",ze.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",C.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",C.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",C.colorPrimary)};var Ae={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",C.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",C.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},nf=A`
947
905
  .ft-switch-option {
948
906
  position: relative;
949
907
  display: inline-block;
@@ -985,7 +943,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
985
943
  inset: 0;
986
944
  content: "";
987
945
  z-index: 1;
988
- opacity: ${S.opacityPrimaryOnSurfaceSelected};
946
+ opacity: ${C.opacityPrimaryOnSurfaceSelected};
989
947
  }
990
948
 
991
949
  .ft-switch-option--label {
@@ -995,8 +953,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
995
953
  text-overflow: ellipsis;
996
954
  display: block;
997
955
  margin: 0 8px;
998
- ${R(je.fontSize,be.fontSize)};
999
- ${R(je.lineHeight,"var(--switch-option-internal-content-height)")}
956
+ ${R(ze.fontSize,be.fontSize)};
957
+ ${R(ze.lineHeight,"var(--switch-option-internal-content-height)")}
1000
958
  }
1001
959
 
1002
960
  .ft-switch-option--selected .ft-switch-option--label {
@@ -1031,14 +989,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1031
989
  .ft-switch-option--selected ft-icon {
1032
990
  color: ${be.selectedTextColor};
1033
991
  }
1034
- `;var Lt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ql=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Yl=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},Se=class extends ${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 Yl(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(v`
1035
- <label part="label" for="input" class="${ne(e)}"
992
+ `;var Rt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gl=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Kl=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},Se=class extends ${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 Kl(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
+ <label part="label" for="input" class="${ie(e)}"
1036
994
  @click=${this.onChange}>
1037
995
  <div class="ft-switch-option--content">
1038
996
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
1039
997
  <ft-typography part="text"
1040
998
  variant="button"
1041
- class="ft-switch-option--label ${Kr?"ft-safari-ellipsis-fix":""}"
999
+ class="ft-switch-option--label ${Hr?"ft-safari-ellipsis-fix":""}"
1042
1000
  ?hidden=${!this.hasTextContent()}>
1043
1001
  <slot @slotchange=${this.onSlotchange}></slot>
1044
1002
  </ft-typography>
@@ -1047,22 +1005,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1047
1005
  </label>
1048
1006
  <input id="input" type="radio" class="ft-switch-option--input"
1049
1007
  .checked=${this.selected}>
1050
- `)}addTooltip(e){return this.getLabel().trim().length===0?e:v`
1008
+ `)}addTooltip(e){return this.getLabel().trim().length===0?e:x`
1051
1009
  <ft-tooltip part="tooltip"
1052
1010
  text="${this.getLabel()}"
1053
1011
  position="${this.tooltipPosition}">
1054
1012
  ${e}
1055
1013
  </ft-tooltip>
1056
- `}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 ql(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?v`
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 Gl(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1057
1015
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1058
- `:L}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};Se.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-tooltip":se,"ft-icon":te};Se.styles=[bi,sf];Lt([f()],Se.prototype,"value",void 0);Lt([f()],Se.prototype,"icon",void 0);Lt([f()],Se.prototype,"iconVariant",void 0);Lt([f()],Se.prototype,"label",void 0);Lt([f()],Se.prototype,"tooltipPosition",void 0);Lt([f({type:Boolean,reflect:!0})],Se.prototype,"selected",void 0);Lt([f({type:Boolean})],Se.prototype,"trailingIcon",void 0);Lt([f({type:Boolean})],Se.prototype,"unselectable",void 0);Lt([F(".ft-switch-option--content slot")],Se.prototype,"slottedContent",void 0);Lt([F(".ft-switch-option--input")],Se.prototype,"input",void 0);Lt([I()],Se.prototype,"isFocused",void 0);var ro=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ge=class extends ${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 v`
1059
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${ne(e)}" role="radiogroup" aria-label="${this.label}">
1016
+ `:L}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};Se.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-tooltip":ge,"ft-icon":oe};Se.styles=[fi,nf];Rt([f()],Se.prototype,"value",void 0);Rt([f()],Se.prototype,"icon",void 0);Rt([f()],Se.prototype,"iconVariant",void 0);Rt([f()],Se.prototype,"label",void 0);Rt([f()],Se.prototype,"tooltipPosition",void 0);Rt([f({type:Boolean,reflect:!0})],Se.prototype,"selected",void 0);Rt([f({type:Boolean})],Se.prototype,"trailingIcon",void 0);Rt([f({type:Boolean})],Se.prototype,"unselectable",void 0);Rt([F(".ft-switch-option--content slot")],Se.prototype,"slottedContent",void 0);Rt([F(".ft-switch-option--input")],Se.prototype,"input",void 0);Rt([I()],Se.prototype,"isFocused",void 0);var Jr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Zl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},We=class extends ${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
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${ie(e)}" role="radiogroup" aria-label="${this.label}">
1060
1018
  <slot @slotchange=${this.onSlotchange}
1061
1019
  @option-change=${this.onOptionChangeByScript}
1062
1020
  @option-change-by-user=${this.onOptionChangeByUser}
1063
1021
  ></slot>
1064
1022
  </div>
1065
- `}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 Se&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Xl((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)})}};Ge.elementDefinitions={};Ge.styles=A`
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 Se&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Zl((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};We.elementDefinitions={};We.styles=A`
1066
1024
  :host {
1067
1025
  display: inline-block;
1068
1026
  }
@@ -1096,7 +1054,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1096
1054
  --switch-internal-vertical-padding: 2px;
1097
1055
  --switch-internal-horizontal-padding: 4px;
1098
1056
  }
1099
- `;ro([f({type:Boolean})],Ge.prototype,"dense",void 0);ro([f({type:Boolean})],Ge.prototype,"unselectable",void 0);ro([f()],Ge.prototype,"label",void 0);ro([F(".ft-switch slot")],Ge.prototype,"slottedContent",void 0);ro([I()],Ge.prototype,"selectedOption",void 0);ro([I()],Ge.prototype,"displayFocusWhenUsingKeyboard",void 0);ro([F(".ft-switch")],Ge.prototype,"ftSwitchDiv",void 0);var lf={"ft-switch":Ge,"ft-switch-option":Se};Z(lf);function aa(t){return A`
1057
+ `;Jr([f({type:Boolean})],We.prototype,"dense",void 0);Jr([f({type:Boolean})],We.prototype,"unselectable",void 0);Jr([f()],We.prototype,"label",void 0);Jr([F(".ft-switch slot")],We.prototype,"slottedContent",void 0);Jr([I()],We.prototype,"selectedOption",void 0);Jr([I()],We.prototype,"displayFocusWhenUsingKeyboard",void 0);Jr([F(".ft-switch")],We.prototype,"ftSwitchDiv",void 0);var af={"ft-switch":We,"ft-switch-option":Se};Z(af);function ea(t){return A`
1100
1058
  [part="container"] {
1101
1059
  box-sizing: border-box;
1102
1060
  display: flex;
@@ -1109,7 +1067,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1109
1067
  flex-direction: row;
1110
1068
  align-items: center;
1111
1069
  margin-left: -6px;
1112
- ${R(re.backgroundColor,t.starsBackgroundColor)}
1070
+ ${R(te.backgroundColor,t.starsBackgroundColor)}
1113
1071
  }
1114
1072
 
1115
1073
  [part="rating-container"],
@@ -1123,14 +1081,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1123
1081
  }
1124
1082
 
1125
1083
  [part="rating-container"] {
1126
- ${R(re.color,t.emptyRatingColor)};
1127
- ${R(re.rippleColor,t.filledRatingColor)};
1084
+ ${R(te.color,t.emptyRatingColor)};
1085
+ ${R(te.rippleColor,t.filledRatingColor)};
1128
1086
  ${R(be.textColor,t.emptyRatingColor)};
1129
1087
  ${R(be.selectedTextColor,t.filledRatingColor)};
1130
1088
  }
1131
1089
 
1132
1090
  [part="rating-container"] .rating-stars--active {
1133
- ${R(re.color,t.filledRatingColor)};
1091
+ ${R(te.color,t.filledRatingColor)};
1134
1092
  }
1135
1093
 
1136
1094
  [part="feedback-container"] {
@@ -1148,14 +1106,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1148
1106
 
1149
1107
  [part="send-feedback"],
1150
1108
  [part="send-feedback-link"] {
1151
- ${R(re.color,t.sendFeedbackColor)};
1152
- ${R(re.backgroundColor,t.sendFeedbackBackgroundColor)};
1109
+ ${R(te.color,t.sendFeedbackColor)};
1110
+ ${R(te.backgroundColor,t.sendFeedbackBackgroundColor)};
1153
1111
  }
1154
1112
 
1155
1113
  [part="buttons-container"] {
1156
1114
  align-self: flex-end;
1157
1115
  }
1158
- `}var sa={feedbackInputMinWidth:i.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:i.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:i.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:i.external(gr.fontSize,"Typography"),sectionTitleFontSize:i.external(yr.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var B={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},cf=A`
1116
+ `}var ta={feedbackInputMinWidth:i.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(C.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-viewer-feedback-send-feedback-color","",C.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-viewer-feedback-send-feedback-background-color","",C.colorPrimary),filledRatingColor:i.extend("--ft-viewer-feedback-filled-rating-color","",C.colorPrimary),emptyRatingColor:i.extend("--ft-viewer-feedback-empty-rating-color","",C.colorOnSurfaceMedium),mainTitleFontSize:i.external(pr.fontSize,"Typography"),sectionTitleFontSize:i.external(fr.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-viewer-feedback-stars-background-color","","COLOR",C.colorSurface)};var B={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",C.colorOutline),textColor:i.extend("--ft-input-label-text-color","",C.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",C.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",C.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",C.borderRadiusS),colorError:i.external(C.colorError,"Design system")},sf=A`
1159
1117
  .ft-input-label {
1160
1118
  position: absolute;
1161
1119
  inset: 0;
@@ -1206,8 +1164,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1206
1164
  transition: font-size 250ms, line-height 250ms, color 250ms;
1207
1165
  max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1208
1166
  text-overflow: ellipsis;
1209
- ${R(at.fontSize,B.fontSize)};
1210
- ${R(at.lineHeight,B.fontSize)};
1167
+ ${R(rt.fontSize,B.fontSize)};
1168
+ ${R(rt.lineHeight,B.fontSize)};
1211
1169
  }
1212
1170
 
1213
1171
  .ft-input-label--in-error .ft-input-label--text {
@@ -1227,7 +1185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1227
1185
 
1228
1186
  .ft-input-label--floating-text {
1229
1187
  position: absolute;
1230
- top: calc(50% - ${at.lineHeight} / 2);
1188
+ top: calc(50% - ${rt.lineHeight} / 2);
1231
1189
  transition: top 250ms;
1232
1190
  overflow: hidden;
1233
1191
  white-space: nowrap;
@@ -1239,8 +1197,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1239
1197
  }
1240
1198
 
1241
1199
  .ft-input-label--raised .ft-input-label--text {
1242
- ${R(at.fontSize,B.raisedFontSize)};
1243
- ${R(at.lineHeight,B.raisedFontSize)};
1200
+ ${R(rt.fontSize,B.raisedFontSize)};
1201
+ ${R(rt.lineHeight,B.raisedFontSize)};
1244
1202
  }
1245
1203
 
1246
1204
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1271,13 +1229,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1271
1229
  z-index: ${B.raisedZIndex};
1272
1230
  background-color: ${B.backgroundColor};
1273
1231
  border-radius: ${B.borderRadius};
1274
- top: calc((${at.lineHeight} / -2) + 2px);
1232
+ top: calc((${rt.lineHeight} / -2) + 2px);
1275
1233
  }
1276
1234
 
1277
1235
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1278
1236
  border-top: none;
1279
1237
  }
1280
- `;var ie={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system")},df=A`
1238
+ `;var ne={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",C.colorOnSurfaceMedium),colorPrimary:i.external(C.colorPrimary,"Design system"),colorOnSurface:i.external(C.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(C.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(C.borderRadiusS,"Design system"),colorError:i.external(C.colorError,"Design system")},lf=A`
1281
1239
  *:focus {
1282
1240
  outline: none;
1283
1241
  }
@@ -1289,10 +1247,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1289
1247
  }
1290
1248
 
1291
1249
  ft-input-label {
1292
- ${R(B.fontSize,ie.fontSize)};
1293
- ${R(B.raisedFontSize,ie.labelSize)};
1294
- ${R(B.verticalSpacing,ie.verticalSpacing)};
1295
- ${R(B.horizontalSpacing,ie.horizontalSpacing)};
1250
+ ${R(B.fontSize,ne.fontSize)};
1251
+ ${R(B.raisedFontSize,ne.labelSize)};
1252
+ ${R(B.verticalSpacing,ne.verticalSpacing)};
1253
+ ${R(B.horizontalSpacing,ne.horizontalSpacing)};
1296
1254
  }
1297
1255
 
1298
1256
  .ft-text-area--main-panel {
@@ -1323,12 +1281,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1323
1281
  align-self: stretch;
1324
1282
  resize: none;
1325
1283
 
1326
- ${R(mt.fontSize,ie.fontSize)};
1327
- ${R(mt.lineHeight,ie.fontSize)};
1328
- color: ${ie.colorOnSurface};
1284
+ ${R(dt.fontSize,ne.fontSize)};
1285
+ ${R(dt.lineHeight,ne.fontSize)};
1286
+ color: ${ne.colorOnSurface};
1329
1287
 
1330
- padding: 0 ${ie.horizontalSpacing};
1331
- margin: calc(${ie.verticalSpacing} + ${ie.labelSize} / 2) 0 ${ie.verticalSpacing} 0;
1288
+ padding: 0 ${ne.horizontalSpacing};
1289
+ margin: calc(${ne.verticalSpacing} + ${ne.labelSize} / 2) 0 ${ne.verticalSpacing} 0;
1332
1290
 
1333
1291
  border: none;
1334
1292
  background: none;
@@ -1337,7 +1295,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1337
1295
  }
1338
1296
 
1339
1297
  .ft-text-area--disabled .ft-text-area--input {
1340
- color: ${ie.colorOnSurfaceDisabled};
1298
+ color: ${ne.colorOnSurfaceDisabled};
1341
1299
  }
1342
1300
 
1343
1301
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1345,39 +1303,39 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1345
1303
  }
1346
1304
 
1347
1305
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1348
- ${R(B.borderColor,ie.colorPrimary)};
1349
- ${R(B.textColor,ie.colorPrimary)};
1306
+ ${R(B.borderColor,ne.colorPrimary)};
1307
+ ${R(B.textColor,ne.colorPrimary)};
1350
1308
  }
1351
1309
 
1352
1310
  .ft-text-area--filled .ft-text-area--input-panel {
1353
- border-radius: ${ie.borderRadiusS} ${ie.borderRadiusS} 0 0;
1311
+ border-radius: ${ne.borderRadiusS} ${ne.borderRadiusS} 0 0;
1354
1312
  }
1355
1313
 
1356
1314
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1357
1315
  align-self: stretch;
1358
- margin-bottom: ${ie.verticalSpacing};
1359
- margin-top: calc(${ie.labelSize} + 2 * ${ie.verticalSpacing});
1316
+ margin-bottom: ${ne.verticalSpacing};
1317
+ margin-top: calc(${ne.labelSize} + 2 * ${ne.verticalSpacing});
1360
1318
  }
1361
1319
 
1362
1320
  .ft-text-area--outlined .ft-text-area--input-panel {
1363
- border-radius: ${ie.borderRadiusS};
1321
+ border-radius: ${ne.borderRadiusS};
1364
1322
  }
1365
1323
 
1366
1324
  .ft-text-area--helper-text {
1367
- padding: 0 12px 0 ${ie.horizontalSpacing};
1368
- color: ${ie.helperColor};
1325
+ padding: 0 12px 0 ${ne.horizontalSpacing};
1326
+ color: ${ne.helperColor};
1369
1327
  }
1370
1328
 
1371
1329
  .ft-text-area--in-error .ft-text-area--input,
1372
1330
  .ft-text-area--in-error .ft-text-area--helper-text {
1373
- color: ${ie.colorError};
1331
+ color: ${ne.colorError};
1374
1332
  }
1375
1333
 
1376
1334
  ft-resizer {
1377
1335
  position: absolute;
1378
1336
  bottom: 0;
1379
1337
  }
1380
- `;var uf={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system")},pf=A`
1338
+ `;var cf={colorOutline:i.external(C.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(C.colorOnSurfaceMedium,"Design system")},df=A`
1381
1339
  :host {
1382
1340
  display: block;
1383
1341
  }
@@ -1388,18 +1346,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1388
1346
 
1389
1347
  ft-icon {
1390
1348
  transform: rotate(-45deg);
1391
- color: ${uf.colorOutline};
1349
+ color: ${cf.colorOutline};
1392
1350
  }
1393
1351
 
1394
1352
  .ft-resizer--dragging ft-icon,
1395
1353
  .ft-resizer:hover ft-icon,
1396
1354
  [role="button"][aria-pressed="true"] ft-icon{
1397
- color: ${uf.colorOnSurfaceMedium};
1355
+ color: ${cf.colorOnSurfaceMedium};
1398
1356
  }
1399
- `;var Ht=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},la=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends ${constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ue.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 v`
1357
+ `;var Bt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ra=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends ${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`
1400
1358
  <style>
1401
1359
  .ft-resizer {
1402
- cursor: ${zt(this.cursor)}
1360
+ cursor: ${Vt(this.cursor)}
1403
1361
  }
1404
1362
  </style>
1405
1363
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -1411,26 +1369,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1411
1369
  @keydown=${this.initKeydownPress}>
1412
1370
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
1413
1371
  </div>
1414
- `}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 la(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new la(o,n))}};Te.elementDefinitions={"ft-icon":te};Te.styles=[qt,pf];Ht([f({type:Number})],Te.prototype,"initialWidth",void 0);Ht([f({type:Number})],Te.prototype,"initialHeight",void 0);Ht([f()],Te.prototype,"icon",void 0);Ht([f()],Te.prototype,"iconVariant",void 0);Ht([f()],Te.prototype,"cursor",void 0);Ht([f()],Te.prototype,"ariaLabel",void 0);Ht([I()],Te.prototype,"dragging",void 0);Ht([I()],Te.prototype,"isAriaPressed",void 0);Ht([Yi({passive:!0})],Te.prototype,"initDragFromMouse",null);Ht([Yi({passive:!0})],Te.prototype,"initDragFromTouch",null);var ff={"ft-resizer":Te};Z(ff);var hf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oo=class extends ${constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return v`
1415
- <div class="${ne(this.inputLabelClasses)}">
1416
- ${bn(this.text,()=>v`
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 ra(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ra(o,n))}};Te.elementDefinitions={"ft-icon":oe};Te.styles=[Kt,df];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([I()],Te.prototype,"dragging",void 0);Bt([I()],Te.prototype,"isAriaPressed",void 0);Bt([Wi({passive:!0})],Te.prototype,"initDragFromMouse",null);Bt([Wi({passive:!0})],Te.prototype,"initDragFromTouch",null);var uf={"ft-resizer":Te};Z(uf);var pf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qr=class extends ${constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1373
+ <div class="${ie(this.inputLabelClasses)}">
1374
+ ${hn(this.text,()=>x`
1417
1375
  <div class="ft-input-label--text ft-typography--caption">
1418
1376
  <label class="ft-input-label--floating-text">${this.text}</label>
1419
1377
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1420
1378
  </div>
1421
1379
  `)}
1422
1380
  </div>
1423
- `}};oo.elementDefinitions={};hf([f({type:String})],oo.prototype,"text",void 0);hf([f({type:Boolean})],oo.prototype,"raised",void 0);var Jl=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lt=class extends oo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};lt.elementDefinitions={};lt.styles=[Nn,cf];Jl([f({type:Boolean})],lt.prototype,"outlined",void 0);Jl([f({type:Boolean})],lt.prototype,"error",void 0);Jl([f({type:Boolean})],lt.prototype,"disabled",void 0);var mf={"ft-input-label":lt};Z(mf);var yt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends zr($){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 v`
1381
+ `}};Qr.elementDefinitions={};pf([f({type:String})],Qr.prototype,"text",void 0);pf([f({type:Boolean})],Qr.prototype,"raised",void 0);var ql=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},it=class extends Qr{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=[Ln,sf];ql([f({type:Boolean})],it.prototype,"outlined",void 0);ql([f({type:Boolean})],it.prototype,"error",void 0);ql([f({type:Boolean})],it.prototype,"disabled",void 0);var ff={"ft-input-label":it};Z(ff);var ht=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends Fr($){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`
1424
1382
  <style>
1425
1383
  .ft-text-area--main-panel {
1426
- height: calc(4 * ${ie.verticalSpacing} + ${ie.labelSize} + ${ie.fontSize} + ${this.height}px);
1384
+ height: calc(4 * ${ne.verticalSpacing} + ${ne.labelSize} + ${ne.fontSize} + ${this.height}px);
1427
1385
  }
1428
1386
 
1429
1387
  ft-resizer {
1430
1388
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1431
1389
  }
1432
1390
  </style>
1433
- <div class="${ne(e)}">
1391
+ <div class="${ie(e)}">
1434
1392
  <div class="ft-text-area--main-panel">
1435
1393
  <ft-input-label text="${this.label}"
1436
1394
  ?disabled=${this.disabled}
@@ -1440,7 +1398,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1440
1398
  aria-hidden="true"
1441
1399
  ></ft-input-label>
1442
1400
  <div class="ft-text-area--input-panel">
1443
- ${this.outlined?null:v`
1401
+ ${this.outlined?null:x`
1444
1402
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1445
1403
  `}
1446
1404
  <textarea
@@ -1460,12 +1418,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1460
1418
  cursor="ns-resize"
1461
1419
  ariaLabel="Resize text area"></ft-resizer>
1462
1420
  </div>
1463
- ${this.helper?v`
1464
- <ft-typography class="ft-text-area--helper-text" variant="${oe.caption}">
1421
+ ${this.helper?x`
1422
+ <ft-typography class="ft-text-area--helper-text" variant="${re.caption}">
1465
1423
  ${this.helper}
1466
1424
  </ft-typography>`:void 0}
1467
1425
  </div>
1468
- `}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)}};Ee.elementDefinitions={"ft-input-label":lt,"ft-resizer":Te,"ft-ripple":K,"ft-typography":X};Ee.styles=[br,df];yt([f({type:String})],Ee.prototype,"label",void 0);yt([f({reflect:!0})],Ee.prototype,"value",void 0);yt([f({type:String})],Ee.prototype,"helper",void 0);yt([f({type:Boolean})],Ee.prototype,"outlined",void 0);yt([f({type:Boolean})],Ee.prototype,"disabled",void 0);yt([f({type:Boolean})],Ee.prototype,"error",void 0);yt([xt({reflect:!0})],Ee.prototype,"height",void 0);yt([xt()],Ee.prototype,"maxHeight",void 0);yt([F("textarea")],Ee.prototype,"textarea",void 0);yt([I()],Ee.prototype,"focused",void 0);yt([jt()],Ee.prototype,"onKeyDown",null);yt([jt()],Ee.prototype,"liveUpdateValueFromInputField",null);var gf={"ft-text-area":Ee};Z(gf);var ce=Xe.build("integratedFeedbackComponent"),yf={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 ca=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},da=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ua=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:i.external(S.colorOutline,"Design system"),elevation02:i.external(S.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},bf=A`
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)}};Ee.elementDefinitions={"ft-input-label":it,"ft-resizer":Te,"ft-ripple":K,"ft-typography":J};Ee.styles=[hr,lf];ht([f({type:String})],Ee.prototype,"label",void 0);ht([f({reflect:!0})],Ee.prototype,"value",void 0);ht([f({type:String})],Ee.prototype,"helper",void 0);ht([f({type:Boolean})],Ee.prototype,"outlined",void 0);ht([f({type:Boolean})],Ee.prototype,"disabled",void 0);ht([f({type:Boolean})],Ee.prototype,"error",void 0);ht([yt({reflect:!0})],Ee.prototype,"height",void 0);ht([yt()],Ee.prototype,"maxHeight",void 0);ht([F("textarea")],Ee.prototype,"textarea",void 0);ht([I()],Ee.prototype,"focused",void 0);ht([zt()],Ee.prototype,"onKeyDown",null);ht([zt()],Ee.prototype,"liveUpdateValueFromInputField",null);var hf={"ft-text-area":Ee};Z(hf);var ce=pt.build("integratedFeedbackComponent"),mf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var oa=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},ia=class extends CustomEvent{constructor(e){super("change",{detail:e})}},na=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",C.colorOnSurfaceMedium),colorPrimary:i.external(C.colorPrimary,"Design system"),colorOnSurface:i.external(C.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(C.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(C.borderRadiusS,"Design system"),colorError:i.external(C.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",C.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",C.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-text-field-background-color","",C.colorSurface),colorOutline:i.external(C.colorOutline,"Design system"),elevation02:i.external(C.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},gf=A`
1469
1427
  *:focus {
1470
1428
  outline: none;
1471
1429
  }
@@ -1500,8 +1458,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1500
1458
  overflow: hidden;
1501
1459
  padding: 0 ${G.horizontalSpacing};
1502
1460
 
1503
- ${R(mt.fontSize,G.fontSize)};
1504
- ${R(mt.lineHeight,G.fontSize)};
1461
+ ${R(dt.fontSize,G.fontSize)};
1462
+ ${R(dt.lineHeight,G.fontSize)};
1505
1463
  }
1506
1464
 
1507
1465
  .ft-text-field--input-panel ft-ripple {
@@ -1624,7 +1582,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1624
1582
  .ft-text-field--with-password ft-icon:hover {
1625
1583
  cursor: pointer;
1626
1584
  }
1627
- `;var vf=A`
1585
+ `;var yf=A`
1628
1586
  .ft-text-field-suggestion {
1629
1587
  position: relative;
1630
1588
  padding: 8px 16px;
@@ -1660,13 +1618,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1660
1618
  slot {
1661
1619
  pointer-events: none;
1662
1620
  }
1663
- `;var pa=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ql=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},bt=class extends ${render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return v`
1664
- <div class="${ne(e)}"
1621
+ `;var aa=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Yl=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},mt=class extends ${render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1622
+ <div class="${ie(e)}"
1665
1623
  tabindex="-1"
1666
1624
  @keydown=${this.onKeyDown}
1667
1625
  @click=${this.confirmSuggestion}>
1668
1626
  <ft-ripple></ft-ripple>
1669
- ${this.helper?v`
1627
+ ${this.helper?x`
1670
1628
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1671
1629
  ${this.helper}
1672
1630
  </ft-typography>`:L}
@@ -1676,8 +1634,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1676
1634
  <slot></slot>
1677
1635
  </ft-typography>
1678
1636
  </div>
1679
- `}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 Ql(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())}};bt.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-icon":te};bt.styles=vf;pa([f()],bt.prototype,"value",void 0);pa([f()],bt.prototype,"helper",void 0);pa([F(".ft-text-field-suggestion")],bt.prototype,"container",void 0);pa([ei()],bt.prototype,"assignedNodes",void 0);var Q=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},V=class extends zr($){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Qe.EYE_SLASH,this.passwordRevealedIcon=Qe.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()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return v`
1680
- <div class="${ne(r)}">
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 Yl(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":J,"ft-icon":oe};mt.styles=yf;aa([f()],mt.prototype,"value",void 0);aa([f()],mt.prototype,"helper",void 0);aa([F(".ft-text-field-suggestion")],mt.prototype,"container",void 0);aa([qo()],mt.prototype,"assignedNodes",void 0);var Q=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},V=class extends Fr($){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Kr.EYE_SLASH,this.passwordRevealedIcon=Kr.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()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1638
+ <div class="${ie(r)}">
1681
1639
  <div class="ft-text-field--main-panel"
1682
1640
  @keydown=${this.handleKeyboardNavigation}
1683
1641
  @focusout=${this.onMainPanelBlur}>
@@ -1687,21 +1645,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1687
1645
  ?raised=${this.focused||this.value!=""}
1688
1646
  ?error=${!this.inputValid||this.error}></ft-input-label>
1689
1647
  <div class="ft-text-field--input-panel">
1690
- ${this.outlined?L:v`
1648
+ ${this.outlined?L:x`
1691
1649
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1692
1650
  `}
1693
- ${this.prefix?v`
1651
+ ${this.prefix?x`
1694
1652
  <ft-typography class="ft-text-field--prefix" variant="body1">
1695
1653
  ${this.prefix}
1696
1654
  </ft-typography>
1697
1655
  `:L}
1698
1656
  <input type="${this.resolveInputType()}"
1699
- name="${nr(this.name)}"
1700
- maxlength="${nr(this.maxLength||void 0)}"
1657
+ name="${At(this.name)}"
1658
+ maxlength="${At(this.maxLength||void 0)}"
1701
1659
  aria-label="${this.label}"
1702
- aria-describedby="${nr(this.helper?"helper":void 0)}"
1660
+ aria-describedby="${At(this.helper?"helper":void 0)}"
1703
1661
  aria-invalid="${this.error}"
1704
- autocomplete="${nr(this.autocomplete)}"
1662
+ autocomplete="${At(this.autocomplete)}"
1705
1663
  class="ft-typography--body1 ft-text-field--input"
1706
1664
  part="input"
1707
1665
  ?disabled=${this.disabled}
@@ -1716,63 +1674,63 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1716
1674
  <div class="ft-text-field--suggestions"
1717
1675
  @suggestion-selected=${this.onSuggestionSelected}>
1718
1676
  ${this.renderSuggestions()}
1719
- ${a?v`
1677
+ ${a?x`
1720
1678
  <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1721
1679
  ${this.value}
1722
1680
  </ft-text-field-suggestion>
1723
1681
  `:L}
1724
1682
  </div>
1725
1683
  </div>
1726
- ${s?v`
1727
- <ft-typography class="ft-text-field--helper-text" variant="${oe.caption}" id="helper" role="alert">
1684
+ ${s?x`
1685
+ <ft-typography class="ft-text-field--helper-text" variant="${re.caption}" id="helper" role="alert">
1728
1686
  ${s}
1729
1687
  </ft-typography>
1730
1688
  `:L}
1731
1689
  </div>
1732
- `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?v`
1733
- ${qe(this.providedSuggestions,e=>v`
1690
+ `}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
+ ${Ke(this.providedSuggestions,e=>x`
1734
1692
  <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1735
- ${e.icon?v`
1693
+ ${e.icon?x`
1736
1694
  <ft-icon .value=${e.icon}></ft-icon>
1737
1695
  `:L}
1738
1696
  ${e.label}
1739
1697
  </ft-text-field-suggestion>
1740
1698
  `)}
1741
- `:v`
1699
+ `:x`
1742
1700
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1743
- `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return v`
1701
+ `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return x`
1744
1702
  <ft-icon class="ft-text-field--icon"
1745
1703
  .variant=${this.iconVariant}
1746
1704
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1747
1705
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1748
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?v`
1706
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?x`
1749
1707
  <ft-icon class="ft-text-field--icon"
1750
1708
  .variant=${this.iconVariant}
1751
1709
  .value=${this.icon}
1752
1710
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1753
- `:L}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new ca(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new da(e))):this.dispatchEvent(new ua(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];gs(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};V.elementDefinitions={"ft-input-label":lt,"ft-ripple":K,"ft-typography":X,"ft-icon":te,"ft-text-field-suggestion":bt};V.styles=[br,_s,bf];Q([f()],V.prototype,"label",void 0);Q([f({noAccessor:!0})],V.prototype,"value",null);Q([I()],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([xt()],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([I()],V.prototype,"focused",void 0);Q([I()],V.prototype,"inputValid",void 0);Q([I()],V.prototype,"hidePassword",void 0);Q([I()],V.prototype,"hideSuggestions",void 0);Q([I()],V.prototype,"visibleSuggestions",void 0);Q([I()],V.prototype,"providedSuggestions",void 0);Q([F(".ft-text-field--main-panel")],V.prototype,"mainPanel",void 0);Q([F(".ft-text-field--input")],V.prototype,"input",void 0);Q([F(".ft-text-field-suggestion--new-value")],V.prototype,"newValueSuggestion",void 0);Q([F(".ft-text-field--suggestions")],V.prototype,"suggestionsContainer",void 0);Q([Na("ft-text-field-suggestion")],V.prototype,"providedSuggestionsInDom",void 0);Q([Qo({selector:"ft-text-field-suggestion"})],V.prototype,"slottedSuggestions",void 0);Q([jt()],V.prototype,"handleInput",null);Q([jt()],V.prototype,"catchComposingEvents",null);var xf={"ft-text-field":V,"ft-text-field-suggestion":bt};Z(xf);var fa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends Je(ve){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(ce,yf),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,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:_e.NO_RATING}get ratingValue(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,r;let o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?en(o):o}render(){return!this.canAccessFeedback&&!this.canRateThisContent?L:v`
1711
+ `:L}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new oa(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new ia(e))):this.dispatchEvent(new na(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];ds(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};V.elementDefinitions={"ft-input-label":it,"ft-ripple":K,"ft-typography":J,"ft-icon":oe,"ft-text-field-suggestion":mt};V.styles=[hr,Cs,gf];Q([f()],V.prototype,"label",void 0);Q([f({noAccessor:!0})],V.prototype,"value",null);Q([I()],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([yt()],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([I()],V.prototype,"focused",void 0);Q([I()],V.prototype,"inputValid",void 0);Q([I()],V.prototype,"hidePassword",void 0);Q([I()],V.prototype,"hideSuggestions",void 0);Q([I()],V.prototype,"visibleSuggestions",void 0);Q([I()],V.prototype,"providedSuggestions",void 0);Q([F(".ft-text-field--main-panel")],V.prototype,"mainPanel",void 0);Q([F(".ft-text-field--input")],V.prototype,"input",void 0);Q([F(".ft-text-field-suggestion--new-value")],V.prototype,"newValueSuggestion",void 0);Q([F(".ft-text-field--suggestions")],V.prototype,"suggestionsContainer",void 0);Q([_a("ft-text-field-suggestion")],V.prototype,"providedSuggestionsInDom",void 0);Q([Zo({selector:"ft-text-field-suggestion"})],V.prototype,"slottedSuggestions",void 0);Q([zt()],V.prototype,"handleInput",null);Q([zt()],V.prototype,"catchComposingEvents",null);var bf={"ft-text-field":V,"ft-text-field-suggestion":mt};Z(bf);var sa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends ft(ve){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(ce,mf),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,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:_e.NO_RATING}get ratingValue(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,r;let o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?Zi(o):o}render(){return!this.canAccessFeedback&&!this.canRateThisContent?L:x`
1754
1712
  <div part="container">
1755
- ${this.hideTitle?L:v`
1756
- <ft-typography variant="${oe.title}" part="main-title">
1713
+ ${this.hideTitle?L:x`
1714
+ <ft-typography variant="${re.title}" part="main-title">
1757
1715
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1758
1716
  </ft-typography>
1759
1717
  `}
1760
1718
  ${this.renderRatingSection()}
1761
1719
  ${this.renderFeedbackSection()}
1762
1720
  </div>
1763
- `}renderRatingSection(){var e;return this.canRateThisContent?v`
1721
+ `}renderRatingSection(){var e;return this.canRateThisContent?x`
1764
1722
  <div part="rating-container">
1765
- <ft-typography variant="${oe.title_dense}" part="section-title">
1723
+ <ft-typography variant="${re.title_dense}" part="section-title">
1766
1724
  ${this.i18n(((e=this.ratingSummary)===null||e===void 0?void 0:e.type)===_e.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1767
1725
  </ft-typography>
1768
1726
  ${this.renderRating()}
1769
- <ft-typography variant="${oe.caption}" part="rating-date">
1727
+ <ft-typography variant="${re.caption}" part="rating-date">
1770
1728
  ${this.renderRatingDate()}
1771
1729
  </ft-typography>
1772
1730
  </div>
1773
- `:L}renderRatingDate(){let e=this.ratingDate;if(e==null)return ce.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return ce.messages.ratedNow();let r=new Date().toLocaleDateString(),o=e.toLocaleDateString();return r===o?ce.messages.ratedToday():ce.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case _e.STARS:return v`
1731
+ `:L}renderRatingDate(){let e=this.ratingDate;if(e==null)return ce.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return ce.messages.ratedNow();let r=new Date().toLocaleDateString(),o=e.toLocaleDateString();return r===o?ce.messages.ratedToday():ce.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case _e.STARS:return x`
1774
1732
  <div part="rating rating-stars">
1775
- ${qe(new Array(5),(e,r)=>r,(e,r)=>{let o=this.ratingTypeOfDoneRatingOfThisContent===_e.STARS&&this.ratingValue>r,n=r+1;return v`
1733
+ ${Ke(new Array(5),(e,r)=>r,(e,r)=>{let o=this.ratingTypeOfDoneRatingOfThisContent===_e.STARS&&this.ratingValue>r,n=r+1;return x`
1776
1734
  <ft-button round part="rating-stars-${n}"
1777
1735
  label="${ce.messages.starsRating(n)}"
1778
1736
  tooltipPosition="top"
@@ -1783,7 +1741,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1783
1741
  ></ft-button>
1784
1742
  `})}
1785
1743
  </div>
1786
- `;case _e.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===1;return v`
1744
+ `;case _e.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===1;return x`
1787
1745
  <ft-switch unselectable
1788
1746
  @change=${o=>this.rate(o.detail)}
1789
1747
  part="rating rating-like"
@@ -1803,7 +1761,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1803
1761
  ${ce.messages.dislike()}
1804
1762
  </ft-switch-option>
1805
1763
  </ft-switch>
1806
- `}case _e.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===1;return v`
1764
+ `}case _e.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===1;return x`
1807
1765
  <ft-switch unselectable
1808
1766
  @change=${o=>this.rate(o.detail)}
1809
1767
  part="rating rating-dichotomous">
@@ -1816,31 +1774,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1816
1774
  ${ce.messages.dichotomousNo()}
1817
1775
  </ft-switch-option>
1818
1776
  </ft-switch>
1819
- `}}return L}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=v`
1777
+ `}}return L}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=x`
1820
1778
  <ft-button primary
1821
1779
  type="submit" name="submit"
1822
1780
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1823
1781
  part="send-feedback">
1824
1782
  ${ce.messages.okButton()}
1825
1783
  </ft-button>
1826
- `;s&&(l=v`
1784
+ `;s&&(l=x`
1827
1785
  <a part="send-feedback-link" href="${s}">
1828
1786
  ${l}
1829
1787
  </a>
1830
- `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?v`
1788
+ `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?x`
1831
1789
  <ft-button outlined
1832
1790
  type="button" name="more-options"
1833
1791
  @click=${this.onOpenMoreDetails}
1834
1792
  part="more-options">
1835
1793
  ${ce.messages.moreOptionsButton()}
1836
1794
  </ft-button>
1837
- `:L;return v`
1795
+ `:L;return x`
1838
1796
  <form part="feedback-container" autocomplete="on"
1839
1797
  @submit=${p=>this.onFormSubmitEvent(p,!!s)}>
1840
- <ft-typography variant="${oe.title_dense}" part="section-title">
1798
+ <ft-typography variant="${re.title_dense}" part="section-title">
1841
1799
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1842
1800
  </ft-typography>
1843
- ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?v`
1801
+ ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?x`
1844
1802
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1845
1803
  part="feedback-from-input"
1846
1804
  label="${ce.messages.feedbackfromEmail()}"
@@ -1859,7 +1817,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1859
1817
  ${l}
1860
1818
  </div>
1861
1819
  </form>
1862
- `}return L}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new fa({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)}};de.elementDefinitions={"ft-button":J,"ft-typography":X,"ft-switch":Ge,"ft-switch-option":Se,"ft-text-area":Ee,"ft-text-field":V};Re([f({type:Boolean})],de.prototype,"hideTitle",void 0);Re([f({type:Boolean})],de.prototype,"withMoreOptionsButton",void 0);Re([f()],de.prototype,"iconVariant",void 0);Re([f()],de.prototype,"emptyStarIcon",void 0);Re([f()],de.prototype,"filledStarIcon",void 0);Re([f()],de.prototype,"emptyLikeIcon",void 0);Re([f()],de.prototype,"filledLikeIcon",void 0);Re([f()],de.prototype,"emptyDislikeIcon",void 0);Re([f()],de.prototype,"filledDislikeIcon",void 0);Re([f({type:Boolean})],de.prototype,"canAccessFeedback",void 0);Re([f({type:Boolean})],de.prototype,"canRateThisContent",void 0);Re([f({attribute:!1})],de.prototype,"i18nProperties",void 0);Re([f({attribute:!1})],de.prototype,"ratingSummary",void 0);Re([f()],de.prototype,"configuration",void 0);Re([f()],de.prototype,"feedbackMailLinkBuilder",void 0);Re([H({store:N.name})],de.prototype,"session",void 0);Re([F("[part='feedback-input']")],de.prototype,"feedbackInput",void 0);Re([I()],de.prototype,"from",void 0);Re([I()],de.prototype,"feedbackMessage",void 0);var Ui=class extends de{};Ui.styles=aa(sa);var ec=Xe.build("inDesignerFeedbackComponent"),Sf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var ha=Xe.fromGwt("server");var ma=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,o,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,r;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1820
+ `}return L}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new 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)}};de.elementDefinitions={"ft-button":j,"ft-typography":J,"ft-switch":We,"ft-switch-option":Se,"ft-text-area":Ee,"ft-text-field":V};Re([f({type:Boolean})],de.prototype,"hideTitle",void 0);Re([f({type:Boolean})],de.prototype,"withMoreOptionsButton",void 0);Re([f()],de.prototype,"iconVariant",void 0);Re([f()],de.prototype,"emptyStarIcon",void 0);Re([f()],de.prototype,"filledStarIcon",void 0);Re([f()],de.prototype,"emptyLikeIcon",void 0);Re([f()],de.prototype,"filledLikeIcon",void 0);Re([f()],de.prototype,"emptyDislikeIcon",void 0);Re([f()],de.prototype,"filledDislikeIcon",void 0);Re([f({type:Boolean})],de.prototype,"canAccessFeedback",void 0);Re([f({type:Boolean})],de.prototype,"canRateThisContent",void 0);Re([f({attribute:!1})],de.prototype,"i18nProperties",void 0);Re([f({attribute:!1})],de.prototype,"ratingSummary",void 0);Re([f()],de.prototype,"configuration",void 0);Re([f()],de.prototype,"feedbackMailLinkBuilder",void 0);Re([q({store:N.name})],de.prototype,"session",void 0);Re([F("[part='feedback-input']")],de.prototype,"feedbackInput",void 0);Re([I()],de.prototype,"from",void 0);Re([I()],de.prototype,"feedbackMessage",void 0);var Pi=class extends de{};Pi.styles=ea(ta);var Xl=pt.build("inDesignerFeedbackComponent"),vf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var la=pt.fromGwt("server");var ca=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,o,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,r;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1863
1821
  ${this.bodyMetadata}
1864
1822
  ${this.url}
1865
1823
  _________________________________________________________________
@@ -1867,7 +1825,7 @@ _________________________________________________________________
1867
1825
  ${e??""}
1868
1826
 
1869
1827
  _________________________________________________________________
1870
- ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var Ve=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends Be(Je(Fe)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Sr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Sr.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 Ln){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Ue.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 ma,this.i18nProperties={feedbackMainTitle:ce.properties.viewerFeedbackMainTitle(),ratingSectionTitle:ce.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:ce.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:ce.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 Me(500),this.addStore(N)}render(){return v`
1828
+ ${la.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var Fe=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends Ye(ft(qe)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(gr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(gr.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 An){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 ca,this.i18nProperties={feedbackMainTitle:ce.properties.viewerFeedbackMainTitle(),ratingSectionTitle:ce.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:ce.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:ce.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 De(500),this.addStore(N)}render(){return x`
1871
1829
  <ft-viewer-feedback
1872
1830
  ?hideTitle=${this.hideTitle}
1873
1831
  iconVariant="${this.iconVariant}"
@@ -1888,7 +1846,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1888
1846
  @mailer-feedback=${this.onMailerFeedbackSent}
1889
1847
  @open-more-options=${this.openMoreOptions}
1890
1848
  ></ft-viewer-feedback>
1891
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ec,Sf),["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=(o=this.session)===null||o===void 0?void 0:o.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,o,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((o=this.service)===null||o===void 0?void 0:o.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Pt({type:"error",message:ce.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Pt({type:"info",message:ec.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 Pt({type:"info",message:ce.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Pt({type:"error",message:ce.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new na)}openMoreOptions(){var e,r;this.dispatchEvent(new ia({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}))}};ue.styles=aa(sa);ue.elementDefinitions={"ft-viewer-feedback":Ui};ue.storedRatingIfAuthenticated=(t,e)=>{var r,o;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(o=e.ratingSummary)!==null&&o!==void 0?o:t.documentRating};Ve([H({store:N.name})],ue.prototype,"session",void 0);Ve([H({store:"viewer"})],ue.prototype,"document",void 0);Ve([H({store:N.name})],ue.prototype,"editorMode",void 0);Ve([H({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Ve([H({store:"viewer",selector:ue.storedRatingIfAuthenticated})],ue.prototype,"ratingSummary",void 0);Ve([f({type:Boolean})],ue.prototype,"hideTitle",void 0);Ve([f()],ue.prototype,"iconVariant",void 0);Ve([f()],ue.prototype,"emptyStarIcon",void 0);Ve([f()],ue.prototype,"filledStarIcon",void 0);Ve([f()],ue.prototype,"emptyLikeIcon",void 0);Ve([f()],ue.prototype,"filledLikeIcon",void 0);Ve([f()],ue.prototype,"emptyDislikeIcon",void 0);Ve([f()],ue.prototype,"filledDislikeIcon",void 0);Ve([F("ft-viewer-feedback")],ue.prototype,"viewerFeedback",void 0);Ve([Bn(ha.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"]}))],ue.prototype,"mailSubject",void 0);Ve([H({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ue.prototype,"displayName",void 0);var ga=class extends Be(ve){};var Cf=A`
1849
+ `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Xl,vf),["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=(o=this.session)===null||o===void 0?void 0:o.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,o,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((o=this.service)===null||o===void 0?void 0:o.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Lt({type:"error",message:ce.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Lt({type:"info",message:Xl.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:ce.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Lt({type:"error",message:ce.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Qn)}openMoreOptions(){var e,r;this.dispatchEvent(new Jn({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}))}};ue.styles=ea(ta);ue.elementDefinitions={"ft-viewer-feedback":Pi};ue.storedRatingIfAuthenticated=(t,e)=>{var r,o;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(o=e.ratingSummary)!==null&&o!==void 0?o:t.documentRating};Fe([q({store:N.name})],ue.prototype,"session",void 0);Fe([q({store:"viewer"})],ue.prototype,"document",void 0);Fe([q({store:N.name})],ue.prototype,"editorMode",void 0);Fe([q({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Fe([q({store:"viewer",selector:ue.storedRatingIfAuthenticated})],ue.prototype,"ratingSummary",void 0);Fe([f({type:Boolean})],ue.prototype,"hideTitle",void 0);Fe([f()],ue.prototype,"iconVariant",void 0);Fe([f()],ue.prototype,"emptyStarIcon",void 0);Fe([f()],ue.prototype,"filledStarIcon",void 0);Fe([f()],ue.prototype,"emptyLikeIcon",void 0);Fe([f()],ue.prototype,"filledLikeIcon",void 0);Fe([f()],ue.prototype,"emptyDislikeIcon",void 0);Fe([f()],ue.prototype,"filledDislikeIcon",void 0);Fe([F("ft-viewer-feedback")],ue.prototype,"viewerFeedback",void 0);Fe([Zn(la.properties["mail.file_feedback.subject"](t=>{var e,r;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((r=t.document)===null||r===void 0?void 0:r.filename)||"Filename"]}))],ue.prototype,"mailSubject",void 0);Fe([q({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ue.prototype,"displayName",void 0);var da=class extends Ye(ve){};var xf=A`
1892
1850
  :host {
1893
1851
  display: inline-block;
1894
1852
  }
@@ -1908,7 +1866,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1908
1866
  all: unset;
1909
1867
  position: relative;
1910
1868
  }
1911
- `;var wf=i.extend("--ft-chip-color","",S.colorOnSurface),tt={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:wf,fontSize:i.extend("--ft-chip-font-size","",gt.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",gt.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",wf),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Ef=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),tc={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Ef,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Ef)},Of={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Af=[qt,A`
1869
+ `;var Sf=i.extend("--ft-chip-color","",C.colorOnSurface),Je={backgroundColor:i.extend("--ft-chip-background-color","",C.colorSurface),color:Sf,fontSize:i.extend("--ft-chip-font-size","",ut.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",ut.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Sf),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",C.colorOutline),opacityDisabled:i.external(C.colorOpacityDisabled,"Design system")},Cf=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",C.colorOnPrimary)),Jl={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",C.colorPrimary)),color:Cf,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Cf)},wf={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ef=[Kt,A`
1912
1870
  :host {
1913
1871
  display: inline-block;
1914
1872
  max-width: 100%;
@@ -1924,21 +1882,21 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1924
1882
  box-sizing: border-box;
1925
1883
  pointer-events: auto;
1926
1884
 
1927
- --chip-internal-font-size: ${tt.fontSize};
1928
- --chip-internal-font-weight: ${tt.fontWeight};
1885
+ --chip-internal-font-size: ${Je.fontSize};
1886
+ --chip-internal-font-weight: ${Je.fontWeight};
1929
1887
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1930
- ${R(we.size,tt.iconSize)};
1931
- --chip-internal-vertical-padding: ${tt.verticalPadding};
1932
- --chip-internal-horizontal-padding: ${tt.horizontalPadding};
1888
+ ${R(we.size,Je.iconSize)};
1889
+ --chip-internal-vertical-padding: ${Je.verticalPadding};
1890
+ --chip-internal-horizontal-padding: ${Je.horizontalPadding};
1933
1891
  --chip-internal-icon-padding: 3px;
1934
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${tt.iconSize});
1892
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Je.iconSize});
1935
1893
 
1936
- border: 1px solid ${tt.borderColor};
1937
- color: ${tt.color};
1938
- ${R(ae.color,tt.rippleColor)};
1939
- border-radius: var(${zt(tt.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1894
+ border: 1px solid ${Je.borderColor};
1895
+ color: ${Je.color};
1896
+ ${R(ae.color,Je.rippleColor)};
1897
+ border-radius: var(${Vt(Je.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1940
1898
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1941
- background-color: ${tt.backgroundColor};
1899
+ background-color: ${Je.backgroundColor};
1942
1900
  line-height: var(--chip-internal-content-height);
1943
1901
  }
1944
1902
 
@@ -1948,28 +1906,28 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1948
1906
 
1949
1907
  .ft-chip--dense {
1950
1908
  --chip-internal-icon-padding: 3px;
1951
- --chip-internal-vertical-padding: ${Of.verticalPadding};
1952
- --chip-internal-horizontal-padding: ${Of.horizontalPadding};
1909
+ --chip-internal-vertical-padding: ${wf.verticalPadding};
1910
+ --chip-internal-horizontal-padding: ${wf.horizontalPadding};
1953
1911
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1954
1912
  }
1955
1913
 
1956
1914
  .ft-chip--no-content {
1957
- --chip-internal-horizontal-padding: ${tt.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
1915
+ --chip-internal-horizontal-padding: ${Je.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
1958
1916
  }
1959
1917
 
1960
1918
  .ft-chip--disabled {
1961
1919
  cursor: default;
1962
1920
  pointer-events: none;
1963
1921
  filter: grayscale(1);
1964
- opacity: ${tt.opacityDisabled};
1922
+ opacity: ${Je.opacityDisabled};
1965
1923
  }
1966
1924
 
1967
1925
  .ft-chip--highlighted {
1968
1926
  border: none;
1969
1927
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1970
- background-color: ${tc.backgroundColor};
1971
- ${R(ae.color,tc.rippleColor)};
1972
- color: ${tc.color};
1928
+ background-color: ${Jl.backgroundColor};
1929
+ ${R(ae.color,Jl.rippleColor)};
1930
+ color: ${Jl.color};
1973
1931
  }
1974
1932
 
1975
1933
  .ft-chip--clickable {
@@ -1978,7 +1936,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1978
1936
  }
1979
1937
 
1980
1938
  .ft-chip:focus {
1981
- outline: 2px solid ${S.colorPrimary};
1939
+ outline: 2px solid ${C.colorPrimary};
1982
1940
  outline-offset: 2px;
1983
1941
  }
1984
1942
 
@@ -2000,9 +1958,9 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2000
1958
  }
2001
1959
 
2002
1960
  .ft-chip--icon-button {
2003
- ${R(re.iconSize,tt.iconSize)};
2004
- ${R(re.horizontalPadding,"var(--chip-internal-icon-padding)")};
2005
- ${R(re.verticalPadding,"var(--chip-internal-icon-padding)")};
1961
+ ${R(te.iconSize,Je.iconSize)};
1962
+ ${R(te.horizontalPadding,"var(--chip-internal-icon-padding)")};
1963
+ ${R(te.verticalPadding,"var(--chip-internal-icon-padding)")};
2006
1964
  margin: calc((-1) * var(--chip-internal-icon-padding));
2007
1965
  }
2008
1966
 
@@ -2010,9 +1968,9 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2010
1968
  vertical-align: bottom;
2011
1969
  display: block;
2012
1970
  margin: 0 var(--chip-internal-horizontal-padding);
2013
- ${R(gt.fontSize,"var(--chip-internal-font-size)")};
2014
- ${R(gt.fontWeight,"var(--chip-internal-font-weight)")};
2015
- ${R(gt.lineHeight,"var(--chip-internal-content-height)")};
1971
+ ${R(ut.fontSize,"var(--chip-internal-font-size)")};
1972
+ ${R(ut.fontWeight,"var(--chip-internal-font-weight)")};
1973
+ ${R(ut.lineHeight,"var(--chip-internal-content-height)")};
2016
1974
  }
2017
1975
 
2018
1976
  .ft-chip--safari-fix .ft-chip--label {
@@ -2048,8 +2006,8 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2048
2006
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2049
2007
  order: -1;
2050
2008
  }
2051
- `];var Ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ya=class extends CustomEvent{constructor(){super("icon-click")}},ye=class extends ${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":Kr};return v`
2052
- <div class="${ne(r)}"
2009
+ `];var je=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ua=class extends CustomEvent{constructor(){super("icon-click")}},ye=class extends ${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":Hr};return x`
2010
+ <div class="${ie(r)}"
2053
2011
  aria-label="${this.getLabel()}"
2054
2012
  tabindex="${this.interactionsOnChip?0:-1}"
2055
2013
  @keyup=${this.onKeyUp}
@@ -2060,7 +2018,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2060
2018
  </ft-typography>
2061
2019
  ${this.internalIcon?this.renderIcon():null}
2062
2020
  </div>
2063
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?v`
2021
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?x`
2064
2022
  <ft-button round
2065
2023
  class="ft-chip--icon-button"
2066
2024
  @click=${this.onIconClick}
@@ -2071,11 +2029,11 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2071
2029
  part="icon-button"
2072
2030
  ?hideTooltip=${this.hideIconTooltip}
2073
2031
  ></ft-button>
2074
- `:v`
2032
+ `:x`
2075
2033
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2076
2034
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
2077
2035
  </div>
2078
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ya))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ya))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return co(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ye.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-icon":te,"ft-button":J};ye.styles=Af;Ke([f({type:Boolean})],ye.prototype,"highlighted",void 0);Ke([f({type:Boolean})],ye.prototype,"removable",void 0);Ke([f({type:Boolean})],ye.prototype,"disabled",void 0);Ke([f({type:Boolean})],ye.prototype,"clickable",void 0);Ke([f({type:Boolean})],ye.prototype,"iconClickable",void 0);Ke([f({type:Boolean})],ye.prototype,"dense",void 0);Ke([f({type:Boolean})],ye.prototype,"multiLine",void 0);Ke([f()],ye.prototype,"label",void 0);Ke([f()],ye.prototype,"iconLabel",void 0);Ke([f({type:Boolean})],ye.prototype,"hideIconTooltip",void 0);Ke([f()],ye.prototype,"icon",void 0);Ke([f()],ye.prototype,"iconVariant",void 0);Ke([f({type:Boolean})],ye.prototype,"trailingIcon",void 0);Ke([f()],ye.prototype,"typographyVariant",void 0);Ke([F("ft-typography slot")],ye.prototype,"slottedContent",void 0);var Rf={"ft-chip":ye};Z(Rf);var Dg={iconColor:i.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},_f=A`
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 ua))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ua))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return qi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ye.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-icon":oe,"ft-button":j};ye.styles=Ef;je([f({type:Boolean})],ye.prototype,"highlighted",void 0);je([f({type:Boolean})],ye.prototype,"removable",void 0);je([f({type:Boolean})],ye.prototype,"disabled",void 0);je([f({type:Boolean})],ye.prototype,"clickable",void 0);je([f({type:Boolean})],ye.prototype,"iconClickable",void 0);je([f({type:Boolean})],ye.prototype,"dense",void 0);je([f({type:Boolean})],ye.prototype,"multiLine",void 0);je([f()],ye.prototype,"label",void 0);je([f()],ye.prototype,"iconLabel",void 0);je([f({type:Boolean})],ye.prototype,"hideIconTooltip",void 0);je([f()],ye.prototype,"icon",void 0);je([f()],ye.prototype,"iconVariant",void 0);je([f({type:Boolean})],ye.prototype,"trailingIcon",void 0);je([f()],ye.prototype,"typographyVariant",void 0);je([F("ft-typography slot")],ye.prototype,"slottedContent",void 0);var Of={"ft-chip":ye};Z(Of);var Mg={iconColor:i.extend("--ft-floating-menu-icon-color","",C.colorOnSurfaceMedium)},Af=A`
2079
2037
  .ft-floating-menu-item {
2080
2038
  cursor: pointer;
2081
2039
  display: flex;
@@ -2095,7 +2053,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2095
2053
  }
2096
2054
 
2097
2055
  .ft-floating-menu-item ft-icon {
2098
- color: ${Dg.iconColor};
2056
+ color: ${Mg.iconColor};
2099
2057
  margin-left: 0;
2100
2058
  flex-shrink: 0;
2101
2059
  flex-grow: 0;
@@ -2110,8 +2068,8 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2110
2068
  word-break: break-word;
2111
2069
  hyphens: auto;
2112
2070
  }
2113
- `;var zo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ba=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},He=class extends ${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 v`
2114
- <div class="${ne(this.floatingClasses)}"
2071
+ `;var Fo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pa=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Ue=class extends ${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
+ <div class="${ie(this.floatingClasses)}"
2115
2073
  tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
2116
2074
  aria-disabled="${this.disabled}"
2117
2075
  @keydown=${e=>this.onKeyDown(e)}
@@ -2119,16 +2077,16 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2119
2077
  <ft-ripple
2120
2078
  ?disabled=${this.disabled}
2121
2079
  ></ft-ripple>
2122
- ${this.icon?v`
2080
+ ${this.icon?x`
2123
2081
  <ft-icon .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
2124
2082
  `:L}
2125
- <ft-typography variant="${oe.body2}">
2083
+ <ft-typography variant="${re.body2}">
2126
2084
  <slot></slot>
2127
2085
  </ft-typography>
2128
2086
  </div>
2129
- `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new ba(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new ba(this.value)))}};He.elementDefinitions={"ft-icon":te,"ft-ripple":K,"ft-typography":X};He.styles=_f;zo([f()],He.prototype,"iconVariant",void 0);zo([f()],He.prototype,"icon",void 0);zo([f()],He.prototype,"value",void 0);zo([f({type:Boolean})],He.prototype,"notFocusable",void 0);zo([f({type:Boolean})],He.prototype,"disabled",void 0);zo([jt()],He.prototype,"onKeyDown",null);var wr={zIndex:i.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:i.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:i.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:i.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:i.external(S.colorSurface,"Design system"),menuElevation:i.external(S.elevation02,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system")},Tf=A`
2087
+ `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new pa(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new pa(this.value)))}};Ue.elementDefinitions={"ft-icon":oe,"ft-ripple":K,"ft-typography":J};Ue.styles=Af;Fo([f()],Ue.prototype,"iconVariant",void 0);Fo([f()],Ue.prototype,"icon",void 0);Fo([f()],Ue.prototype,"value",void 0);Fo([f({type:Boolean})],Ue.prototype,"notFocusable",void 0);Fo([f({type:Boolean})],Ue.prototype,"disabled",void 0);Fo([zt()],Ue.prototype,"onKeyDown",null);var br={zIndex:i.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:i.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:i.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:i.extend("--ft-floating-menu-text-color","",C.colorOnSurfaceHigh),colorSurface:i.external(C.colorSurface,"Design system"),menuElevation:i.external(C.elevation02,"Design system"),borderRadiusS:i.external(C.borderRadiusS,"Design system")},Rf=A`
2130
2088
  .ft-floating-menu {
2131
- color: ${wr.textColor};
2089
+ color: ${br.textColor};
2132
2090
  display: contents;
2133
2091
  }
2134
2092
 
@@ -2145,20 +2103,20 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2145
2103
  display: none;
2146
2104
  position: relative;
2147
2105
  overflow: auto;
2148
- max-width: ${wr.maxWidth};
2149
- max-height: ${wr.maxHeight};
2150
- box-shadow: ${wr.menuElevation};
2151
- background-color: ${wr.colorSurface};
2152
- border-radius: ${wr.borderRadiusS};
2153
- color: ${wr.textColor};
2154
- z-index: ${wr.zIndex};
2106
+ max-width: ${br.maxWidth};
2107
+ max-height: ${br.maxHeight};
2108
+ box-shadow: ${br.menuElevation};
2109
+ background-color: ${br.colorSurface};
2110
+ border-radius: ${br.borderRadiusS};
2111
+ color: ${br.textColor};
2112
+ z-index: ${br.zIndex};
2155
2113
  }
2156
2114
 
2157
2115
  .ft-floating-menu--open .ft-floating-menu--options {
2158
2116
  display: block;
2159
2117
  }
2160
- `;var ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},va=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var xa=class extends CustomEvent{constructor(e){super("select",{detail:e})}},pe=class extends ${constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Ue.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 va(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 v`
2161
- <div part="container" class="${ne(e)}" @keydown=${this.onKeyDown}>
2118
+ `;var Be=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fa=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var ha=class extends CustomEvent{constructor(e){super("select",{detail:e})}},pe=class extends ${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 fa(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
+ <div part="container" class="${ie(e)}" @keydown=${this.onKeyDown}>
2162
2120
  <slot name="toggle"
2163
2121
  part="toggle"
2164
2122
  @click=${this.toggleMenu}
@@ -2188,7 +2146,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2188
2146
  </div>
2189
2147
  </div>
2190
2148
  </div>
2191
- `}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 xa(e.detail)),this.closeMenu()}onContentClick(e){oi(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await mi(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};pe.elementDefinitions={"ft-floating-menu-item":He,"ft-button":J};pe.styles=Tf;ze([f()],pe.prototype,"horizontalAlignment",void 0);ze([f()],pe.prototype,"verticalAlignment",void 0);ze([De([])],pe.prototype,"closeMenuMatchers",void 0);ze([f({type:Boolean})],pe.prototype,"primary",void 0);ze([f()],pe.prototype,"label",void 0);ze([f()],pe.prototype,"tooltipPosition",void 0);ze([f()],pe.prototype,"icon",void 0);ze([f()],pe.prototype,"iconVariant",void 0);ze([f()],pe.prototype,"text",void 0);ze([f({type:Boolean})],pe.prototype,"disabled",void 0);ze([I()],pe.prototype,"menuOpen",void 0);ze([I()],pe.prototype,"forceMenuOpen",void 0);ze([F(".ft-floating-menu")],pe.prototype,"container",void 0);ze([F(".ft-floating-menu--wrapper")],pe.prototype,"menuWrapper",void 0);ze([F("#actions-button")],pe.prototype,"actionButton",void 0);ze([Qo({slot:"toggle"})],pe.prototype,"customToggle",void 0);var Mg={color:i.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},Lf=A`
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 ha(e.detail)),this.closeMenu()}onContentClick(e){Jo(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await di(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};pe.elementDefinitions={"ft-floating-menu-item":Ue,"ft-button":j};pe.styles=Rf;Be([f()],pe.prototype,"horizontalAlignment",void 0);Be([f()],pe.prototype,"verticalAlignment",void 0);Be([Ne([])],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([I()],pe.prototype,"menuOpen",void 0);Be([I()],pe.prototype,"forceMenuOpen",void 0);Be([F(".ft-floating-menu")],pe.prototype,"container",void 0);Be([F(".ft-floating-menu--wrapper")],pe.prototype,"menuWrapper",void 0);Be([F("#actions-button")],pe.prototype,"actionButton",void 0);Be([Zo({slot:"toggle"})],pe.prototype,"customToggle",void 0);var $g={color:i.extend("--ft-floating-menu-label-color","",C.colorOnSurfaceMedium)},_f=A`
2192
2150
  .ft-floating-menu-label {
2193
2151
  padding: 4px 8px;
2194
2152
  }
@@ -2199,44 +2157,44 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2199
2157
  width: max-content;
2200
2158
  text-overflow: ellipsis;
2201
2159
  overflow: hidden;
2202
- color: ${Mg.color}
2160
+ color: ${$g.color}
2203
2161
  }
2204
- `;var Er=class extends ${render(){return v`
2162
+ `;var vr=class extends ${render(){return x`
2205
2163
  <div class="ft-floating-menu-label">
2206
- <ft-typography variant="${oe.caption}">
2164
+ <ft-typography variant="${re.caption}">
2207
2165
  <slot></slot>
2208
2166
  </ft-typography>
2209
2167
  </div>
2210
- `}};Er.elementDefinitions={"ft-typography":X};Er.styles=Lf;var If={"ft-floating-menu":pe,"ft-floating-menu-item":He,"ft-floating-menu-label":Er};Z(If);function $g(t){var e;return((e=uo(t))===null||e===void 0?void 0:e.openMode)===gn.EXTERNAL}function kf(t){return $g(t)?uo(t).originUrl:si(t)}var Bi=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};var Ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends tp(Je(ga)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,o,n,a,s;return this.metadata?this.metadata.label:(s=(n=(o=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&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(Ho)}willUpdate(e){var r,o,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.viewerStateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?sr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Bi((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,o,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.document)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return v`
2168
+ `}};vr.elementDefinitions={"ft-typography":J};vr.styles=_f;var Tf={"ft-floating-menu":pe,"ft-floating-menu-item":Ue,"ft-floating-menu-label":vr};Z(Tf);function Fg(t){var e;return((e=no(t))===null||e===void 0?void 0:e.openMode)===pn.EXTERNAL}function Lf(t){return Fg(t)?no(t).originUrl:ri(t)}var Ni=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};var Ge=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends Qu(ft(da)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,o,n,a,s;return this.metadata?this.metadata.label:(s=(n=(o=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&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($o)}willUpdate(e){var r,o,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.viewerStateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?or.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Ni((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,o,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.document)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2211
2169
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
2212
2170
  ${this.hideIfEmpty()}
2213
- `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?v`
2171
+ `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?x`
2214
2172
  <style>
2215
2173
  :host {
2216
2174
  display: none !important;
2217
2175
  }
2218
2176
  </style>
2219
- `:L}renderSwitchToRelatives(){return v`
2177
+ `:L}renderSwitchToRelatives(){return x`
2220
2178
  <div part="floating-menu-container" class="ft-ud-viewer-metadata--container">
2221
2179
  <ft-floating-menu part="floating-menu" text="Toggle collapsible" trailingIcon>
2222
2180
  ${this.renderChip(!0)}
2223
2181
  <ft-floating-menu-label>${this.metadataLabel}</ft-floating-menu-label>
2224
- ${qe(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2182
+ ${Ke(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2225
2183
  </ft-floating-menu>
2226
2184
  </div>
2227
- `}renderRelativeItem(e,r){var o,n;let a=this.translateValues&&(n=new Bi((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&n!==void 0?n:r,s=kf(e);return v`
2185
+ `}renderRelativeItem(e,r){var o,n;let a=this.translateValues&&(n=new Ni((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&n!==void 0?n:r,s=Lf(e);return x`
2228
2186
  <a part="relative-item-link"
2229
2187
  href="${s}" >
2230
2188
  <ft-ripple part="relative-item-ripple"></ft-ripple>
2231
2189
  <ft-floating-menu-item part="relative-item" value="${a.value}" notFocusable>
2232
- ${a.value==null||a.value===a.displayValue?a.displayValue:v`
2190
+ ${a.value==null||a.value===a.displayValue?a.displayValue:x`
2233
2191
  <ft-tooltip part="relative-item-tooltip" text="${a.value}">
2234
2192
  ${a.displayValue}
2235
2193
  </ft-tooltip>
2236
2194
  `}
2237
2195
  </ft-floating-menu-item>
2238
2196
  </a>
2239
- `}renderChip(e=!1){var r,o,n,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((o=this.flatMetadata)===null||o===void 0?void 0:o.displayValue),p=`${this.metadataLabel}: ${(a=(n=this.flatMetadata)===null||n===void 0?void 0:n.displayTooltipValue)!==null&&a!==void 0?a:this.noValueMessage}`,m=v`
2197
+ `}renderChip(e=!1){var r,o,n,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((o=this.flatMetadata)===null||o===void 0?void 0:o.displayValue),p=`${this.metadataLabel}: ${(a=(n=this.flatMetadata)===null||n===void 0?void 0:n.displayTooltipValue)!==null&&a!==void 0?a:this.noValueMessage}`,m=x`
2240
2198
  <ft-chip part="chip"
2241
2199
  exportpartsPrefix="chip"
2242
2200
  label="${p}"
@@ -2244,20 +2202,20 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2244
2202
  trailingIcon icon="${e?"thin_arrow":""}"
2245
2203
  ?clickable=${e}
2246
2204
  ?multiLine=${this.multiLine}>
2247
- ${this.displayLabel?v`
2205
+ ${this.displayLabel?x`
2248
2206
  <span part="label">${(l=(s=this.metadata)===null||s===void 0?void 0:s.label)!==null&&l!==void 0?l:this.key}: </span>
2249
2207
  `:L}
2250
- ${this.metadataValue.length===0?L:v`
2208
+ ${this.metadataValue.length===0?L:x`
2251
2209
  <span part="values">${this.metadataValue}</span>
2252
2210
  `}
2253
- </ft-chip>`;return d?m:v`
2211
+ </ft-chip>`;return d?m:x`
2254
2212
  <ft-tooltip part="tooltip"
2255
2213
  slot="${e?"toggle":""}"
2256
2214
  class="${this.multiLine?"ft-ud-viewer-metadata-multi-line":""}"
2257
2215
  text="${p}">
2258
2216
  ${m}
2259
2217
  </ft-tooltip>
2260
- `}};Ce.elementDefinitions={"ft-chip":ye,"ft-floating-menu":pe,"ft-floating-menu-item":He,"ft-floating-menu-label":Er,"ft-ripple":K,"ft-tooltip":se};Ce.styles=Cf;Ze([f(),Is()],Ce.prototype,"key",void 0);Ze([f({type:Boolean})],Ce.prototype,"multiLine",void 0);Ze([f({type:Boolean})],Ce.prototype,"useForSwitchingToRelatives",void 0);Ze([f({type:Boolean})],Ce.prototype,"displayLabel",void 0);Ze([xt()],Ce.prototype,"hierarchicalValueTruncatingLevel",void 0);Ze([f({type:Boolean})],Ce.prototype,"forceTooltip",void 0);Ze([f({attribute:!1})],Ce.prototype,"editorMode",void 0);Ze([f({type:Boolean})],Ce.prototype,"translateValues",void 0);Ze([H({store:"viewer",selector:(t,e)=>{var r,o;return(o=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(n=>n.key===e.key)}})],Ce.prototype,"metadata",void 0);Ze([I()],Ce.prototype,"flatMetadata",void 0);Ze([H({store:"viewer"})],Ce.prototype,"document",void 0);Ze([I()],Ce.prototype,"relatives",void 0);Ze([H({store:N.name})],Ce.prototype,"availableContentLocales",void 0);Ze([Bn(Ho.properties.itemWithNoValueForSwitchToRelatives())],Ce.prototype,"noValueMessage",void 0);Ze([ut({eventName:xr.clusteringHelperCreated})],Ce.prototype,"updateRelatives",null);var Pf={"ft-asset-viewer-content":Mn,"ft-asset-viewer-content-control":Hn,"ft-asset-viewer-context":Qt,"ft-asset-viewer-document-title":Gn,"ft-asset-viewer-filename":zn,"ft-asset-viewer-mime-type-icon":jn,"ft-asset-viewer-title":Wn,"ft-ud-viewer-attachments":Qr,"ft-ud-viewer-content":Yn,"ft-ud-viewer-content-control":Xn,"ft-ud-viewer-context":Cr,"ft-ud-viewer-filename":Jn,"ft-ud-viewer-metadata":Ce,"ft-ud-viewer-mime-type-icon":ea,"ft-ud-viewer-title":Qn,"ft-ud-viewer-feedback":ue};Z(Pf);})();
2218
+ `}};Ce.elementDefinitions={"ft-chip":ye,"ft-floating-menu":pe,"ft-floating-menu-item":Ue,"ft-floating-menu-label":vr,"ft-ripple":K,"ft-tooltip":ge};Ce.styles=xf;Ge([f(),Os()],Ce.prototype,"key",void 0);Ge([f({type:Boolean})],Ce.prototype,"multiLine",void 0);Ge([f({type:Boolean})],Ce.prototype,"useForSwitchingToRelatives",void 0);Ge([f({type:Boolean})],Ce.prototype,"displayLabel",void 0);Ge([yt()],Ce.prototype,"hierarchicalValueTruncatingLevel",void 0);Ge([f({type:Boolean})],Ce.prototype,"forceTooltip",void 0);Ge([f({attribute:!1})],Ce.prototype,"editorMode",void 0);Ge([f({type:Boolean})],Ce.prototype,"translateValues",void 0);Ge([q({store:"viewer",selector:(t,e)=>{var r,o;return(o=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(n=>n.key===e.key)}})],Ce.prototype,"metadata",void 0);Ge([I()],Ce.prototype,"flatMetadata",void 0);Ge([q({store:"viewer"})],Ce.prototype,"document",void 0);Ge([I()],Ce.prototype,"relatives",void 0);Ge([q({store:N.name})],Ce.prototype,"availableContentLocales",void 0);Ge([Zn($o.properties.itemWithNoValueForSwitchToRelatives())],Ce.prototype,"noValueMessage",void 0);Ge([st({eventName:mr.clusteringHelperCreated})],Ce.prototype,"updateRelatives",null);var If={"ft-asset-viewer-content":kn,"ft-asset-viewer-context":Xt,"ft-asset-viewer-document-title":$n,"ft-asset-viewer-filename":Pn,"ft-asset-viewer-mime-type-icon":Mn,"ft-asset-viewer-title":Nn,"ft-ud-viewer-attachments":qr,"ft-ud-viewer-content":Vn,"ft-ud-viewer-context":yr,"ft-ud-viewer-filename":Hn,"ft-ud-viewer-metadata":Ce,"ft-ud-viewer-mime-type-icon":Wn,"ft-ud-viewer-title":zn,"ft-ud-viewer-feedback":ue};Z(If);})();
2261
2219
  /*! Bundled license information:
2262
2220
 
2263
2221
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: