@fluid-topics/ft-search-bar 2.2.24 → 2.2.26

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 Bu=Object.defineProperty;var j=(t,e)=>{for(var r in e)Bu(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(y,x){if(y=y.toLowerCase(),this._getDefinition(y)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${y}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let S=x.prototype.attributeChangedCallback,P=new Set(x.observedAttributes||[]);g(x,P,S);let $={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:S,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:P};this._definitionsByTag.set(y,$),this._definitionsByClass.set(x,$);let Y=r.call(i,y);Y||(Y=h(y),e.call(i,y,Y)),this===window.customElements&&(s.set(x,$),$.standInClass=Y);let ce=this._awaitingUpgrade.get(y);if(ce){this._awaitingUpgrade.delete(y);for(let X of ce)a.delete(X),C(X,$,!0)}let M=this._whenDefinedPromises.get(y);return M!==void 0&&(M.resolve(x),this._whenDefinedPromises.delete(y)),x}upgrade(){A.push(this),i.upgrade.apply(i,arguments),A.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let x=this._getDefinition(y);if(x!==void 0)return Promise.resolve(x.elementClass);let S=this._whenDefinedPromises.get(y);return S===void 0&&(S={},S.promise=new Promise(P=>S.resolve=P),this._whenDefinedPromises.set(y,S)),S.promise}_upgradeWhenDefined(y,x,S){let P=this._awaitingUpgrade.get(x);P||this._awaitingUpgrade.set(x,P=new Set),S?P.add(y):P.delete(y)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let S=s.get(this.constructor);if(!S)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],S.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,S),x},window.HTMLElement.prototype=t.prototype;let u=y=>y===document||y instanceof ShadowRoot,m=y=>{let x=y.getRootNode();if(!u(x)){let S=A[A.length-1];if(S instanceof CustomElementRegistry)return S;x=S.getRootNode(),u(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let S=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(S,HTMLElement.prototype);let P=m(S)||window.customElements,$=P._getDefinition(y);return $?C(S,$):a.set(S,P),S}connectedCallback(){let S=n.get(this);S?S.connectedCallback&&S.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let S=n.get(this);S?S.disconnectedCallback&&S.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let S=n.get(this);S&&S.formAssociated&&S?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let S=n.get(this);S?.formAssociated&&S?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let S=n.get(this);S?.formAssociated&&S?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let S=n.get(this);S?.formAssociated&&S?.formStateRestoreCallback?.apply(this,arguments)}},g=(y,x,S)=>{if(x.size===0||S===void 0)return;let P=y.prototype.setAttribute;P&&(y.prototype.setAttribute=function(ce,M){let X=ce.toLowerCase();if(x.has(X)){let ve=this.getAttribute(X);P.call(this,X,M),S.call(this,X,ve,M)}else P.call(this,X,M)});let $=y.prototype.removeAttribute;$&&(y.prototype.removeAttribute=function(ce){let M=ce.toLowerCase();if(x.has(M)){let X=this.getAttribute(M);$.call(this,M),S.call(this,M,X,null)}else $.call(this,M)});let Y=y.prototype.toggleAttribute;Y&&(y.prototype.toggleAttribute=function(ce,M){let X=ce.toLowerCase();if(x.has(X)){let ve=this.getAttribute(X);Y.call(this,X,M);let gt=this.getAttribute(X);S.call(this,X,ve,gt)}else Y.call(this,X,M)})},v=y=>{let x=Object.getPrototypeOf(y);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(y,window.HTMLElement):v(x)},C=(y,x,S=!1)=>{Object.setPrototypeOf(y,x.elementClass.prototype),n.set(y,x),d=y;try{new x.elementClass}catch{v(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(P=>{y.hasAttribute(P)&&x.attributeChangedCallback.call(y,P,null,y.getAttribute(P))}),S&&x.connectedCallback&&y.isConnected&&x.connectedCallback.call(y)},T=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let x=T.apply(this,arguments);return y.customElements&&(x.customElements=y.customElements),x};let A=[document],I=(y,x,S=void 0)=>{let P=(S?Object.getPrototypeOf(S):y.prototype)[x];y.prototype[x]=function(){A.push(this);let $=P.apply(S||this,arguments);return $!==void 0&&l.set($,this),A.pop(),$}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let G=(y,x)=>{let S=Object.getOwnPropertyDescriptor(y.prototype,x);Object.defineProperty(y.prototype,x,{...S,set(P){A.push(this),S.set.call(this,P),A.pop()}})};if(G(Element,"innerHTML"),G(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,x=HTMLElement.prototype.attachInternals,S=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let M=x.call(this,...ce);return y.set(M,this),M},S.forEach(ce=>{let M=window.ElementInternals.prototype,X=M[ce];M[ce]=function(...ve){let gt=y.get(this);if(n.get(gt).formAssociated===!0)return X?.call(this,...ve);throw new DOMException(`Failed to execute ${X} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class P extends Array{constructor(M){super(...M),this._elements=M}get value(){return this._elements.find(M=>M.checked===!0)?.value||""}}class ${constructor(M){let X=new Map;M.forEach((ve,gt)=>{let un=ve.getAttribute("name"),ol=X.get(un)||[];this[+gt]=ve,ol.push(ve),X.set(un,ol)}),this.length=M.length,X.forEach((ve,gt)=>{ve&&(ve.length===1?this[gt]=ve[0]:this[gt]=new P(ve))})}namedItem(M){return this[M]}}let Y=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=Y.get.call(this,[]),M=[];for(let X of ce){let ve=n.get(X);(!ve||ve.formAssociated===!0)&&M.push(X)}return new $(M)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var wn={};j(wn,{CSSResult:()=>Dr,LitElement:()=>nt,ReactiveElement:()=>Je,_$LE:()=>Xu,_$LH:()=>En,adoptStyles:()=>po,css:()=>O,defaultConverter:()=>$r,getCompatibleStyle:()=>oi,html:()=>b,isServer:()=>Eg,mathml:()=>Sn,noChange:()=>Se,notEqual:()=>fo,nothing:()=>k,render:()=>Cn,supportsAdoptingStyleSheets:()=>co,svg:()=>vn,unsafeCSS:()=>Yt});var ri=globalThis,co=ri.ShadowRoot&&(ri.ShadyCSS===void 0||ri.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fn=Symbol(),il=new WeakMap,Dr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==fn)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(co&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=il.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&il.set(r,e))}return e}toString(){return this.cssText}},Yt=t=>new Dr(typeof t=="string"?t:t+"",void 0,fn),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new Dr(r,t,fn)},po=(t,e)=>{if(co)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ri.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},oi=co?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Yt(r)})(t):t;var{is:Uu,defineProperty:zu,getOwnPropertyDescriptor:Hu,getOwnPropertyNames:Vu,getOwnPropertySymbols:Wu,getPrototypeOf:Gu}=Object,ii=globalThis,nl=ii.trustedTypes,ju=nl?nl.emptyScript:"",Ku=ii.reactiveElementPolyfillSupport,uo=(t,e)=>t,$r={toAttribute(t,e){switch(e){case Boolean:t=t?ju:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},fo=(t,e)=>!Uu(t,e),al={attribute:!0,type:String,converter:$r,reflect:!1,useDefault:!1,hasChanged:fo};Symbol.metadata??=Symbol("metadata"),ii.litPropertyMetadata??=new WeakMap;var Je=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=al){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&zu(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Hu(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??al}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let e=Gu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let r=this.properties,i=[...Vu(r),...Wu(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(oi(n))}else e!==void 0&&r.push(oi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return po(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:$r).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:$r;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??fo)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Je.elementStyles=[],Je.shadowRootOptions={mode:"open"},Je[uo("elementProperties")]=new Map,Je[uo("finalized")]=new Map,Ku?.({ReactiveElement:Je}),(ii.reactiveElementVersions??=[]).push("2.1.2");var mn=globalThis,sl=t=>t,ni=mn.trustedTypes,ll=ni?ni.createPolicy("lit-html",{createHTML:t=>t}):void 0,gn="$lit$",Lt=`lit$${Math.random().toFixed(9).slice(2)}$`,yn="?"+Lt,Zu=`<${yn}>`,Qt=document,mo=()=>Qt.createComment(""),go=t=>t===null||typeof t!="object"&&typeof t!="function",bn=Array.isArray,hl=t=>bn(t)||typeof t?.[Symbol.iterator]=="function",hn=`[
2
- \f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cl=/-->/g,dl=/>/g,Xt=RegExp(`>|${hn}(?:([^\\s"'>=/]+)(${hn}*=${hn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pl=/'/g,ul=/"/g,ml=/^(?:script|style|textarea|title)$/i,xn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),b=xn(1),vn=xn(2),Sn=xn(3),Se=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),fl=new WeakMap,Jt=Qt.createTreeWalker(Qt,129);function gl(t,e){if(!bn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ll!==void 0?ll.createHTML(e):e}var yl=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=ho;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===ho?m[1]==="!--"?s=cl:m[1]!==void 0?s=dl:m[2]!==void 0?(ml.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Xt):m[3]!==void 0&&(s=Xt):s===Xt?m[0]===">"?(s=n??ho,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Xt:m[3]==='"'?ul:pl):s===ul||s===pl?s=Xt:s===cl||s===dl?s=ho:(s=Xt,n=void 0);let v=s===Xt&&t[l+1].startsWith("/>")?" ":"";a+=s===ho?d+Zu:h>=0?(i.push(u),d.slice(0,h)+gn+d.slice(h)+Lt+v):d+Lt+(h===-2?l:v)}return[gl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=yl(e,r);if(this.el=t.createElement(u,i),Jt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Jt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(gn)){let g=m[s++],v=n.getAttribute(h).split(Lt),C=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:C[2],strings:v,ctor:C[1]==="."?si:C[1]==="?"?li:C[1]==="@"?ci:tr}),n.removeAttribute(h)}else h.startsWith(Lt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(ml.test(n.tagName)){let h=n.textContent.split(Lt),g=h.length-1;if(g>0){n.textContent=ni?ni.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],mo()),Jt.nextNode(),d.push({type:2,index:++a});n.append(h[g],mo())}}}else if(n.nodeType===8)if(n.data===yn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Lt,h+1))!==-1;)d.push({type:7,index:a}),h+=Lt.length-1}a++}}static createElement(e,r){let i=Qt.createElement("template");return i.innerHTML=e,i}};function er(t,e,r=t,i){if(e===Se)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=go(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=er(t,n._$AS(t,e.values),n,i)),e}var ai=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Qt).importNode(r,!0);Jt.currentNode=n;let a=Jt.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Mr(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new di(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=Jt.nextNode(),s++)}return Jt.currentNode=Qt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Mr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=er(this,e,r),go(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==Se&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):hl(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!==k&&go(this._$AH)?this._$AA.nextSibling.data=e:this.T(Qt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=yo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ai(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=fl.get(e.strings);return r===void 0&&fl.set(e.strings,r=new yo(e)),r}k(e){bn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(mo()),this.O(mo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=sl(e).nextSibling;sl(e).remove(),e=i}}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,i,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=er(this,e,r,0),s=!go(e)||e!==this._$AH&&e!==Se,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=er(this,l[i+d],r,d),u===Se&&(u=this._$AH[d]),s||=!go(u)||u!==this._$AH[d],u===k?e=k:e!==k&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},si=class extends tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},li=class extends tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},ci=class extends tr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=er(this,e,r,0)??k)===Se)return;let i=this._$AH,n=e===k&&i!==k||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==k&&(i===k||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},di=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){er(this,e)}},En={M:gn,P:Lt,A:yn,C:1,L:yl,R:ai,D:hl,V:er,I:Mr,H:tr,N:li,U:ci,B:si,F:di},qu=mn.litHtmlPolyfillSupport;qu?.(yo,Mr),(mn.litHtmlVersions??=[]).push("3.3.3");var Cn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Mr(e.insertBefore(mo(),a),a,void 0,r??{})}return n._$AI(t),n};var On=globalThis,nt=class extends Je{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=Cn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Se}};nt._$litElement$=!0,nt.finalized=!0,On.litElementHydrateSupport?.({LitElement:nt});var Yu=On.litElementPolyfillSupport;Yu?.({LitElement:nt});var Xu={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(On.litElementVersions??=[]).push("4.2.2");var Eg=!1;var Ln={};j(Ln,{customElement:()=>Ju,eventOptions:()=>ef,property:()=>f,query:()=>D,queryAll:()=>An,queryAssignedElements:()=>Rn,queryAssignedNodes:()=>_n,queryAsync:()=>rf,standardProperty:()=>bl,state:()=>_});var Ju=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Qu={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:fo},bl=(t=Qu,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?bl(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function _(t){return f({...t,state:!0,attribute:!1})}function ef(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var at=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function D(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return at(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return at(r,i,{get(){return a(this)}})}}var tf;function An(t){return(e,r)=>at(e,r,{get(){return(this.renderRoot??(tf??=document.createDocumentFragment())).querySelectorAll(t)}})}function rf(t){return(e,r)=>at(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Rn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return at(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function _n(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return at(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var kn={};j(kn,{repeat:()=>fe});var yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},He=t=>(...e)=>({_$litDirective$:t,values:e}),Qe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:of}=En,xl=t=>t;var Sl=t=>t.strings===void 0,vl=()=>document.createComment(""),Fr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(vl(),n),s=i.insertBefore(vl(),n);r=new of(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let u=xl(d).nextSibling;xl(i).insertBefore(d,n),d=u}}}return r},Mt=(t,e,r=t)=>(t._$AI(e,r),t),nf={},El=(t,e=nf)=>t._$AH=e,Cl=t=>t._$AH,pi=t=>{t._$AR(),t._$AA.remove()};var Ol=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},fe=He(class extends Qe{constructor(t){if(super(t),t.type!==yt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Cl(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,m,h=0,g=n.length-1,v=0,C=a.length-1;for(;h<=g&&v<=C;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=Mt(n[h],a[v]),h++,v++;else if(l[g]===s[C])d[C]=Mt(n[g],a[C]),g--,C--;else if(l[h]===s[C])d[C]=Mt(n[h],a[C]),Fr(t,d[C+1],n[h]),h++,C--;else if(l[g]===s[v])d[v]=Mt(n[g],a[v]),Fr(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=Ol(s,v,C),m=Ol(l,h,g)),u.has(l[h]))if(u.has(l[g])){let T=m.get(s[v]),A=T!==void 0?n[T]:null;if(A===null){let I=Fr(t,n[h]);Mt(I,a[v]),d[v]=I}else d[v]=Mt(A,a[v]),Fr(t,n[h],A),n[T]=null;v++}else pi(n[g]),g--;else pi(n[h]),h++;for(;v<=C;){let T=Fr(t,d[C+1]);Mt(T,a[v]),d[v++]=T}for(;h<=g;){let T=n[h++];T!==null&&pi(T)}return this.ut=s,El(t,d),Se}});var Tn={};j(Tn,{classMap:()=>ie});var ie=He(class extends Qe{constructor(t){if(super(t),t.type!==yt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Se}});var In={};j(In,{styleMap:()=>sf});var wl="important",af=" !"+wl,sf=He(class extends Qe{constructor(t){if(super(t),t.type!==yt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(af);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?wl:""):r[i]=n}}return Se}});var Nn={};j(Nn,{UnsafeHTMLDirective:()=>Br,unsafeHTML:()=>Pn});var Br=class extends Qe{constructor(e){if(super(e),this.it=k,e.type!==yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===Se)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:[]}}};Br.directiveName="unsafeHTML",Br.resultType=1;var Pn=He(Br);var Dn={};j(Dn,{splitBreadcrumbForMenu:()=>lf});function lf(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var jn={};j(jn,{CacheRegistry:()=>bt,ClearCacheEvent:()=>Eo});var Mn={};j(Mn,{CancelablePromise:()=>ui,CanceledPromiseError:()=>rr,cancelable:()=>$n});var rr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},ui=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new rr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new rr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},$n=t=>new ui((e,r)=>t.then(e).catch(r));var Gn={};j(Gn,{FtNotificationEvent:()=>So,PostResizeEvent:()=>Wn,PreResizeEvent:()=>Vn,WithEventBus:()=>kt,withEventBus:()=>gi});var Hn={};j(Hn,{applyMixinOnce:()=>we,customElements:()=>W,dateReviver:()=>uf,deepCopy:()=>st,deepEqual:()=>he,delay:()=>fi,eventPathContainsMatchingElement:()=>Bn,everyDeep:()=>pf,flatDeep:()=>Ve,forEachDeep:()=>_l,getComposedPathTo:()=>zn,groupBy:()=>mf,hasChanged:()=>et,ignoreComposingEvents:()=>vo,last:()=>Un,minmax:()=>or,parseDate:()=>kl,randomId:()=>hf,someDeep:()=>Ll,unslotText:()=>mi,waitFor:()=>hi,waitUntil:()=>xo});var Fn={};j(Fn,{customElement:()=>bo,dateProperty:()=>df,isNumber:()=>Rl,jsonProperty:()=>se,jsonPropertyConverter:()=>Al,numberProperty:()=>Ft,optionalNumberProperty:()=>cf});var bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Al=t=>({fromAttribute:e=>{if(e==null)return st(t);try{return JSON.parse(e)}catch{return st(t)}},toAttribute:e=>JSON.stringify(e)});function se(t,e){return f({type:Object,converter:Al(t),hasChanged:et,...e??{}})}function cf(t){return Ft(t)}function Ft(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return Rl(e)?or(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Rl(t){return!isNaN(parseFloat(t))}function df(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 fi=t=>new Promise(e=>setTimeout(e,t));async function xo(t,e=10,r=2e4){await hi(async()=>await t()||void 0,e,r)}async function hi(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await fi(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ve(t,e){return t.flatMap(r=>[r,...Ve(e(r),e)])}function _l(t,e,r){let i=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function Ll(t,e,r){let i=!1;return _l(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function pf(t,e,r){return!Ll(t,e,(i,n,a,s)=>!r(i,n,a,s))}function uf(...t){return(e,r)=>t.includes(e)?kl(r):r}function kl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function ff(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!he(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!he(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!he(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return ff(t,e)}catch{return!1}}function et(t,e){return!he(t,e)}function Bn(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function or(t,e,r){return Math.min(Math.max(t,e),r)}function Un(t){return t[t.length-1]}function mi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>mi(e)).join(""):t?.textContent||""}function zn(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function st(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function hf(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function we(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function vo(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function W(t){for(let[e,r]of Object.entries(t))bo(e)(r)}function mf(t,e){var r,i;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[i=n(s)])!==null&&r!==void 0?r:a[i]=[]).push(s);return a}var So=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Vn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Wn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},gi=we(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),kt=class extends gi(Object){};var Eo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},bt=class extends kt{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Eo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Eo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=$n(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ra={};j(ra,{ClusteringHelper:()=>ta,formatHierarchicalValues:()=>ea});var Qn={};j(Qn,{accessBreadcrumb:()=>Of,accessResult:()=>Jn,accessResultId:()=>Ef,accessResultUrl:()=>Cf,enrichReaderUrl:()=>Xn});var Yn={};j(Yn,{SearchPlaceConverter:()=>lt,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>xc,serializeRequest:()=>vf});var gf=t=>typeof t=="object"&&t!=null;var yf=t=>typeof t=="number",yi=t=>typeof t=="string",Zn=t=>gf(t)&&yi(t.endpoint)&&yi(t.method)&&yi(t.statusText)&&yi(t.body)&&yf(t.status),Tl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Tl||(Tl={}));var Il;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Il||(Il={}));var Pl;(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"})(Pl||(Pl={}));var Nl;(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"})(Nl||(Nl={}));var Dl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Dl||(Dl={}));var $l;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})($l||($l={}));var Ml;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ml||(Ml={}));var Fl;(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"})(Fl||(Fl={}));var Bl;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Bl||(Bl={}));var Ul;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ul||(Ul={}));var zl;(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"})(zl||(zl={}));var Hl;(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"})(Hl||(Hl={}));var Vl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Vl||(Vl={}));var Wl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Wl||(Wl={}));var Gl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Gl||(Gl={}));var jl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(jl||(jl={}));var Kl;(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"})(Kl||(Kl={}));var Ur;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ur||(Ur={}));var Zl;(function(t){t.ASC="ASC",t.DESC="DESC"})(Zl||(Zl={}));var ql;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ql||(ql={}));var Kn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Kn||(Kn={}));var oc=t=>Object.keys(Kn).includes(t);var Yl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Yl||(Yl={}));var Xl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Xl||(Xl={}));var Jl;(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"})(Jl||(Jl={}));var zr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(zr||(zr={}));var ic=t=>Object.keys(zr).includes(t);var Ql;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ql||(Ql={}));var ec;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ec||(ec={}));var tc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tc||(tc={}));var ge;(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"})(ge||(ge={}));var tt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(tt||(tt={}));var rc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(rc||(rc={}));var nc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(nc||(nc={}));var ac;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ac||(ac={}));var sc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(sc||(sc={}));var lc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(lc||(lc={}));var cc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cc||(cc={}));var dc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(dc||(dc={}));var pc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(pc||(pc={}));var uc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(uc||(uc={}));var fc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(fc||(fc={}));var hc;(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"})(hc||(hc={}));var mc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mc||(mc={}));var bf={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]};function gc(t,e){return t===e||(bf[t]??[]).some(r=>gc(r,e))}function qn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>gc(i,e))}function yc(t,...e){return t==null?!1:e.some(r=>qn(t,r))}function xf(t){return`"${t}"`}function bc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function vf(t,e){return new lt(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 Sf=new Set(Object.values(H));function xc(t){return Sf.has(t)}var lt=class t{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(H.LOCALE,e.contentLocale):g.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(H.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(H.VALUE_FILTERS,v);let C=t.serializeNegativeValueFilters(e.metadataFilters);C&&g.append(H.NEGATIVE_VALUE_FILTERS,C);let T=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(y=>y.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let y=T.map(x=>{var S;return`${x.key}~${(S=x.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");g.append(H.DATE_FILTERS,y)}let A=(u=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(y=>y.rangeFilter))!==null&&u!==void 0?u:[];if(A.length>0){let y=A.map(x=>{var S,P;return`${x.key}~${(S=x.rangeFilter)===null||S===void 0?void 0:S.from}_${(P=x.rangeFilter)===null||P===void 0?void 0:P.to}`}).join("*");g.append(H.RANGE_FILTERS,y)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(H.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let I=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let y in I)g.append(y,I[y]);let G=new Array;return g.forEach((y,x)=>{G.push(this.encodeQueryString(x)+"="+this.encodeQueryString(y))}),encodeURI(G.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),u=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),m=((i=d.get(H.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),h=(r=d.get(H.SORT))===null||r===void 0?void 0:r.toLowerCase(),g=(n=d.get(H.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(H.KEYWORD_MATCH),T=C?C.toUpperCase()===Ur.MANDATORY?Ur.MANDATORY:Ur.OPTIONAL:void 0,A={};for(let I of d.keys())xc(I)||(A[I]=d.get(I));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:oc(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:or(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:T,otherQueryParams:A}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(H.FILTERS)&&(u=t.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(H.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...t.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.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:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(bc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:zr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(ic(e))return[{key:"ft:lastEdition",dateFilter:{type:zr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(a=>t.escapeFilters(a)).map(a=>xf(bc(a))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(H.LOCALE),r!==void 0&&i.searchParams.append(H.LOCALE,r),i.toString()}};lt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Jn(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Ef(t){var e,r,i,n,a,s,l,d,u;return(u=(d=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&u!==void 0?u:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function Cf(t,e){var r,i,n,a,s,l,d,u,m;return(m=(u=(d=(l=Xn((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:Xn((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&u!==void 0?u:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&m!==void 0?m:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Of(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 Xn(t,e){if(e&&t){let r=URL.parse(t),i=lt.serializeValueFilters(e);if(i&&r?.searchParams.append(H.VALUE_FILTERS,i),r)return r.toString()}return t}function ea(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var ta=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=Jn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ea(l)),s.push(ea(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(C=>C.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var oa={};j(oa,{Debouncer:()=>ee});var ee=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa={};j(sa,{designSystemVariables:()=>E});var aa={};j(aa,{DesignSystemFamily:()=>Co,DesignSystemSize:()=>Oo,FtCssVariableFactory:()=>o,badge:()=>zf,banner:()=>Uf,button:()=>Rf,card:()=>Lf,chart:()=>oh,checkbox:()=>Pf,chip:()=>Mf,chipChoice:()=>$f,chipGroup:()=>Ff,collapsible:()=>th,combobox:()=>Qf,dateRangePicker:()=>lh,drawer:()=>Zf,eventCard:()=>kf,floatingMenu:()=>Jf,foundation:()=>c,link:()=>Bf,modal:()=>jf,notice:()=>nh,notification:()=>ah,pageDesigner:()=>ih,pageFooter:()=>Wf,pageHeader:()=>Vf,pageLayout:()=>Gf,popover:()=>eh,radio:()=>Nf,reorderableList:()=>Kf,resolveFamilyClass:()=>ia,resolveSizeClass:()=>na,semantic:()=>p,setVariable:()=>w,switch_:()=>rh,table:()=>Df,tabs:()=>qf,textArea:()=>Xf,textInput:()=>Yf,titleBreadcrumb:()=>Hf,toc:()=>If,toggle:()=>_f,tooltip:()=>sh,treeList:()=>Tf,typographies:()=>wf,typographyBody1Medium:()=>wc,typographyBody1Regular:()=>Oc,typographyBody1Semibold:()=>Ac,typographyBody2Medium:()=>_c,typographyBody2MediumUnderline:()=>Lc,typographyBody2Regular:()=>Rc,typographyBody2Semibold:()=>kc,typographyCaption1Medium:()=>Tc,typographyCaption1Semibold:()=>Ic,typographyCaption2Bold:()=>Dc,typographyCaption2Medium:()=>Pc,typographyCaption2Semibold:()=>Nc,typographyDisplay:()=>vc,typographyTitle1:()=>Sc,typographyTitle2:()=>Ec,typographyTitle3:()=>Cc,typographyVariants:()=>Af});var Bt=t=>typeof t=="string"?Yt(t):t,o=class{static create(e,r,i,n){let a=l=>Bt(l??n),s=O`var(${Bt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>w(s,l??a(n)),s.get=l=>O`var(${Bt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=O`var(${Bt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>w(s,l??a(n)),s.get=l=>O`var(${Bt(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=O`var(${Bt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>O`var(${Bt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function w(t,e){return Bt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},vc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Sc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Ec={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Cc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Oc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},wc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Ac={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Rc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},_c={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Lc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},kc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Tc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Ic={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Pc={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Nc={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Dc={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},wf={display:vc,"title-1":Sc,"title-2":Ec,"title-3":Cc,"body-1-regular":Oc,"body-1-medium":wc,"body-1-semibold":Ac,"body-2-regular":Rc,"body-2-medium":_c,"body-2-medium-underline":Lc,"body-2-semibold":kc,"caption-1-medium":Tc,"caption-1-semibold":Ic,"caption-2-medium":Pc,"caption-2-semibold":Nc,"caption-2-bold":Dc},Af=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Rf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var _f={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var Lf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var kf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",p.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",p.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",p.backgroundGlobalSurface)};var Tf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var If={titleColor:o.extend("--ftds-toc-title-color","",p.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),top:o.create("--ftds-toc-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",p.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","3px"),itemRootDefaultLabelColor:o.extend("--ftds-toc-item-root-default-label-color","",p.contentGlobalSecondary),itemRootDefaultBorderColor:o.extend("--ftds-toc-item-root-default-border-color","",p.borderGlobalSubtle),itemRootHoverLabelColor:o.extend("--ftds-toc-item-root-hover-label-color","",p.contentGlobalSecondary),itemRootHoverBorderColor:o.extend("--ftds-toc-item-root-hover-border-color","",p.borderGlobalSubtle),itemRootHoverStateLayerColor:o.extend("--ftds-toc-item-root-hover-state-layer-color","",p.contentGlobalSecondary),itemRootHoverStateLayerOpacity:o.extend("--ftds-toc-item-root-hover-state-layer-opacity","",c.opacity8),itemRootFocusLabelColor:o.extend("--ftds-toc-item-root-focus-label-color","",p.contentGlobalSecondary),itemRootFocusStateLayerColor:o.extend("--ftds-toc-item-root-focus-state-layer-color","",p.contentGlobalSecondary),itemRootFocusStateLayerOpacity:o.extend("--ftds-toc-item-root-focus-state-layer-opacity","",c.opacity8),itemRootSelectedLabelColor:o.extend("--ftds-toc-item-root-selected-label-color","",p.contentActionPrimary),itemRootSelectedBorderColor:o.extend("--ftds-toc-item-root-selected-border-color","",p.borderActionPrimary),itemRootSelectedBorderWidth:o.create("--ftds-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:o.extend("--ftds-toc-item-root-selected-state-layer-color","",p.contentActionPrimary),itemRootSelectedStateLayerOpacity:o.extend("--ftds-toc-item-root-selected-state-layer-opacity","",c.opacity8),itemRootChildrenActiveLabelColor:o.extend("--ftds-toc-item-root-children-active-label-color","",p.contentActionPrimary),itemRootChildrenActiveBorderColor:o.extend("--ftds-toc-item-root-children-active-border-color","",p.borderGlobalSubtle),itemChildDefaultLabelColor:o.extend("--ftds-toc-item-child-default-label-color","",p.contentGlobalSubtle),itemChildDefaultBorderColor:o.extend("--ftds-toc-item-child-default-border-color","",p.borderGlobalSubtle),itemChildHoverLabelColor:o.extend("--ftds-toc-item-child-hover-label-color","",p.contentGlobalSubtle),itemChildHoverBorderColor:o.extend("--ftds-toc-item-child-hover-border-color","",p.borderGlobalSubtle),itemChildHoverStateLayerColor:o.extend("--ftds-toc-item-child-hover-state-layer-color","",p.contentGlobalSecondary),itemChildHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-hover-state-layer-opacity","",c.opacity8),itemChildFocusLabelColor:o.extend("--ftds-toc-item-child-focus-label-color","",p.contentGlobalSubtle),itemChildFocusStateLayerColor:o.extend("--ftds-toc-item-child-focus-state-layer-color","",p.contentGlobalSecondary),itemChildFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-focus-state-layer-opacity","",c.opacity8),itemChildSelectedLabelColor:o.extend("--ftds-toc-item-child-selected-label-color","",p.contentActionPrimary),itemChildSelectedBorderColor:o.extend("--ftds-toc-item-child-selected-border-color","",p.borderActionPrimary),itemChildSelectedBorderWidth:o.create("--ftds-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:o.extend("--ftds-toc-item-child-selected-state-layer-color","",p.contentActionPrimary),itemChildSelectedStateLayerOpacity:o.extend("--ftds-toc-item-child-selected-state-layer-opacity","",c.opacity8)};var Pf={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Nf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Df={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var $f={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Mf={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var Ff={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var Bf={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Uf={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var zf={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var Hf={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Vf={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Wf={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Gf={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var jf={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Kf={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Zf={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var qf={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Yf={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Xf={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-area-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-area-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-area-warning-helper-icon-color","",p.contentWarningIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Jf={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Qf={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var eh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var th={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var rh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var oh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var ih={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var nh={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var ah={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var sh={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var lh={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Co;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Co||(Co={}));var Oo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Oo||(Oo={}));function ia(t){return`ftds--family-${t}`}function na(t){return`ftds--size-${t}`}var E={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var la={};j(la,{DynamicImporter:()=>bi,dynamicImporter:()=>ch});var bi=class{async import(e){if(e)return import(e)}},ch=new bi;var Ea={};j(Ea,{computeOffsetAutoPosition:()=>Sa,computeOffsetPosition:()=>va});var Mc=["top","right","bottom","left"],$c=["start","end"],da=Mc.reduce((t,e)=>t.concat(e,e+"-"+$c[0],e+"-"+$c[1]),[]),ir=Math.min,xt=Math.max,wo=Math.round;var vt=t=>({x:t,y:t}),dh={left:"right",right:"left",bottom:"top",top:"bottom"};function Fc(t,e,r){return xt(t,ir(e,r))}function Hr(t,e){return typeof t=="function"?t(e):t}function nr(t){return t.split("-")[0]}function St(t){return t.split("-")[1]}function pa(t){return t==="x"?"y":"x"}function ua(t){return t==="y"?"height":"width"}function Vr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function fa(t){return pa(Vr(t))}function Bc(t,e,r){r===void 0&&(r=!1);let i=St(t),n=fa(t),a=ua(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ca(s)),[s,ca(s)]}function Uc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ca(t){let e=nr(t);return dh[e]+t.slice(e.length)}function ph(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function zc(t){return typeof t!="number"?ph(t):{top:t,right:t,bottom:t,left:t}}function ar(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Hc(t,e,r){let{reference:i,floating:n}=t,a=Vr(e),s=fa(e),l=ua(s),d=nr(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let C=St(e);return C&&(v[s]+=g*(C==="end"?1:-1)*(r&&u?-1:1)),v}async function Vc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Hr(e,t),C=zc(v),A=l[g?h==="floating"?"reference":"floating":h],I=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(A)))==null||r?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),G=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},S=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:G,offsetParent:y,strategy:d}):G);return{top:(I.top-S.top+C.top)/x.y,bottom:(S.bottom-I.bottom+C.bottom)/x.y,left:(I.left-S.left+C.left)/x.x,right:(S.right-I.right+C.right)/x.x}}var uh=50,Wc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Vc},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=Hc(u,i,d),g=i,v=0,C={};for(let T=0;T<a.length;T++){let A=a[T];if(!A)continue;let{name:I,fn:G}=A,{x:y,y:x,data:S,reset:P}=await G({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:C,rects:u,platform:l,elements:{reference:t,floating:e}});m=y??m,h=x??h,C[I]={...C[I],...S},P&&v<uh&&(v++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(u=P.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):P.rects),{x:m,y:h}=Hc(u,g,d)),T=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:C}};function fh(t,e,r){return(t?[...r.filter(n=>St(n)===t),...r.filter(n=>St(n)!==t)]:r.filter(n=>nr(n)===n)).filter(n=>t?St(n)===t||(e?Uc(n)!==n:!1):!0)}var Gc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=da,autoAlignment:v=!0,...C}=Hr(t,e),T=h!==void 0||g===da?fh(h||null,v,g):g,A=((r=s.autoPlacement)==null?void 0:r.index)||0,I=T[A];if(I==null)return{};if(l!==I)return{reset:{placement:T[0]}};let G=await d.detectOverflow(e,C),y=Bc(I,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),x=[G[nr(I)],G[y[0]],G[y[1]]],S=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:x}],P=T[A+1];if(P)return{data:{index:A+1,overflows:S},reset:{placement:P}};let $=S.map(M=>{let X=St(M.placement);return[M.placement,X&&m?M.overflows.slice(0,2).reduce((ve,gt)=>ve+gt,0):M.overflows[0],M.overflows]}).sort((M,X)=>M[1]-X[1]),ce=((n=$.filter(M=>M[2].slice(0,St(M[0])?2:3).every(X=>X<=0))[0])==null?void 0:n[0])||$[0][0];return ce!==l?{data:{index:A+1,overflows:S},reset:{placement:ce}}:{}}}};var hh=new Set(["left","top"]);async function mh(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=nr(r),l=St(r),d=Vr(r)==="y",u=hh.has(s)?-1:1,m=a&&d?-1:1,h=Hr(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),d?{x:v*m,y:g*u}:{x:g*u,y:v*m}}var jc=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await mh(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Kc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:G=>{let{x:y,y:x}=G;return{x:y,y:x}}},...u}=Hr(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=Vr(n),v=pa(g),C=m[v],T=m[g],A=(G,y)=>Fc(y+h[G==="y"?"top":"left"],y,y-h[G==="y"?"bottom":"right"]);s&&(C=A(v,C)),l&&(T=A(g,T));let I=d.fn({...e,[v]:C,[g]:T});return{...I,data:{x:I.x-r,y:I.y-i,enabled:{[v]:s,[g]:l}}}}}};var Zc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Hr(t,e),d=await n.detectOverflow(e,l),u=nr(r),m=St(r),h=Vr(r)==="y",{width:g,height:v}=i.floating,C,T;u==="top"||u==="bottom"?(C=u,T=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(T=u,C=m==="end"?"top":"bottom");let A=v-d.top-d.bottom,I=g-d.left-d.right,G=ir(v-d[C],A),y=ir(g-d[T],I),x=e.middlewareData.shift,S=!x,P=G,$=y;x!=null&&x.enabled.x&&($=I),x!=null&&x.enabled.y&&(P=A),S&&!m&&(h?$=g-2*xt(d.left,d.right):P=v-2*xt(d.top,d.bottom)),await s({...e,availableWidth:$,availableHeight:P});let Y=await n.getDimensions(a.floating);return g!==Y.width||v!==Y.height?{reset:{rects:!0}}:{}}}};function vi(){return typeof window<"u"}function lr(t){return Yc(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Tt(t){var e;return(e=(Yc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yc(t){return vi()?t instanceof Node||t instanceof Fe(t).Node:!1}function ct(t){return vi()?t instanceof Element||t instanceof Fe(t).Element:!1}function It(t){return vi()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function qc(t){return!vi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function Ao(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Xc(t){return/^(table|td|th)$/.test(lr(t))}function Ro(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var gh=/transform|translate|scale|rotate|perspective|filter/,yh=/paint|layout|strict|content/,sr=t=>!!t&&t!=="none",ha;function Wr(t){let e=ct(t)?dt(t):t;return sr(e.transform)||sr(e.translate)||sr(e.scale)||sr(e.rotate)||sr(e.perspective)||!Si()&&(sr(e.backdropFilter)||sr(e.filter))||gh.test(e.willChange||"")||yh.test(e.contain||"")}function Jc(t){let e=Ut(t);for(;It(e)&&!Gr(e);){if(Wr(e))return e;if(Ro(e))return null;e=Ut(e)}return null}function Si(){return ha==null&&(ha=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ha}function Gr(t){return/^(html|body|#document)$/.test(lr(t))}function dt(t){return Fe(t).getComputedStyle(t)}function _o(t){return ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ut(t){if(lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||qc(t)&&t.host||Tt(t);return qc(e)?e.host:e}function Qc(t){let e=Ut(t);return Gr(e)?(t.ownerDocument||t).body:It(e)&&Ao(e)?e:Qc(e)}function xi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Qc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Fe(n);if(a){let l=Ei(s);return e.concat(s,s.visualViewport||[],Ao(n)?n:[],l&&r?xi(l):[])}else return e.concat(n,xi(n,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rd(t){let e=dt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=It(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=wo(r)!==a||wo(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function od(t){return ct(t)?t:t.contextElement}function jr(t){let e=od(t);if(!It(e))return vt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=rd(e),s=(a?wo(r.width):r.width)/i,l=(a?wo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var bh=vt(0);function id(t){let e=Fe(t);return!Si()||!e.visualViewport?bh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Fe(t)}function Lo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=od(t),s=vt(1);e&&(i?ct(i)&&(s=jr(i)):s=jr(t));let l=xh(a,r,i)?id(a):vt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Fe(a),v=ct(i)?Fe(i):i,C=g,T=Ei(C);for(;T&&v!==C;){let A=jr(T),I=T.getBoundingClientRect(),G=dt(T),y=I.left+(T.clientLeft+parseFloat(G.paddingLeft))*A.x,x=I.top+(T.clientTop+parseFloat(G.paddingTop))*A.y;d*=A.x,u*=A.y,m*=A.x,h*=A.y,d+=y,u+=x,C=Fe(T),T=Ei(C)}}return ar({width:m,height:h,x:d,y:u})}function Ci(t,e){let r=_o(t).scrollLeft;return e?e.left+r:Lo(Tt(t)).left+r}function nd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ci(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function vh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=Tt(i),l=e?Ro(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=vt(1),m=vt(0),h=It(i);if((h||!a)&&((lr(i)!=="body"||Ao(s))&&(d=_o(i)),h)){let v=Lo(i);u=jr(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?nd(s,d):vt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function Sh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Eh(t){let e=_o(t),r=t.ownerDocument.body,i=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Ci(t),s=-e.scrollTop;return dt(r).direction==="rtl"&&(a+=xt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var Ch=25;function Oh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Fe(t),a=Tt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!Si()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(Ci(a)<=0){let g=a.ownerDocument,v=g.body,C=getComputedStyle(v),T=g.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(a.clientWidth-v.clientWidth-T),I=getComputedStyle(a).scrollbarGutter==="stable both-edges"?A/2:A;I<=Ch&&(l-=I)}return{width:l,height:d,x:u,y:m}}function wh(t,e){let r=Lo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=jr(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function ed(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Oh(t,r,e);else if(e==="document")i=Eh(Tt(t));else if(ct(e))i=wh(e,r);else{let n=id(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ar(i)}function Ah(t,e){let r=e.get(t);if(r)return r;let i=xi(t,[],!1).filter(l=>ct(l)&&lr(l)!=="body"),n=null,a=dt(t).position==="fixed",s=a?Ut(t):t;for(;ct(s)&&!Gr(s);){let l=dt(s),d=Wr(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=Ut(s)}return e.set(t,i),i}function Rh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Ro(e)?[]:Ah(e,this._c):[].concat(r),i],l=ed(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=ed(e,s[g],n);d=xt(v.top,d),u=ir(v.right,u),m=ir(v.bottom,m),h=xt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function _h(t){let{width:e,height:r}=rd(t);return{width:e,height:r}}function Lh(t,e,r){let i=It(e),n=Tt(e),a=r==="fixed",s=Lo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=vt(0);if((i||!a)&&((lr(e)!=="body"||Ao(n))&&(l=_o(e)),i)){let g=Lo(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Ci(n));let u=n&&!i&&!a?nd(n,l):vt(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function ma(t){return dt(t).position==="static"}function td(t,e){if(!It(t)||dt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Tt(t)===r&&(r=r.ownerDocument.body),r}function ad(t,e){let r=Fe(t);if(Ro(t))return r;if(!It(t)){let n=Ut(t);for(;n&&!Gr(n);){if(ct(n)&&!ma(n))return n;n=Ut(n)}return r}let i=td(t,e);for(;i&&Xc(i)&&ma(i);)i=td(i,e);return i&&Gr(i)&&ma(i)&&!Wr(i)?r:i||Jc(t)||r}var kh=async function(t){let e=this.getOffsetParent||ad,r=this.getDimensions,i=await r(t.floating);return{reference:Lh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Th(t){return dt(t).direction==="rtl"}var Kr={convertOffsetParentRelativeRectToViewportRelativeRect:vh,getDocumentElement:Tt,getClippingRect:Rh,getOffsetParent:ad,getElementRects:kh,getClientRects:Sh,getDimensions:_h,getScale:jr,isElement:ct,isRTL:Th};var sd=jc,ga=Gc,ld=Kc;var cd=Zc;var ya=(t,e,r)=>{let i=new Map,n=r??{},a={...Kr,...n.platform,_c:i};return Wc(t,e,{...n,platform:a})};function xa(t){return Ih(t)}function ba(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ih(t){for(let e=t;e;e=ba(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ba(t);e;e=ba(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wr(r)||e.tagName==="BODY"))return e}return null}async function va(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ya(t,e,{strategy:i.strategy,platform:{...Kr,getOffsetParent:n=>Kr.getOffsetParent(n,xa)},middleware:[ld({crossAxis:!0}),ga({allowedPlacements:[i.placement]})]})}async function Sa(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ya(t,e,{placement:l,strategy:n,platform:{...Kr,getOffsetParent:u=>Kr.getOffsetParent(u,xa)},middleware:[sd(s??4),ga({allowedPlacements:i}),cd({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Ca={};j(Ca,{isSlotEmptyOrWithoutContent:()=>ko});var ko=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var La={};j(La,{FtdsBase:()=>_a,toFtdsBase:()=>gd});var Ra={};j(Ra,{ExportpartsUpdatedEvent:()=>cr,FtLitElement:()=>N});var Oa={};j(Oa,{ScopedRegistryLitElement:()=>To});var To=class extends nt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return po(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){bo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Aa={};j(Aa,{shadowQuerySelector:()=>wa,shadowQuerySelectorAll:()=>Ph});function wa(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Ph(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Zr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fd,dd=Symbol("constructorPrototype"),pd=Symbol("constructorName"),hd=Symbol("exportpartsDebouncer"),ud=Symbol("dynamicDependenciesLoaded"),cr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};cr.eventName="exportparts-updated";var N=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[fd]=new ee(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[hd].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[pd]=this.constructor.name,this[dd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[pd]&&Object.setPrototypeOf(this,this[dd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ud]||(r[ud]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(cr.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 cr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=wa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let v=(s=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],C=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],T=[...v,...C].filter(d).map(A=>A.trim());for(let A of T)m.add(A)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};fd=hd;Zr([f()],N.prototype,"exportpartsPrefix",void 0);Zr([se([])],N.prototype,"exportpartsPrefixes",void 0);Zr([f({reflect:!0})],N.prototype,"exportparts",void 0);Zr([f()],N.prototype,"customStylesheet",void 0);Zr([f()],N.prototype,"elementToFocus",void 0);Zr([_()],N.prototype,"useAdoptedStyleSheets",void 0);var md=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gd=we(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Oo.medium,this.family=Co.neutral}getDesignSystemBaseClasses(){return{[ia(this.family)]:!0,[na(this.size)]:!0}}}return md([f()],e.prototype,"size",void 0),md([f()],e.prototype,"family",void 0),e}),_a=class extends gd(N){};var yd={};var Ia={};j(Ia,{highlightHtml:()=>Ta,highlightHtmlColorCssVariable:()=>bd,highlightHtmlStyles:()=>Dh});var dr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Io=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return dr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,m),e.value=h+g,e.nodes.forEach((v,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=m),e.nodes[C].end-=m)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=dr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ka(t){let e=new Io(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var Nh=ka,bd=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Dh=O`
1
+ "use strict";(()=>{var Bu=Object.defineProperty;var j=(t,e)=>{for(var r in e)Bu(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(b,y){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let S=y.prototype.attributeChangedCallback,T=new Set(y.observedAttributes||[]);g(y,T,S);let z={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:S,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:T};this._definitionsByTag.set(b,z),this._definitionsByClass.set(y,z);let Q=r.call(i,b);Q||(Q=h(b),e.call(i,b,Q)),this===window.customElements&&(s.set(y,z),z.standInClass=Q);let ue=this._awaitingUpgrade.get(b);if(ue){this._awaitingUpgrade.delete(b);for(let X of ue)a.delete(X),C(X,z,!0)}let $=this._whenDefinedPromises.get(b);return $!==void 0&&($.resolve(y),this._whenDefinedPromises.delete(b)),y}upgrade(){A.push(this),i.upgrade.apply(i,arguments),A.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let y=this._getDefinition(b);if(y!==void 0)return Promise.resolve(y.elementClass);let S=this._whenDefinedPromises.get(b);return S===void 0&&(S={},S.promise=new Promise(T=>S.resolve=T),this._whenDefinedPromises.set(b,S)),S.promise}_upgradeWhenDefined(b,y,S){let T=this._awaitingUpgrade.get(y);T||this._awaitingUpgrade.set(y,T=new Set),S?T.add(b):T.delete(b)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let S=s.get(this.constructor);if(!S)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],S.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),n.set(y,S),y},window.HTMLElement.prototype=t.prototype;let u=b=>b===document||b instanceof ShadowRoot,m=b=>{let y=b.getRootNode();if(!u(y)){let S=A[A.length-1];if(S instanceof CustomElementRegistry)return S;y=S.getRootNode(),u(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let S=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(S,HTMLElement.prototype);let T=m(S)||window.customElements,z=T._getDefinition(b);return z?C(S,z):a.set(S,T),S}connectedCallback(){let S=n.get(this);S?S.connectedCallback&&S.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let S=n.get(this);S?S.disconnectedCallback&&S.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let S=n.get(this);S&&S.formAssociated&&S?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let S=n.get(this);S?.formAssociated&&S?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let S=n.get(this);S?.formAssociated&&S?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let S=n.get(this);S?.formAssociated&&S?.formStateRestoreCallback?.apply(this,arguments)}},g=(b,y,S)=>{if(y.size===0||S===void 0)return;let T=b.prototype.setAttribute;T&&(b.prototype.setAttribute=function(ue,$){let X=ue.toLowerCase();if(y.has(X)){let ve=this.getAttribute(X);T.call(this,X,$),S.call(this,X,ve,$)}else T.call(this,X,$)});let z=b.prototype.removeAttribute;z&&(b.prototype.removeAttribute=function(ue){let $=ue.toLowerCase();if(y.has($)){let X=this.getAttribute($);z.call(this,$),S.call(this,$,X,null)}else z.call(this,$)});let Q=b.prototype.toggleAttribute;Q&&(b.prototype.toggleAttribute=function(ue,$){let X=ue.toLowerCase();if(y.has(X)){let ve=this.getAttribute(X);Q.call(this,X,$);let yt=this.getAttribute(X);S.call(this,X,ve,yt)}else Q.call(this,X,$)})},v=b=>{let y=Object.getPrototypeOf(b);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(b,window.HTMLElement):v(y)},C=(b,y,S=!1)=>{Object.setPrototypeOf(b,y.elementClass.prototype),n.set(b,y),d=b;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(T=>{b.hasAttribute(T)&&y.attributeChangedCallback.call(b,T,null,b.getAttribute(T))}),S&&y.connectedCallback&&b.isConnected&&y.connectedCallback.call(b)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let y=I.apply(this,arguments);return b.customElements&&(y.customElements=b.customElements),y};let A=[document],P=(b,y,S=void 0)=>{let T=(S?Object.getPrototypeOf(S):b.prototype)[y];b.prototype[y]=function(){A.push(this);let z=T.apply(S||this,arguments);return z!==void 0&&l.set(z,this),A.pop(),z}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let G=(b,y)=>{let S=Object.getOwnPropertyDescriptor(b.prototype,y);Object.defineProperty(b.prototype,y,{...S,set(T){A.push(this),S.set.call(this,T),A.pop()}})};if(G(Element,"innerHTML"),G(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,y=HTMLElement.prototype.attachInternals,S=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ue){let $=y.call(this,...ue);return b.set($,this),$},S.forEach(ue=>{let $=window.ElementInternals.prototype,X=$[ue];$[ue]=function(...ve){let yt=b.get(this);if(n.get(yt).formAssociated===!0)return X?.call(this,...ve);throw new DOMException(`Failed to execute ${X} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class T extends Array{constructor($){super(...$),this._elements=$}get value(){return this._elements.find($=>$.checked===!0)?.value||""}}class z{constructor($){let X=new Map;$.forEach((ve,yt)=>{let fn=ve.getAttribute("name"),il=X.get(fn)||[];this[+yt]=ve,il.push(ve),X.set(fn,il)}),this.length=$.length,X.forEach((ve,yt)=>{ve&&(ve.length===1?this[yt]=ve[0]:this[yt]=new T(ve))})}namedItem($){return this[$]}}let Q=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ue=Q.get.call(this,[]),$=[];for(let X of ue){let ve=n.get(X);(!ve||ve.formAssociated===!0)&&$.push(X)}return new z($)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var An={};j(An,{CSSResult:()=>Dr,LitElement:()=>nt,ReactiveElement:()=>Je,_$LE:()=>Xu,_$LH:()=>Cn,adoptStyles:()=>po,css:()=>O,defaultConverter:()=>$r,getCompatibleStyle:()=>oi,html:()=>x,isServer:()=>Eg,mathml:()=>En,noChange:()=>Se,notEqual:()=>fo,nothing:()=>k,render:()=>On,supportsAdoptingStyleSheets:()=>co,svg:()=>Sn,unsafeCSS:()=>Yt});var ri=globalThis,co=ri.ShadowRoot&&(ri.ShadyCSS===void 0||ri.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),nl=new WeakMap,Dr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==hn)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(co&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=nl.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&nl.set(r,e))}return e}toString(){return this.cssText}},Yt=t=>new Dr(typeof t=="string"?t:t+"",void 0,hn),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new Dr(r,t,hn)},po=(t,e)=>{if(co)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ri.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},oi=co?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Yt(r)})(t):t;var{is:Uu,defineProperty:zu,getOwnPropertyDescriptor:Vu,getOwnPropertyNames:Hu,getOwnPropertySymbols:Wu,getPrototypeOf:Gu}=Object,ii=globalThis,al=ii.trustedTypes,ju=al?al.emptyScript:"",Ku=ii.reactiveElementPolyfillSupport,uo=(t,e)=>t,$r={toAttribute(t,e){switch(e){case Boolean:t=t?ju:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},fo=(t,e)=>!Uu(t,e),sl={attribute:!0,type:String,converter:$r,reflect:!1,useDefault:!1,hasChanged:fo};Symbol.metadata??=Symbol("metadata"),ii.litPropertyMetadata??=new WeakMap;var Je=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=sl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&zu(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Vu(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??sl}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let e=Gu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let r=this.properties,i=[...Hu(r),...Wu(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(oi(n))}else e!==void 0&&r.push(oi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return po(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:$r).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:$r;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??fo)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Je.elementStyles=[],Je.shadowRootOptions={mode:"open"},Je[uo("elementProperties")]=new Map,Je[uo("finalized")]=new Map,Ku?.({ReactiveElement:Je}),(ii.reactiveElementVersions??=[]).push("2.1.2");var gn=globalThis,ll=t=>t,ni=gn.trustedTypes,cl=ni?ni.createPolicy("lit-html",{createHTML:t=>t}):void 0,yn="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,bn="?"+kt,Zu=`<${bn}>`,Qt=document,mo=()=>Qt.createComment(""),go=t=>t===null||typeof t!="object"&&typeof t!="function",xn=Array.isArray,ml=t=>xn(t)||typeof t?.[Symbol.iterator]=="function",mn=`[
2
+ \f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dl=/-->/g,pl=/>/g,Xt=RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ul=/'/g,fl=/"/g,gl=/^(?:script|style|textarea|title)$/i,vn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=vn(1),Sn=vn(2),En=vn(3),Se=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),hl=new WeakMap,Jt=Qt.createTreeWalker(Qt,129);function yl(t,e){if(!xn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(e):e}var bl=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=ho;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===ho?m[1]==="!--"?s=dl:m[1]!==void 0?s=pl:m[2]!==void 0?(gl.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Xt):m[3]!==void 0&&(s=Xt):s===Xt?m[0]===">"?(s=n??ho,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Xt:m[3]==='"'?fl:ul):s===fl||s===ul?s=Xt:s===dl||s===pl?s=ho:(s=Xt,n=void 0);let v=s===Xt&&t[l+1].startsWith("/>")?" ":"";a+=s===ho?d+Zu:h>=0?(i.push(u),d.slice(0,h)+yn+d.slice(h)+kt+v):d+kt+(h===-2?l:v)}return[yl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=bl(e,r);if(this.el=t.createElement(u,i),Jt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Jt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(yn)){let g=m[s++],v=n.getAttribute(h).split(kt),C=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:C[2],strings:v,ctor:C[1]==="."?si:C[1]==="?"?li:C[1]==="@"?ci:tr}),n.removeAttribute(h)}else h.startsWith(kt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(gl.test(n.tagName)){let h=n.textContent.split(kt),g=h.length-1;if(g>0){n.textContent=ni?ni.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],mo()),Jt.nextNode(),d.push({type:2,index:++a});n.append(h[g],mo())}}}else if(n.nodeType===8)if(n.data===bn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(kt,h+1))!==-1;)d.push({type:7,index:a}),h+=kt.length-1}a++}}static createElement(e,r){let i=Qt.createElement("template");return i.innerHTML=e,i}};function er(t,e,r=t,i){if(e===Se)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=go(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=er(t,n._$AS(t,e.values),n,i)),e}var ai=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Qt).importNode(r,!0);Jt.currentNode=n;let a=Jt.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Mr(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new di(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=Jt.nextNode(),s++)}return Jt.currentNode=Qt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Mr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=er(this,e,r),go(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==Se&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ml(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!==k&&go(this._$AH)?this._$AA.nextSibling.data=e:this.T(Qt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=yo.createElement(yl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ai(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=hl.get(e.strings);return r===void 0&&hl.set(e.strings,r=new yo(e)),r}k(e){xn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(mo()),this.O(mo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ll(e).nextSibling;ll(e).remove(),e=i}}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,i,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=er(this,e,r,0),s=!go(e)||e!==this._$AH&&e!==Se,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=er(this,l[i+d],r,d),u===Se&&(u=this._$AH[d]),s||=!go(u)||u!==this._$AH[d],u===k?e=k:e!==k&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},si=class extends tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},li=class extends tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},ci=class extends tr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=er(this,e,r,0)??k)===Se)return;let i=this._$AH,n=e===k&&i!==k||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==k&&(i===k||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},di=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){er(this,e)}},Cn={M:yn,P:kt,A:bn,C:1,L:bl,R:ai,D:ml,V:er,I:Mr,H:tr,N:li,U:ci,B:si,F:di},qu=gn.litHtmlPolyfillSupport;qu?.(yo,Mr),(gn.litHtmlVersions??=[]).push("3.3.3");var On=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Mr(e.insertBefore(mo(),a),a,void 0,r??{})}return n._$AI(t),n};var wn=globalThis,nt=class extends Je{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=On(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Se}};nt._$litElement$=!0,nt.finalized=!0,wn.litElementHydrateSupport?.({LitElement:nt});var Yu=wn.litElementPolyfillSupport;Yu?.({LitElement:nt});var Xu={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(wn.litElementVersions??=[]).push("4.2.2");var Eg=!1;var kn={};j(kn,{customElement:()=>Ju,eventOptions:()=>ef,property:()=>f,query:()=>D,queryAll:()=>Rn,queryAssignedElements:()=>_n,queryAssignedNodes:()=>Ln,queryAsync:()=>rf,standardProperty:()=>xl,state:()=>_});var Ju=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Qu={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:fo},xl=(t=Qu,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?xl(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function _(t){return f({...t,state:!0,attribute:!1})}function ef(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var at=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function D(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return at(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return at(r,i,{get(){return a(this)}})}}var tf;function Rn(t){return(e,r)=>at(e,r,{get(){return(this.renderRoot??(tf??=document.createDocumentFragment())).querySelectorAll(t)}})}function rf(t){return(e,r)=>at(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function _n(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return at(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Ln(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return at(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Tn={};j(Tn,{repeat:()=>fe});var bt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ve=t=>(...e)=>({_$litDirective$:t,values:e}),Qe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:of}=Cn,vl=t=>t;var El=t=>t.strings===void 0,Sl=()=>document.createComment(""),Fr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Sl(),n),s=i.insertBefore(Sl(),n);r=new of(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let u=vl(d).nextSibling;vl(i).insertBefore(d,n),d=u}}}return r},Mt=(t,e,r=t)=>(t._$AI(e,r),t),nf={},Cl=(t,e=nf)=>t._$AH=e,Ol=t=>t._$AH,pi=t=>{t._$AR(),t._$AA.remove()};var wl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},fe=Ve(class extends Qe{constructor(t){if(super(t),t.type!==bt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Ol(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,m,h=0,g=n.length-1,v=0,C=a.length-1;for(;h<=g&&v<=C;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=Mt(n[h],a[v]),h++,v++;else if(l[g]===s[C])d[C]=Mt(n[g],a[C]),g--,C--;else if(l[h]===s[C])d[C]=Mt(n[h],a[C]),Fr(t,d[C+1],n[h]),h++,C--;else if(l[g]===s[v])d[v]=Mt(n[g],a[v]),Fr(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=wl(s,v,C),m=wl(l,h,g)),u.has(l[h]))if(u.has(l[g])){let I=m.get(s[v]),A=I!==void 0?n[I]:null;if(A===null){let P=Fr(t,n[h]);Mt(P,a[v]),d[v]=P}else d[v]=Mt(A,a[v]),Fr(t,n[h],A),n[I]=null;v++}else pi(n[g]),g--;else pi(n[h]),h++;for(;v<=C;){let I=Fr(t,d[C+1]);Mt(I,a[v]),d[v++]=I}for(;h<=g;){let I=n[h++];I!==null&&pi(I)}return this.ut=s,Cl(t,d),Se}});var In={};j(In,{classMap:()=>ie});var ie=Ve(class extends Qe{constructor(t){if(super(t),t.type!==bt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Se}});var Pn={};j(Pn,{styleMap:()=>sf});var Al="important",af=" !"+Al,sf=Ve(class extends Qe{constructor(t){if(super(t),t.type!==bt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(af);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Al:""):r[i]=n}}return Se}});var Dn={};j(Dn,{UnsafeHTMLDirective:()=>Br,unsafeHTML:()=>Nn});var Br=class extends Qe{constructor(e){if(super(e),this.it=k,e.type!==bt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===Se)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:[]}}};Br.directiveName="unsafeHTML",Br.resultType=1;var Nn=Ve(Br);var $n={};j($n,{splitBreadcrumbForMenu:()=>lf});function lf(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var Kn={};j(Kn,{CacheRegistry:()=>xt,ClearCacheEvent:()=>Eo});var Fn={};j(Fn,{CancelablePromise:()=>ui,CanceledPromiseError:()=>rr,cancelable:()=>Mn});var rr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},ui=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new rr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new rr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Mn=t=>new ui((e,r)=>t.then(e).catch(r));var jn={};j(jn,{FtNotificationEvent:()=>So,PostResizeEvent:()=>Gn,PreResizeEvent:()=>Wn,WithEventBus:()=>Tt,withEventBus:()=>gi});var Hn={};j(Hn,{applyMixinOnce:()=>we,customElements:()=>W,dateReviver:()=>uf,deepCopy:()=>st,deepEqual:()=>he,delay:()=>fi,eventPathContainsMatchingElement:()=>Un,everyDeep:()=>pf,flatDeep:()=>He,forEachDeep:()=>Ll,getComposedPathTo:()=>Vn,groupBy:()=>mf,hasChanged:()=>et,ignoreComposingEvents:()=>vo,last:()=>zn,minmax:()=>or,parseDate:()=>Tl,randomId:()=>hf,someDeep:()=>kl,unslotText:()=>mi,waitFor:()=>hi,waitUntil:()=>xo});var Bn={};j(Bn,{customElement:()=>bo,dateProperty:()=>df,isNumber:()=>_l,jsonProperty:()=>se,jsonPropertyConverter:()=>Rl,numberProperty:()=>Ft,optionalNumberProperty:()=>cf});var bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Rl=t=>({fromAttribute:e=>{if(e==null)return st(t);try{return JSON.parse(e)}catch{return st(t)}},toAttribute:e=>JSON.stringify(e)});function se(t,e){return f({type:Object,converter:Rl(t),hasChanged:et,...e??{}})}function cf(t){return Ft(t)}function Ft(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return _l(e)?or(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function _l(t){return!isNaN(parseFloat(t))}function df(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 fi=t=>new Promise(e=>setTimeout(e,t));async function xo(t,e=10,r=2e4){await hi(async()=>await t()||void 0,e,r)}async function hi(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await fi(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function He(t,e){return t.flatMap(r=>[r,...He(e(r),e)])}function Ll(t,e,r){let i=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function kl(t,e,r){let i=!1;return Ll(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function pf(t,e,r){return!kl(t,e,(i,n,a,s)=>!r(i,n,a,s))}function uf(...t){return(e,r)=>t.includes(e)?Tl(r):r}function Tl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function ff(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!he(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!he(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!he(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return ff(t,e)}catch{return!1}}function et(t,e){return!he(t,e)}function Un(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function or(t,e,r){return Math.min(Math.max(t,e),r)}function zn(t){return t[t.length-1]}function mi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>mi(e)).join(""):t?.textContent||""}function Vn(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function st(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function hf(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function we(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function vo(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function W(t){for(let[e,r]of Object.entries(t))bo(e)(r)}function mf(t,e){var r,i;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[i=n(s)])!==null&&r!==void 0?r:a[i]=[]).push(s);return a}var So=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Wn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Gn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},gi=we(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Tt=class extends gi(Object){};var Eo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},xt=class extends Tt{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Eo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Eo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=Mn(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var oa={};j(oa,{ClusteringHelper:()=>ra,formatHierarchicalValues:()=>ta});var ea={};j(ea,{accessBreadcrumb:()=>Of,accessResult:()=>Qn,accessResultId:()=>Ef,accessResultUrl:()=>Cf,enrichReaderUrl:()=>Jn});var Xn={};j(Xn,{SearchPlaceConverter:()=>lt,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>vc,serializeRequest:()=>vf});var gf=t=>typeof t=="object"&&t!=null;var yf=t=>typeof t=="number",yi=t=>typeof t=="string",qn=t=>gf(t)&&yi(t.endpoint)&&yi(t.method)&&yi(t.statusText)&&yi(t.body)&&yf(t.status),Il;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Il||(Il={}));var Pl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pl||(Pl={}));var Nl;(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"})(Nl||(Nl={}));var Dl;(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"})(Dl||(Dl={}));var $l;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})($l||($l={}));var Ml;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ml||(Ml={}));var Fl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Fl||(Fl={}));var Bl;(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"})(Bl||(Bl={}));var Ul;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ul||(Ul={}));var zl;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(zl||(zl={}));var Vl;(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"})(Vl||(Vl={}));var Hl;(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"})(Hl||(Hl={}));var Wl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Wl||(Wl={}));var Gl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Gl||(Gl={}));var jl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(jl||(jl={}));var Kl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Kl||(Kl={}));var Zl;(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"})(Zl||(Zl={}));var Ur;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ur||(Ur={}));var ql;(function(t){t.ASC="ASC",t.DESC="DESC"})(ql||(ql={}));var Yl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Yl||(Yl={}));var Zn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Zn||(Zn={}));var ic=t=>Object.keys(Zn).includes(t);var Xl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Xl||(Xl={}));var Jl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var zr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(zr||(zr={}));var nc=t=>Object.keys(zr).includes(t);var ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ec||(ec={}));var tc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(tc||(tc={}));var rc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rc||(rc={}));var ge;(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"})(ge||(ge={}));var tt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(tt||(tt={}));var oc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(oc||(oc={}));var ac;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ac||(ac={}));var sc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(sc||(sc={}));var lc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(lc||(lc={}));var cc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(cc||(cc={}));var dc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(dc||(dc={}));var pc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(pc||(pc={}));var uc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(uc||(uc={}));var fc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(fc||(fc={}));var hc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(hc||(hc={}));var mc;(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"})(mc||(mc={}));var gc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gc||(gc={}));var bf={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]};function yc(t,e){return t===e||(bf[t]??[]).some(r=>yc(r,e))}function Yn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>yc(i,e))}function bc(t,...e){return t==null?!1:e.some(r=>Yn(t,r))}function xf(t){return`"${t}"`}function xc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function vf(t,e){return new lt(t).serialize(e)}var V;(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"})(V||(V={}));var Sf=new Set(Object.values(V));function vc(t){return Sf.has(t)}var lt=class t{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(V.LOCALE,e.contentLocale):g.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(V.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(V.VALUE_FILTERS,v);let C=t.serializeNegativeValueFilters(e.metadataFilters);C&&g.append(V.NEGATIVE_VALUE_FILTERS,C);let I=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let b=I.map(y=>{var S;return`${y.key}~${(S=y.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");g.append(V.DATE_FILTERS,b)}let A=(u=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.rangeFilter))!==null&&u!==void 0?u:[];if(A.length>0){let b=A.map(y=>{var S,T;return`${y.key}~${(S=y.rangeFilter)===null||S===void 0?void 0:S.from}_${(T=y.rangeFilter)===null||T===void 0?void 0:T.to}`}).join("*");g.append(V.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(V.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(V.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(V.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(V.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let P=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let b in P)g.append(b,P[b]);let G=new Array;return g.forEach((b,y)=>{G.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI(G.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let d=new URLSearchParams(e),u=d.get(V.LOCALE)==="all"?void 0:d.get(V.LOCALE),m=((i=d.get(V.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),h=(r=d.get(V.SORT))===null||r===void 0?void 0:r.toLowerCase(),g=(n=d.get(V.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(V.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(V.KEYWORD_MATCH),I=C?C.toUpperCase()===Ur.MANDATORY?Ur.MANDATORY:Ur.OPTIONAL:void 0,A={};for(let P of d.keys())vc(P)||(A[P]=d.get(P));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(V.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:ic(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:or(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:I,otherQueryParams:A}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(V.FILTERS)&&(u=t.parseValueFilters((r=e.get(V.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(V.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(V.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...t.parseValueFilters((a=e.get(V.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(V.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(V.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(V.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(xc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:zr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(nc(e))return[{key:"ft:lastEdition",dateFilter:{type:zr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(a=>t.escapeFilters(a)).map(a=>xf(xc(a))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[V.LOCALE,V.FILTERS,V.VALUE_FILTERS,V.NEGATIVE_VALUE_FILTERS,V.DATE_FILTERS,V.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(V.LOCALE),r!==void 0&&i.searchParams.append(V.LOCALE,r),i.toString()}};lt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Qn(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Ef(t){var e,r,i,n,a,s,l,d,u;return(u=(d=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&u!==void 0?u:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function Cf(t,e){var r,i,n,a,s,l,d,u,m;return(m=(u=(d=(l=Jn((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:Jn((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&u!==void 0?u:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&m!==void 0?m:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Of(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 Jn(t,e){if(e&&t){let r=URL.parse(t),i=lt.serializeValueFilters(e);if(i&&r?.searchParams.append(V.VALUE_FILTERS,i),r)return r.toString()}return t}function ta(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var ra=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=Qn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ta(l)),s.push(ta(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(C=>C.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var ia={};j(ia,{Debouncer:()=>ee});var ee=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var la={};j(la,{designSystemVariables:()=>E});var sa={};j(sa,{DesignSystemFamily:()=>Co,DesignSystemSize:()=>Oo,FtCssVariableFactory:()=>o,badge:()=>zf,banner:()=>Uf,button:()=>Rf,card:()=>Lf,chart:()=>oh,checkbox:()=>Pf,chip:()=>Mf,chipChoice:()=>$f,chipGroup:()=>Ff,collapsible:()=>th,combobox:()=>Qf,dateRangePicker:()=>lh,drawer:()=>Zf,eventCard:()=>kf,floatingMenu:()=>Jf,foundation:()=>c,link:()=>Bf,modal:()=>jf,notice:()=>nh,notification:()=>ah,pageDesigner:()=>ih,pageFooter:()=>Wf,pageHeader:()=>Hf,pageLayout:()=>Gf,popover:()=>eh,radio:()=>Nf,reorderableList:()=>Kf,resolveFamilyClass:()=>na,resolveSizeClass:()=>aa,semantic:()=>p,setVariable:()=>w,switch_:()=>rh,table:()=>Df,tabs:()=>qf,textArea:()=>Xf,textInput:()=>Yf,titleBreadcrumb:()=>Vf,toc:()=>If,toggle:()=>_f,tooltip:()=>sh,treeList:()=>Tf,typographies:()=>wf,typographyBody1Medium:()=>Ac,typographyBody1Regular:()=>wc,typographyBody1Semibold:()=>Rc,typographyBody2Medium:()=>Lc,typographyBody2MediumUnderline:()=>kc,typographyBody2Regular:()=>_c,typographyBody2Semibold:()=>Tc,typographyCaption1Medium:()=>Ic,typographyCaption1Semibold:()=>Pc,typographyCaption2Bold:()=>$c,typographyCaption2Medium:()=>Nc,typographyCaption2Semibold:()=>Dc,typographyDisplay:()=>Sc,typographyTitle1:()=>Ec,typographyTitle2:()=>Cc,typographyTitle3:()=>Oc,typographyVariants:()=>Af});var Bt=t=>typeof t=="string"?Yt(t):t,o=class{static create(e,r,i,n){let a=l=>Bt(l??n),s=O`var(${Bt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>w(s,l??a(n)),s.get=l=>O`var(${Bt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=O`var(${Bt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>w(s,l??a(n)),s.get=l=>O`var(${Bt(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=O`var(${Bt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>O`var(${Bt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function w(t,e){return Bt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Sc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Ec={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Cc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Oc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},wc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Ac={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Rc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},_c={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Lc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},kc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Tc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ic={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Pc={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Nc={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Dc={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},$c={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},wf={display:Sc,"title-1":Ec,"title-2":Cc,"title-3":Oc,"body-1-regular":wc,"body-1-medium":Ac,"body-1-semibold":Rc,"body-2-regular":_c,"body-2-medium":Lc,"body-2-medium-underline":kc,"body-2-semibold":Tc,"caption-1-medium":Ic,"caption-1-semibold":Pc,"caption-2-medium":Nc,"caption-2-semibold":Dc,"caption-2-bold":$c},Af=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Rf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var _f={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var Lf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var kf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",p.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",p.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",p.backgroundGlobalSurface)};var Tf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var If={titleColor:o.extend("--ftds-toc-title-color","",p.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),top:o.create("--ftds-toc-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",p.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","3px"),itemRootDefaultLabelColor:o.extend("--ftds-toc-item-root-default-label-color","",p.contentGlobalSecondary),itemRootDefaultBorderColor:o.extend("--ftds-toc-item-root-default-border-color","",p.borderGlobalSubtle),itemRootHoverLabelColor:o.extend("--ftds-toc-item-root-hover-label-color","",p.contentGlobalSecondary),itemRootHoverBorderColor:o.extend("--ftds-toc-item-root-hover-border-color","",p.borderGlobalSubtle),itemRootHoverStateLayerColor:o.extend("--ftds-toc-item-root-hover-state-layer-color","",p.contentGlobalSecondary),itemRootHoverStateLayerOpacity:o.extend("--ftds-toc-item-root-hover-state-layer-opacity","",c.opacity8),itemRootFocusLabelColor:o.extend("--ftds-toc-item-root-focus-label-color","",p.contentGlobalSecondary),itemRootFocusStateLayerColor:o.extend("--ftds-toc-item-root-focus-state-layer-color","",p.contentGlobalSecondary),itemRootFocusStateLayerOpacity:o.extend("--ftds-toc-item-root-focus-state-layer-opacity","",c.opacity8),itemRootSelectedLabelColor:o.extend("--ftds-toc-item-root-selected-label-color","",p.contentActionPrimary),itemRootSelectedBorderColor:o.extend("--ftds-toc-item-root-selected-border-color","",p.borderActionPrimary),itemRootSelectedBorderWidth:o.create("--ftds-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:o.extend("--ftds-toc-item-root-selected-state-layer-color","",p.contentActionPrimary),itemRootSelectedStateLayerOpacity:o.extend("--ftds-toc-item-root-selected-state-layer-opacity","",c.opacity8),itemRootChildrenActiveLabelColor:o.extend("--ftds-toc-item-root-children-active-label-color","",p.contentActionPrimary),itemRootChildrenActiveBorderColor:o.extend("--ftds-toc-item-root-children-active-border-color","",p.borderGlobalSubtle),itemChildDefaultLabelColor:o.extend("--ftds-toc-item-child-default-label-color","",p.contentGlobalSubtle),itemChildDefaultBorderColor:o.extend("--ftds-toc-item-child-default-border-color","",p.borderGlobalSubtle),itemChildHoverLabelColor:o.extend("--ftds-toc-item-child-hover-label-color","",p.contentGlobalSubtle),itemChildHoverBorderColor:o.extend("--ftds-toc-item-child-hover-border-color","",p.borderGlobalSubtle),itemChildHoverStateLayerColor:o.extend("--ftds-toc-item-child-hover-state-layer-color","",p.contentGlobalSecondary),itemChildHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-hover-state-layer-opacity","",c.opacity8),itemChildFocusLabelColor:o.extend("--ftds-toc-item-child-focus-label-color","",p.contentGlobalSubtle),itemChildFocusStateLayerColor:o.extend("--ftds-toc-item-child-focus-state-layer-color","",p.contentGlobalSecondary),itemChildFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-focus-state-layer-opacity","",c.opacity8),itemChildSelectedLabelColor:o.extend("--ftds-toc-item-child-selected-label-color","",p.contentActionPrimary),itemChildSelectedBorderColor:o.extend("--ftds-toc-item-child-selected-border-color","",p.borderActionPrimary),itemChildSelectedBorderWidth:o.create("--ftds-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:o.extend("--ftds-toc-item-child-selected-state-layer-color","",p.contentActionPrimary),itemChildSelectedStateLayerOpacity:o.extend("--ftds-toc-item-child-selected-state-layer-opacity","",c.opacity8)};var Pf={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Nf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Df={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var $f={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Mf={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var Ff={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var Bf={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Uf={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var zf={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var Vf={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Hf={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Wf={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Gf={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var jf={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Kf={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Zf={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var qf={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Yf={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Xf={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-area-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-area-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-area-warning-helper-icon-color","",p.contentWarningIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Jf={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Qf={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var eh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var th={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var rh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var oh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var ih={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var nh={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var ah={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var sh={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var lh={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Co;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Co||(Co={}));var Oo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Oo||(Oo={}));function na(t){return`ftds--family-${t}`}function aa(t){return`ftds--size-${t}`}var E={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ca={};j(ca,{DynamicImporter:()=>bi,dynamicImporter:()=>ch});var bi=class{async import(e){if(e)return import(e)}},ch=new bi;var Ca={};j(Ca,{computeOffsetAutoPosition:()=>Ea,computeOffsetPosition:()=>Sa});var Fc=["top","right","bottom","left"],Mc=["start","end"],pa=Fc.reduce((t,e)=>t.concat(e,e+"-"+Mc[0],e+"-"+Mc[1]),[]),ir=Math.min,vt=Math.max,wo=Math.round;var St=t=>({x:t,y:t}),dh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bc(t,e,r){return vt(t,ir(e,r))}function Vr(t,e){return typeof t=="function"?t(e):t}function nr(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function ua(t){return t==="x"?"y":"x"}function fa(t){return t==="y"?"height":"width"}function Hr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ha(t){return ua(Hr(t))}function Uc(t,e,r){r===void 0&&(r=!1);let i=Et(t),n=ha(t),a=fa(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=da(s)),[s,da(s)]}function zc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function da(t){let e=nr(t);return dh[e]+t.slice(e.length)}function ph(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Vc(t){return typeof t!="number"?ph(t):{top:t,right:t,bottom:t,left:t}}function ar(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Hc(t,e,r){let{reference:i,floating:n}=t,a=Hr(e),s=ha(e),l=fa(s),d=nr(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let C=Et(e);return C&&(v[s]+=g*(C==="end"?1:-1)*(r&&u?-1:1)),v}async function Wc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Vr(e,t),C=Vc(v),A=l[g?h==="floating"?"reference":"floating":h],P=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(A)))==null||r?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),G=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},S=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:G,offsetParent:b,strategy:d}):G);return{top:(P.top-S.top+C.top)/y.y,bottom:(S.bottom-P.bottom+C.bottom)/y.y,left:(P.left-S.left+C.left)/y.x,right:(S.right-P.right+C.right)/y.x}}var uh=50,Gc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Wc},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=Hc(u,i,d),g=i,v=0,C={};for(let I=0;I<a.length;I++){let A=a[I];if(!A)continue;let{name:P,fn:G}=A,{x:b,y,data:S,reset:T}=await G({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:C,rects:u,platform:l,elements:{reference:t,floating:e}});m=b??m,h=y??h,C[P]={...C[P],...S},T&&v<uh&&(v++,typeof T=="object"&&(T.placement&&(g=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):T.rects),{x:m,y:h}=Hc(u,g,d)),I=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:C}};function fh(t,e,r){return(t?[...r.filter(n=>Et(n)===t),...r.filter(n=>Et(n)!==t)]:r.filter(n=>nr(n)===n)).filter(n=>t?Et(n)===t||(e?zc(n)!==n:!1):!0)}var jc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=pa,autoAlignment:v=!0,...C}=Vr(t,e),I=h!==void 0||g===pa?fh(h||null,v,g):g,A=((r=s.autoPlacement)==null?void 0:r.index)||0,P=I[A];if(P==null)return{};if(l!==P)return{reset:{placement:I[0]}};let G=await d.detectOverflow(e,C),b=Uc(P,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),y=[G[nr(P)],G[b[0]],G[b[1]]],S=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:y}],T=I[A+1];if(T)return{data:{index:A+1,overflows:S},reset:{placement:T}};let z=S.map($=>{let X=Et($.placement);return[$.placement,X&&m?$.overflows.slice(0,2).reduce((ve,yt)=>ve+yt,0):$.overflows[0],$.overflows]}).sort(($,X)=>$[1]-X[1]),ue=((n=z.filter($=>$[2].slice(0,Et($[0])?2:3).every(X=>X<=0))[0])==null?void 0:n[0])||z[0][0];return ue!==l?{data:{index:A+1,overflows:S},reset:{placement:ue}}:{}}}};var hh=new Set(["left","top"]);async function mh(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=nr(r),l=Et(r),d=Hr(r)==="y",u=hh.has(s)?-1:1,m=a&&d?-1:1,h=Vr(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),d?{x:v*m,y:g*u}:{x:g*u,y:v*m}}var Kc=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await mh(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Zc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:G=>{let{x:b,y}=G;return{x:b,y}}},...u}=Vr(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=Hr(n),v=ua(g),C=m[v],I=m[g],A=(G,b)=>Bc(b+h[G==="y"?"top":"left"],b,b-h[G==="y"?"bottom":"right"]);s&&(C=A(v,C)),l&&(I=A(g,I));let P=d.fn({...e,[v]:C,[g]:I});return{...P,data:{x:P.x-r,y:P.y-i,enabled:{[v]:s,[g]:l}}}}}};var qc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Vr(t,e),d=await n.detectOverflow(e,l),u=nr(r),m=Et(r),h=Hr(r)==="y",{width:g,height:v}=i.floating,C,I;u==="top"||u==="bottom"?(C=u,I=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(I=u,C=m==="end"?"top":"bottom");let A=v-d.top-d.bottom,P=g-d.left-d.right,G=ir(v-d[C],A),b=ir(g-d[I],P),y=e.middlewareData.shift,S=!y,T=G,z=b;y!=null&&y.enabled.x&&(z=P),y!=null&&y.enabled.y&&(T=A),S&&!m&&(h?z=g-2*vt(d.left,d.right):T=v-2*vt(d.top,d.bottom)),await s({...e,availableWidth:z,availableHeight:T});let Q=await n.getDimensions(a.floating);return g!==Q.width||v!==Q.height?{reset:{rects:!0}}:{}}}};function vi(){return typeof window<"u"}function lr(t){return Xc(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function It(t){var e;return(e=(Xc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xc(t){return vi()?t instanceof Node||t instanceof Fe(t).Node:!1}function ct(t){return vi()?t instanceof Element||t instanceof Fe(t).Element:!1}function Pt(t){return vi()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function Yc(t){return!vi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function Ao(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Jc(t){return/^(table|td|th)$/.test(lr(t))}function Ro(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var gh=/transform|translate|scale|rotate|perspective|filter/,yh=/paint|layout|strict|content/,sr=t=>!!t&&t!=="none",ma;function Wr(t){let e=ct(t)?dt(t):t;return sr(e.transform)||sr(e.translate)||sr(e.scale)||sr(e.rotate)||sr(e.perspective)||!Si()&&(sr(e.backdropFilter)||sr(e.filter))||gh.test(e.willChange||"")||yh.test(e.contain||"")}function Qc(t){let e=Ut(t);for(;Pt(e)&&!Gr(e);){if(Wr(e))return e;if(Ro(e))return null;e=Ut(e)}return null}function Si(){return ma==null&&(ma=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ma}function Gr(t){return/^(html|body|#document)$/.test(lr(t))}function dt(t){return Fe(t).getComputedStyle(t)}function _o(t){return ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ut(t){if(lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Yc(t)&&t.host||It(t);return Yc(e)?e.host:e}function ed(t){let e=Ut(t);return Gr(e)?(t.ownerDocument||t).body:Pt(e)&&Ao(e)?e:ed(e)}function xi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ed(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Fe(n);if(a){let l=Ei(s);return e.concat(s,s.visualViewport||[],Ao(n)?n:[],l&&r?xi(l):[])}else return e.concat(n,xi(n,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function od(t){let e=dt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Pt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=wo(r)!==a||wo(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function id(t){return ct(t)?t:t.contextElement}function jr(t){let e=id(t);if(!Pt(e))return St(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=od(e),s=(a?wo(r.width):r.width)/i,l=(a?wo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var bh=St(0);function nd(t){let e=Fe(t);return!Si()||!e.visualViewport?bh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Fe(t)}function Lo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=id(t),s=St(1);e&&(i?ct(i)&&(s=jr(i)):s=jr(t));let l=xh(a,r,i)?nd(a):St(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Fe(a),v=ct(i)?Fe(i):i,C=g,I=Ei(C);for(;I&&v!==C;){let A=jr(I),P=I.getBoundingClientRect(),G=dt(I),b=P.left+(I.clientLeft+parseFloat(G.paddingLeft))*A.x,y=P.top+(I.clientTop+parseFloat(G.paddingTop))*A.y;d*=A.x,u*=A.y,m*=A.x,h*=A.y,d+=b,u+=y,C=Fe(I),I=Ei(C)}}return ar({width:m,height:h,x:d,y:u})}function Ci(t,e){let r=_o(t).scrollLeft;return e?e.left+r:Lo(It(t)).left+r}function ad(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ci(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function vh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=It(i),l=e?Ro(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=St(1),m=St(0),h=Pt(i);if((h||!a)&&((lr(i)!=="body"||Ao(s))&&(d=_o(i)),h)){let v=Lo(i);u=jr(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?ad(s,d):St(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function Sh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Eh(t){let e=_o(t),r=t.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Ci(t),s=-e.scrollTop;return dt(r).direction==="rtl"&&(a+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var Ch=25;function Oh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Fe(t),a=It(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!Si()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(Ci(a)<=0){let g=a.ownerDocument,v=g.body,C=getComputedStyle(v),I=g.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(a.clientWidth-v.clientWidth-I),P=getComputedStyle(a).scrollbarGutter==="stable both-edges"?A/2:A;P<=Ch&&(l-=P)}return{width:l,height:d,x:u,y:m}}function wh(t,e){let r=Lo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=jr(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function td(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Oh(t,r,e);else if(e==="document")i=Eh(It(t));else if(ct(e))i=wh(e,r);else{let n=nd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ar(i)}function Ah(t,e){let r=e.get(t);if(r)return r;let i=xi(t,[],!1).filter(l=>ct(l)&&lr(l)!=="body"),n=null,a=dt(t).position==="fixed",s=a?Ut(t):t;for(;ct(s)&&!Gr(s);){let l=dt(s),d=Wr(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=Ut(s)}return e.set(t,i),i}function Rh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Ro(e)?[]:Ah(e,this._c):[].concat(r),i],l=td(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=td(e,s[g],n);d=vt(v.top,d),u=ir(v.right,u),m=ir(v.bottom,m),h=vt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function _h(t){let{width:e,height:r}=od(t);return{width:e,height:r}}function Lh(t,e,r){let i=Pt(e),n=It(e),a=r==="fixed",s=Lo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=St(0);if((i||!a)&&((lr(e)!=="body"||Ao(n))&&(l=_o(e)),i)){let g=Lo(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Ci(n));let u=n&&!i&&!a?ad(n,l):St(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function ga(t){return dt(t).position==="static"}function rd(t,e){if(!Pt(t)||dt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return It(t)===r&&(r=r.ownerDocument.body),r}function sd(t,e){let r=Fe(t);if(Ro(t))return r;if(!Pt(t)){let n=Ut(t);for(;n&&!Gr(n);){if(ct(n)&&!ga(n))return n;n=Ut(n)}return r}let i=rd(t,e);for(;i&&Jc(i)&&ga(i);)i=rd(i,e);return i&&Gr(i)&&ga(i)&&!Wr(i)?r:i||Qc(t)||r}var kh=async function(t){let e=this.getOffsetParent||sd,r=this.getDimensions,i=await r(t.floating);return{reference:Lh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Th(t){return dt(t).direction==="rtl"}var Kr={convertOffsetParentRelativeRectToViewportRelativeRect:vh,getDocumentElement:It,getClippingRect:Rh,getOffsetParent:sd,getElementRects:kh,getClientRects:Sh,getDimensions:_h,getScale:jr,isElement:ct,isRTL:Th};var ld=Kc,ya=jc,cd=Zc;var dd=qc;var ba=(t,e,r)=>{let i=new Map,n=r??{},a={...Kr,...n.platform,_c:i};return Gc(t,e,{...n,platform:a})};function va(t){return Ih(t)}function xa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ih(t){for(let e=t;e;e=xa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=xa(t);e;e=xa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wr(r)||e.tagName==="BODY"))return e}return null}async function Sa(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ba(t,e,{strategy:i.strategy,platform:{...Kr,getOffsetParent:n=>Kr.getOffsetParent(n,va)},middleware:[cd({crossAxis:!0}),ya({allowedPlacements:[i.placement]})]})}async function Ea(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ba(t,e,{placement:l,strategy:n,platform:{...Kr,getOffsetParent:u=>Kr.getOffsetParent(u,va)},middleware:[ld(s??4),ya({allowedPlacements:i}),dd({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Oa={};j(Oa,{isSlotEmptyOrWithoutContent:()=>ko});var ko=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var ka={};j(ka,{FtdsBase:()=>La,toFtdsBase:()=>yd});var _a={};j(_a,{ExportpartsUpdatedEvent:()=>cr,FtLitElement:()=>N});var wa={};j(wa,{ScopedRegistryLitElement:()=>To});var To=class extends nt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return po(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){bo(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 Ra={};j(Ra,{shadowQuerySelector:()=>Aa,shadowQuerySelectorAll:()=>Ph});function Aa(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Ph(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Zr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hd,pd=Symbol("constructorPrototype"),ud=Symbol("constructorName"),md=Symbol("exportpartsDebouncer"),fd=Symbol("dynamicDependenciesLoaded"),cr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};cr.eventName="exportparts-updated";var N=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hd]=new ee(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[md].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[ud]=this.constructor.name,this[pd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ud]&&Object.setPrototypeOf(this,this[pd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[fd]||(r[fd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(cr.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 cr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Aa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let v=(s=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],C=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],I=[...v,...C].filter(d).map(A=>A.trim());for(let A of I)m.add(A)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};hd=md;Zr([f()],N.prototype,"exportpartsPrefix",void 0);Zr([se([])],N.prototype,"exportpartsPrefixes",void 0);Zr([f({reflect:!0})],N.prototype,"exportparts",void 0);Zr([f()],N.prototype,"customStylesheet",void 0);Zr([f()],N.prototype,"elementToFocus",void 0);Zr([_()],N.prototype,"useAdoptedStyleSheets",void 0);var gd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yd=we(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Oo.medium,this.family=Co.neutral}getDesignSystemBaseClasses(){return{[na(this.family)]:!0,[aa(this.size)]:!0}}}return gd([f()],e.prototype,"size",void 0),gd([f()],e.prototype,"family",void 0),e}),La=class extends yd(N){};var bd={};var Pa={};j(Pa,{highlightHtml:()=>Ia,highlightHtmlColorCssVariable:()=>xd,highlightHtmlStyles:()=>Dh});var dr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Io=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return dr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,m),e.value=h+g,e.nodes.forEach((v,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=m),e.nodes[C].end-=m)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=dr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ta(t){let e=new Io(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var Nh=Ta,xd=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Dh=O`
5
5
  .highlight-html-match {
6
- background: ${bd};
6
+ background: ${xd};
7
7
  }
8
- `;function Ta(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Nh(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Da={};j(Da,{noTextInputDefaultClearButton:()=>Po,noTextSelect:()=>pr,safariEllipsisFix:()=>Na,wordWrap:()=>Pa});var pr=O`
8
+ `;function Ia(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Nh(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var $a={};j($a,{noTextInputDefaultClearButton:()=>Po,noTextSelect:()=>pr,safariEllipsisFix:()=>Da,wordWrap:()=>Na});var pr=O`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,Pa=O`
17
+ `,Na=O`
18
18
  .ft-word-wrap {
19
19
  white-space: normal;
20
20
  word-wrap: break-word;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,Na=O`
29
+ `,Da=O`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var xd={};var $a={};j($a,{ParametrizedLabelResolver:()=>zt});var zt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var rs={};j(rs,{FtCommandQueue:()=>No,FtLitElementRedux:()=>fr,FtReduxStore:()=>mr,FtStateManager:()=>Ho,ReduxWatcher:()=>Wi,clearAllStores:()=>Im,isFtReduxStore:()=>Yr,redux:()=>qr,reduxEventListener:()=>Mh,reduxReactive:()=>$h,watch:()=>Pm,withRedux:()=>vd});var $h=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},qr=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:et,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},Mh=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var No=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Yr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Do=Symbol("internalReduxEventsUnsubscribers"),Ht=Symbol("internalStoresUnsubscribers"),ur=Symbol("internalStores"),vd=we(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[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 u=this.getStore(s.store);u&&(s.store?this[Ht].has(s.store):this[Ht].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Ht].set(s,l.subscribe(()=>this.updateFromStores())),this[Do].set(s,[]),Yr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[Do].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ht].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ht].has(s)&&this[Ht].get(s)(),this[Ht].delete(s),(l=this[Do].get(s))===null||l===void 0||l.forEach(d=>d()),this[Do].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ht,r=ur,i=Do,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fr=class extends vd(N){};function Ae(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 Fh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sd=Fh,Ma=()=>Math.random().toString(36).substring(7).split("").join("."),Bh={INIT:`@@redux/INIT${Ma()}`,REPLACE:`@@redux/REPLACE${Ma()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ma()}`},Oi=Bh;function wi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Fa(t,e,r){if(typeof t!="function")throw new Error(Ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ae(1));return r(Fa)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((A,I)=>{s.set(I,A)}))}function m(){if(d)throw new Error(Ae(3));return n}function h(A){if(typeof A!="function")throw new Error(Ae(4));if(d)throw new Error(Ae(5));let I=!0;u();let G=l++;return s.set(G,A),function(){if(I){if(d)throw new Error(Ae(6));I=!1,u(),s.delete(G),a=null}}}function g(A){if(!wi(A))throw new Error(Ae(7));if(typeof A.type>"u")throw new Error(Ae(8));if(typeof A.type!="string")throw new Error(Ae(17));if(d)throw new Error(Ae(9));try{d=!0,n=i(n,A)}finally{d=!1}return(a=s).forEach(G=>{G()}),A}function v(A){if(typeof A!="function")throw new Error(Ae(10));i=A,g({type:Oi.REPLACE})}function C(){let A=h;return{subscribe(I){if(typeof I!="object"||I===null)throw new Error(Ae(11));function G(){let x=I;x.next&&x.next(m())}return G(),{unsubscribe:A(G)}},[Sd](){return this}}}return g({type:Oi.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Sd]:C}}function Uh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Oi.INIT})>"u")throw new Error(Ae(12));if(typeof r(void 0,{type:Oi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ae(13))})}function Ed(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,a;try{Uh(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],C=l[g],T=v(C,d);if(typeof T>"u"){let A=d&&d.type;throw new Error(Ae(14))}m[g]=T,u=u||T!==C}return u=u||i.length!==Object.keys(l).length,u?m:l}}function $o(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Cd(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(Ae(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=$o(...l)(n.dispatch),{...n,dispatch:a}}}function Od(t){return wi(t)&&"type"in t&&typeof t.type=="string"}var Pd=Symbol.for("immer-nothing"),wd=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function pt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var We=Object,Jr=We.getPrototypeOf,Li="constructor",Di="prototype",Ha="configurable",ki="enumerable",Ri="writable",Mo="value",Et=t=>!!t&&!!t[Ie];function Ge(t){return t?Nd(t)||Mi(t)||!!t[wd]||!!t[Li]?.[wd]||Fi(t)||Bi(t):!1}var zh=We[Di][Li].toString(),Ad=new WeakMap;function Nd(t){if(!t||!Ya(t))return!1;let e=Jr(t);if(e===null||e===We[Di])return!0;let r=We.hasOwnProperty.call(e,Li)&&e[Li];if(r===Object)return!0;if(!Xr(r))return!1;let i=Ad.get(r);return i===void 0&&(i=Function.toString.call(r),Ad.set(r,i)),i===zh}function $i(t,e,r=!0){Uo(t)===0?(r?Reflect.ownKeys(t):We.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Uo(t){let e=t[Ie];return e?e.type_:Mi(t)?1:Fi(t)?2:Bi(t)?3:0}var Ba=(t,e,r=Uo(t))=>r===2?t.has(e):We[Di].hasOwnProperty.call(t,e),Va=(t,e,r=Uo(t))=>r===2?t.get(e):t[e],Ti=(t,e,r,i=Uo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Hh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Mi=Array.isArray,Fi=t=>t instanceof Map,Bi=t=>t instanceof Set,Ya=t=>typeof t=="object",Xr=t=>typeof t=="function",Ua=t=>typeof t=="boolean";function Vh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Pt=t=>t.copy_||t.base_;var Xa=t=>t.modified_?t.copy_:t.base_;function Wa(t,e){if(Fi(t))return new Map(t);if(Bi(t))return new Set(t);if(Mi(t))return Array[Di].slice.call(t);let r=Nd(t);if(e===!0||e==="class_only"&&!r){let i=We.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[Ri]===!1&&(l[Ri]=!0,l[Ha]=!0),(l.get||l.set)&&(i[s]={[Ha]:!0,[Ri]:!0,[ki]:l[ki],[Mo]:t[s]})}return We.create(Jr(t),i)}else{let i=Jr(t);if(i!==null&&r)return{...t};let n=We.create(i);return We.assign(n,t)}}function Ja(t,e=!1){return Ui(t)||Et(t)||!Ge(t)||(Uo(t)>1&&We.defineProperties(t,{set:Ai,add:Ai,clear:Ai,delete:Ai}),We.freeze(t),e&&$i(t,(r,i)=>{Ja(i,!0)},!1)),t}function Wh(){pt(2)}var Ai={[Mo]:Wh};function Ui(t){return t===null||!Ya(t)?!0:We.isFrozen(t)}var Ii="MapSet",Ga="Patches",Rd="ArrayMethods",Dd={};function hr(t){let e=Dd[t];return e||pt(0,t),e}var _d=t=>!!Dd[t];var Fo,$d=()=>Fo,Gh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_d(Ii)?hr(Ii):void 0,arrayMethodsPlugin_:_d(Rd)?hr(Rd):void 0});function Ld(t,e){e&&(t.patchPlugin_=hr(Ga),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ja(t){Ka(t),t.drafts_.forEach(jh),t.drafts_=null}function Ka(t){t===Fo&&(Fo=t.parent_)}var kd=t=>Fo=Gh(Fo,t);function jh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Td(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(ja(e),pt(4)),Ge(t)&&(t=Id(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Id(e,r);return Kh(e,t,!0),ja(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Pd?t:void 0}function Id(t,e){if(Ui(e))return e;let r=e[Ie];if(!r)return Pi(e,t.handledSet_,t);if(!zi(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Bd(r,t)}return r.copy_}function Kh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ja(e,r)}function Md(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var zi=(t,e)=>t.scope_===e,Zh=[];function Fd(t,e,r,i){let n=Pt(t),a=t.type_;if(i!==void 0&&Va(n,i,a)===e){Ti(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;$i(n,(d,u)=>{if(Et(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??Zh;for(let l of s)Ti(n,l,r,a)}function qh(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!zi(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=Xa(a);Fd(t,a.draft_??a,s,r),Bd(a,n)})}function Bd(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Md(t)}}function Yh(t,e,r){let{scope_:i}=t;if(Et(r)){let n=r[Ie];zi(n,i)&&n.callbacks_.push(function(){_i(t);let s=Xa(n);Fd(t,r,s,e)})}else Ge(r)&&t.callbacks_.push(function(){let a=Pt(t);t.type_===3?a.has(r)&&Pi(r,i.handledSet_,i):Va(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Pi(Va(t.copy_,e,t.type_),i.handledSet_,i)})}function Pi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Et(t)||e.has(t)||!Ge(t)||Ui(t)||(e.add(t),$i(t,(i,n)=>{if(Et(n)){let a=n[Ie];if(zi(a,r)){let s=Xa(a);Ti(t,i,s,t.type_),Md(a)}}else Ge(n)&&Pi(n,e,r)})),t}function Xh(t,e){let r=Mi(t),i={type_:r?1:0,scope_:e?e.scope_:$d(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,a=Ni;r&&(n=[i],a=Bo);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var Ni={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Pt(t);if(!Ba(n,e,t.type_))return Qh(t,n,e);let a=n[e];if(t.finalized_||!Ge(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Vh(e))return a;if(a===za(t.base_,e)||Jh(t,e,a)){_i(t);let s=t.type_===1?+e:e,l=qa(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Pt(t)},ownKeys(t){return Reflect.ownKeys(Pt(t))},set(t,e,r){let i=Ud(Pt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=za(Pt(t),e),a=n?.[Ie];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Hh(r,n)&&(r!==void 0||Ba(t.base_,e,t.type_)))return!0;_i(t),Za(t)}return t.copy_[e]===r&&(r!==void 0||Ba(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Yh(t,e,r)),!0},deleteProperty(t,e){return _i(t),za(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Za(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Pt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Ri]:!0,[Ha]:t.type_!==1||e!=="length",[ki]:i[ki],[Mo]:r[e]}},defineProperty(){pt(11)},getPrototypeOf(t){return Jr(t.base_)},setPrototypeOf(){pt(12)}},Bo={};for(let t in Ni){let e=Ni[t];Bo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Bo.deleteProperty=function(t,e){return Bo.set.call(this,t,e,void 0)};Bo.set=function(t,e,r){return Ni.set.call(this,t[0],e,r,t[0])};function za(t,e){let r=t[Ie];return(r?Pt(r):t)[e]}function Jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Ge(r)||r[Ie]?!1:t.baseRefs_.has(r)}function Qh(t,e,r){let i=Ud(e,r);return i?Mo in i?i[Mo]:i.get?.call(t.draft_):void 0}function Ud(t,e){if(!(e in t))return;let r=Jr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Jr(r)}}function Za(t){t.modified_||(t.modified_=!0,t.parent_&&Za(t.parent_))}function _i(t){t.copy_||(t.assigned_=new Map,t.copy_=Wa(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var em=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Xr(e)&&!Xr(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}Xr(r)||pt(6),i!==void 0&&!Xr(i)&&pt(7);let n;if(Ge(e)){let a=kd(this),s=qa(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?ja(a):Ka(a)}return Ld(a,i),Td(n,a)}else if(!e||!Ya(e)){if(n=r(e),n===void 0&&(n=e),n===Pd&&(n=void 0),this.autoFreeze_&&Ja(n,!0),i){let a=[],s=[];hr(Ga).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else pt(1,e)},this.produceWithPatches=(e,r)=>{if(Xr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},Ua(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ua(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ua(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ge(t)||pt(8),Et(t)&&(t=zd(t));let e=kd(this),r=qa(e,t,void 0);return r[Ie].isManual_=!0,Ka(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&pt(9);let{scope_:i}=r;return Ld(i,e),Td(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=hr(Ga).applyPatches_;return Et(t)?i(t,e):this.produce(t,n=>i(n,e))}};function qa(t,e,r,i){let[n,a]=Fi(e)?hr(Ii).proxyMap_(e,r):Bi(e)?hr(Ii).proxySet_(e,r):Xh(e,r);return(r?.scope_??$d()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?qh(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function zd(t){return Et(t)||pt(10,t),Hd(t)}function Hd(t){if(!Ge(t)||Ui(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Wa(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Wa(t,!0);return $i(r,(n,a)=>{Ti(r,n,Hd(a))},i),e&&(e.finalized_=!1),r}var tm=globalThis.Iterator,OS=typeof tm?.from=="function";var rm=new em,Qa=rm.produce;function Vd(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var Wd=Vd(),Gd=Vd;var om=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$o:$o.apply(null,arguments)},TS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},im=t=>t&&typeof t.match=="function";function Vt(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Nt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Od(i)&&i.type===t,r}var Yd=class zo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,zo.prototype)}static get[Symbol.species](){return zo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new zo(...e[0].concat(this)):new zo(...e.concat(this))}};function jd(t){return Ge(t)?Qa(t,()=>{}):t}function Hi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function nm(t){return typeof t=="boolean"}var am=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new Yd;return r&&(nm(r)?s.push(Wd):s.push(Gd(r.extraArgument))),s},sm="RTK_autoBatch";var Kd=t=>e=>{setTimeout(e,t)},lm=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(n),s=setTimeout(n,e)},cm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?lm(window.requestAnimationFrame,100):Kd(10):t.type==="callback"?t.queueNotification:Kd(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[sm],a=!n,a&&(s||(s=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},dm=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Yd(t);return i&&n.push(cm(typeof i=="object"?i:void 0)),n};function Xd(t){let e=am(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(wi(r))d=Ed(r);else throw new Error(Nt(1));let u;typeof i=="function"?u=i(e):u=e();let m=$o;n&&(m=om({trace:!1,...typeof n=="object"&&n}));let h=Cd(...u),g=dm(h),v=typeof l=="function"?l(g):g(),C=m(...v);return Fa(d,s,C)}function Jd(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Nt(28));if(l in e)throw new Error(Nt(29));return e[l]=s,n},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return i=a,n}};return t(n),[e,r,i]}function pm(t){return typeof t=="function"}function um(t,e){let[r,i,n]=Jd(e),a;if(pm(t))a=()=>jd(t());else{let l=jd(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(Et(m)){let v=h(m,d);return v===void 0?m:v}else{if(Ge(m))return Qa(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},l)}return s.getInitialState=a,s}var fm=(t,e)=>im(t)?t.match(e):t(e);function hm(...t){return e=>t.some(r=>fm(r,e))}var mm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gm=(t=21)=>{let e="",r=t;for(;r--;)e+=mm[Math.random()*64|0];return e},ym=["name","message","stack","code"],es=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Zd=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},bm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of ym)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},qd="External signal was aborted",xm=(()=>{function t(e,r,i){let n=Vt(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=Vt(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=Vt(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||bm)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):gm(),C=new AbortController,T,A;function I(y){A=y,C.abort()}u&&(u.aborted?I(qd):u.addEventListener("abort",()=>I(qd),{once:!0}));let G=(async function(){let y;try{let S=i?.condition?.(d,{getState:h,extra:g});if(Sm(S)&&(S=await S),S===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let P=new Promise(($,Y)=>{T=()=>{Y({name:"AbortError",message:A||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),y=await Promise.race([P,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:C.signal,abort:I,rejectWithValue:(($,Y)=>new es($,Y)),fulfillWithValue:(($,Y)=>new Zd($,Y))})).then($=>{if($ instanceof es)throw $;return $ instanceof Zd?n($.payload,v,d,$.meta):n($,v,d)})])}catch(S){y=S instanceof es?s(null,v,d,S.payload,S.meta):s(S,v,d)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&s.match(y)&&y.meta.condition||m(y),y})();return Object.assign(G,{abort:I,requestId:v,arg:d,unwrap(){return G.then(vm)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:hm(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function vm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Sm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qd=Symbol.for("rtk-slice-createasyncthunk"),PS={[Qd]:xm};function Em(t,e){return`${t}/${e}`}function Cm({creators:t}={}){let e=t?.asyncThunk?.[Qd];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(Nt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(wm()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(y,x){let S=typeof y=="string"?y:y.type;if(!S)throw new Error(Nt(12));if(S in d.sliceCaseReducersByType)throw new Error(Nt(13));return d.sliceCaseReducersByType[S]=x,u},addMatcher(y,x){return d.sliceMatchers.push({matcher:y,reducer:x}),u},exposeAction(y,x){return d.actionCreators[y]=x,u},exposeCaseReducer(y,x){return d.sliceCaseReducersByName[y]=x,u}};l.forEach(y=>{let x=s[y],S={reducerName:y,type:Em(n,y),createNotation:typeof i.reducers=="function"};Rm(x)?Lm(S,x,u,e):Am(S,x,u)});function m(){let[y={},x=[],S=void 0]=typeof i.extraReducers=="function"?Jd(i.extraReducers):[i.extraReducers],P={...y,...d.sliceCaseReducersByType};return um(i.initialState,$=>{for(let Y in P)$.addCase(Y,P[Y]);for(let Y of d.sliceMatchers)$.addMatcher(Y.matcher,Y.reducer);for(let Y of x)$.addMatcher(Y.matcher,Y.reducer);S&&$.addDefaultCase(S)})}let h=y=>y,g=new Map,v=new WeakMap,C;function T(y,x){return C||(C=m()),C(y,x)}function A(){return C||(C=m()),C.getInitialState()}function I(y,x=!1){function S($){let Y=$[y];return typeof Y>"u"&&x&&(Y=Hi(v,S,A)),Y}function P($=h){let Y=Hi(g,x,()=>new WeakMap);return Hi(Y,$,()=>{let ce={};for(let[M,X]of Object.entries(i.selectors??{}))ce[M]=Om(X,$,()=>Hi(v,$,A),x);return ce})}return{reducerPath:y,getSelectors:P,get selectors(){return P(S)},selectSlice:S}}let G={name:n,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:A,...I(a),injectInto(y,{reducerPath:x,...S}={}){let P=x??a;return y.inject({reducerPath:P,reducer:T},S),{...G,...I(P,!0)}}};return G}}function Om(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var ep=Cm();function wm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Am({type:t,reducerName:e,createNotation:r},i,n){let a,s;if("reducer"in i){if(r&&!_m(i))throw new Error(Nt(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Vt(t,s):Vt(t))}function Rm(t){return t._reducerDefinitionType==="asyncThunk"}function _m(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Lm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Nt(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||Vi,pending:l||Vi,rejected:d||Vi,settled:u||Vi})}function Vi(){}var tp="listener",rp="completed",op="cancelled",NS=`task-${op}`,DS=`task-${rp}`,$S=`${tp}-${op}`,MS=`${tp}-${rp}`;var{assign:ip}=Object;var ts="listenerMiddleware";var km=ip(Vt(`${ts}/add`),{withTypes:()=>km}),FS=Vt(`${ts}/removeAll`),Tm=ip(Vt(`${ts}/remove`),{withTypes:()=>Tm});function Nt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var mr=class t extends kt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Yr(a))return a;if(n==null)return;let s=ep({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Xd({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=st(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new No,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];he(g,m)||this.setState({[h]:n(m)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Im(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Yr(e)&&e.clear()}var Wi=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);et(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 Pm(t,e,r){return new Wi(t,e,r).watch()}var Ho=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ns={};j(ns,{scrollHelper:()=>Nm});var os,Gi=new Map,is=class{lock(e,r){if(r){let i=Gi.get(r);if(i==null||i===e)return Gi.set(r,e),r}}release(e,r){r&&Gi.get(r)===e&&Gi.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of zn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=or(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(os=window.FluidTopicsScrollHelper)!==null&&os!==void 0?os:new is;var Nm=window.FluidTopicsScrollHelper;var ls={};j(ls,{toFtFormComponent:()=>ss});var as=Symbol("elementInternals"),ss=we(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[as].form}constructor(...i){super(i),this[as]=this.attachInternals()}setFormValue(i){this[as].setFormValue(i)}}return e});var cs={};j(cs,{DateFormatter:()=>gr});var gr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ps={};j(ps,{ALL_KEYS_VALUE:()=>ds,SameWindowStorageEvent:()=>Qr});var ds="__all__",Qr=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ds}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Qr(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Qr(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Qr(ds))}});var fs={};j(fs,{FocusMainContentEvent:()=>us});var us=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var np={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Dm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function $m(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Dm);document.addEventListener("click",$m);var ji=O`
47
+ `;var vd={};var Ma={};j(Ma,{ParametrizedLabelResolver:()=>zt});var zt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var os={};j(os,{FtCommandQueue:()=>No,FtLitElementRedux:()=>fr,FtReduxStore:()=>mr,FtStateManager:()=>Vo,ReduxWatcher:()=>Gi,clearAllStores:()=>Im,isFtReduxStore:()=>Yr,redux:()=>qr,reduxEventListener:()=>Mh,reduxReactive:()=>$h,watch:()=>Pm,withRedux:()=>Sd});var $h=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},qr=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:et,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},Mh=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var No=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Yr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Do=Symbol("internalReduxEventsUnsubscribers"),Vt=Symbol("internalStoresUnsubscribers"),ur=Symbol("internalStores"),Sd=we(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[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 u=this.getStore(s.store);u&&(s.store?this[Vt].has(s.store):this[Vt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Vt].set(s,l.subscribe(()=>this.updateFromStores())),this[Do].set(s,[]),Yr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[Do].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Vt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Vt].has(s)&&this[Vt].get(s)(),this[Vt].delete(s),(l=this[Do].get(s))===null||l===void 0||l.forEach(d=>d()),this[Do].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vt,r=ur,i=Do,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fr=class extends Sd(N){};function Ae(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 Fh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ed=Fh,Fa=()=>Math.random().toString(36).substring(7).split("").join("."),Bh={INIT:`@@redux/INIT${Fa()}`,REPLACE:`@@redux/REPLACE${Fa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fa()}`},Oi=Bh;function wi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Ba(t,e,r){if(typeof t!="function")throw new Error(Ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ae(1));return r(Ba)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((A,P)=>{s.set(P,A)}))}function m(){if(d)throw new Error(Ae(3));return n}function h(A){if(typeof A!="function")throw new Error(Ae(4));if(d)throw new Error(Ae(5));let P=!0;u();let G=l++;return s.set(G,A),function(){if(P){if(d)throw new Error(Ae(6));P=!1,u(),s.delete(G),a=null}}}function g(A){if(!wi(A))throw new Error(Ae(7));if(typeof A.type>"u")throw new Error(Ae(8));if(typeof A.type!="string")throw new Error(Ae(17));if(d)throw new Error(Ae(9));try{d=!0,n=i(n,A)}finally{d=!1}return(a=s).forEach(G=>{G()}),A}function v(A){if(typeof A!="function")throw new Error(Ae(10));i=A,g({type:Oi.REPLACE})}function C(){let A=h;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(Ae(11));function G(){let y=P;y.next&&y.next(m())}return G(),{unsubscribe:A(G)}},[Ed](){return this}}}return g({type:Oi.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Ed]:C}}function Uh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Oi.INIT})>"u")throw new Error(Ae(12));if(typeof r(void 0,{type:Oi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ae(13))})}function Ua(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,a;try{Uh(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],C=l[g],I=v(C,d);if(typeof I>"u"){let A=d&&d.type;throw new Error(Ae(14))}m[g]=I,u=u||I!==C}return u=u||i.length!==Object.keys(l).length,u?m:l}}function $o(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Cd(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(Ae(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=$o(...l)(n.dispatch),{...n,dispatch:a}}}function Od(t){return wi(t)&&"type"in t&&typeof t.type=="string"}var Pd=Symbol.for("immer-nothing"),wd=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function pt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var We=Object,Jr=We.getPrototypeOf,Li="constructor",Di="prototype",Wa="configurable",ki="enumerable",Ri="writable",Mo="value",Ct=t=>!!t&&!!t[Ie];function Ge(t){return t?Nd(t)||Mi(t)||!!t[wd]||!!t[Li]?.[wd]||Fi(t)||Bi(t):!1}var zh=We[Di][Li].toString(),Ad=new WeakMap;function Nd(t){if(!t||!Ja(t))return!1;let e=Jr(t);if(e===null||e===We[Di])return!0;let r=We.hasOwnProperty.call(e,Li)&&e[Li];if(r===Object)return!0;if(!Xr(r))return!1;let i=Ad.get(r);return i===void 0&&(i=Function.toString.call(r),Ad.set(r,i)),i===zh}function $i(t,e,r=!0){Uo(t)===0?(r?Reflect.ownKeys(t):We.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Uo(t){let e=t[Ie];return e?e.type_:Mi(t)?1:Fi(t)?2:Bi(t)?3:0}var za=(t,e,r=Uo(t))=>r===2?t.has(e):We[Di].hasOwnProperty.call(t,e),Ga=(t,e,r=Uo(t))=>r===2?t.get(e):t[e],Ti=(t,e,r,i=Uo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Vh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Mi=Array.isArray,Fi=t=>t instanceof Map,Bi=t=>t instanceof Set,Ja=t=>typeof t=="object",Xr=t=>typeof t=="function",Va=t=>typeof t=="boolean";function Hh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Nt=t=>t.copy_||t.base_;var Qa=t=>t.modified_?t.copy_:t.base_;function ja(t,e){if(Fi(t))return new Map(t);if(Bi(t))return new Set(t);if(Mi(t))return Array[Di].slice.call(t);let r=Nd(t);if(e===!0||e==="class_only"&&!r){let i=We.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[Ri]===!1&&(l[Ri]=!0,l[Wa]=!0),(l.get||l.set)&&(i[s]={[Wa]:!0,[Ri]:!0,[ki]:l[ki],[Mo]:t[s]})}return We.create(Jr(t),i)}else{let i=Jr(t);if(i!==null&&r)return{...t};let n=We.create(i);return We.assign(n,t)}}function Ui(t,e=!1){return zi(t)||Ct(t)||!Ge(t)||(Uo(t)>1&&We.defineProperties(t,{set:Ai,add:Ai,clear:Ai,delete:Ai}),We.freeze(t),e&&$i(t,(r,i)=>{Ui(i,!0)},!1)),t}function Wh(){pt(2)}var Ai={[Mo]:Wh};function zi(t){return t===null||!Ja(t)?!0:We.isFrozen(t)}var Ii="MapSet",Ka="Patches",Rd="ArrayMethods",Dd={};function hr(t){let e=Dd[t];return e||pt(0,t),e}var _d=t=>!!Dd[t];var Fo,$d=()=>Fo,Gh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_d(Ii)?hr(Ii):void 0,arrayMethodsPlugin_:_d(Rd)?hr(Rd):void 0});function Ld(t,e){e&&(t.patchPlugin_=hr(Ka),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Za(t){qa(t),t.drafts_.forEach(jh),t.drafts_=null}function qa(t){t===Fo&&(Fo=t.parent_)}var kd=t=>Fo=Gh(Fo,t);function jh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Td(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(Za(e),pt(4)),Ge(t)&&(t=Id(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Id(e,r);return Kh(e,t,!0),Za(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Pd?t:void 0}function Id(t,e){if(zi(e))return e;let r=e[Ie];if(!r)return Pi(e,t.handledSet_,t);if(!Vi(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Bd(r,t)}return r.copy_}function Kh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ui(e,r)}function Md(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Vi=(t,e)=>t.scope_===e,Zh=[];function Fd(t,e,r,i){let n=Nt(t),a=t.type_;if(i!==void 0&&Ga(n,i,a)===e){Ti(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;$i(n,(d,u)=>{if(Ct(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??Zh;for(let l of s)Ti(n,l,r,a)}function qh(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!Vi(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=Qa(a);Fd(t,a.draft_??a,s,r),Bd(a,n)})}function Bd(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Md(t)}}function Yh(t,e,r){let{scope_:i}=t;if(Ct(r)){let n=r[Ie];Vi(n,i)&&n.callbacks_.push(function(){_i(t);let s=Qa(n);Fd(t,r,s,e)})}else Ge(r)&&t.callbacks_.push(function(){let a=Nt(t);t.type_===3?a.has(r)&&Pi(r,i.handledSet_,i):Ga(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Pi(Ga(t.copy_,e,t.type_),i.handledSet_,i)})}function Pi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ct(t)||e.has(t)||!Ge(t)||zi(t)||(e.add(t),$i(t,(i,n)=>{if(Ct(n)){let a=n[Ie];if(Vi(a,r)){let s=Qa(a);Ti(t,i,s,t.type_),Md(a)}}else Ge(n)&&Pi(n,e,r)})),t}function Xh(t,e){let r=Mi(t),i={type_:r?1:0,scope_:e?e.scope_:$d(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,a=Ni;r&&(n=[i],a=Bo);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var Ni={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Nt(t);if(!za(n,e,t.type_))return Qh(t,n,e);let a=n[e];if(t.finalized_||!Ge(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Hh(e))return a;if(a===Ha(t.base_,e)||Jh(t,e,a)){_i(t);let s=t.type_===1?+e:e,l=Xa(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Nt(t)},ownKeys(t){return Reflect.ownKeys(Nt(t))},set(t,e,r){let i=Ud(Nt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=Ha(Nt(t),e),a=n?.[Ie];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Vh(r,n)&&(r!==void 0||za(t.base_,e,t.type_)))return!0;_i(t),Ya(t)}return t.copy_[e]===r&&(r!==void 0||za(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Yh(t,e,r)),!0},deleteProperty(t,e){return _i(t),Ha(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Ya(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Nt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Ri]:!0,[Wa]:t.type_!==1||e!=="length",[ki]:i[ki],[Mo]:r[e]}},defineProperty(){pt(11)},getPrototypeOf(t){return Jr(t.base_)},setPrototypeOf(){pt(12)}},Bo={};for(let t in Ni){let e=Ni[t];Bo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Bo.deleteProperty=function(t,e){return Bo.set.call(this,t,e,void 0)};Bo.set=function(t,e,r){return Ni.set.call(this,t[0],e,r,t[0])};function Ha(t,e){let r=t[Ie];return(r?Nt(r):t)[e]}function Jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Ge(r)||r[Ie]?!1:t.baseRefs_.has(r)}function Qh(t,e,r){let i=Ud(e,r);return i?Mo in i?i[Mo]:i.get?.call(t.draft_):void 0}function Ud(t,e){if(!(e in t))return;let r=Jr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Jr(r)}}function Ya(t){t.modified_||(t.modified_=!0,t.parent_&&Ya(t.parent_))}function _i(t){t.copy_||(t.assigned_=new Map,t.copy_=ja(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var em=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Xr(e)&&!Xr(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}Xr(r)||pt(6),i!==void 0&&!Xr(i)&&pt(7);let n;if(Ge(e)){let a=kd(this),s=Xa(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?Za(a):qa(a)}return Ld(a,i),Td(n,a)}else if(!e||!Ja(e)){if(n=r(e),n===void 0&&(n=e),n===Pd&&(n=void 0),this.autoFreeze_&&Ui(n,!0),i){let a=[],s=[];hr(Ka).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else pt(1,e)},this.produceWithPatches=(e,r)=>{if(Xr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},Va(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Va(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Va(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ge(t)||pt(8),Ct(t)&&(t=zd(t));let e=kd(this),r=Xa(e,t,void 0);return r[Ie].isManual_=!0,qa(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&pt(9);let{scope_:i}=r;return Ld(i,e),Td(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=hr(Ka).applyPatches_;return Ct(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Xa(t,e,r,i){let[n,a]=Fi(e)?hr(Ii).proxyMap_(e,r):Bi(e)?hr(Ii).proxySet_(e,r):Xh(e,r);return(r?.scope_??$d()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?qh(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function zd(t){return Ct(t)||pt(10,t),Vd(t)}function Vd(t){if(!Ge(t)||zi(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ja(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ja(t,!0);return $i(r,(n,a)=>{Ti(r,n,Vd(a))},i),e&&(e.finalized_=!1),r}var tm=globalThis.Iterator,OS=typeof tm?.from=="function";var rm=new em,es=rm.produce;function Hd(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var Wd=Hd(),Gd=Hd;var om=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$o:$o.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var im=t=>t&&typeof t.match=="function";function Ht(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Ot(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Od(i)&&i.type===t,r}var Yd=class zo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,zo.prototype)}static get[Symbol.species](){return zo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new zo(...e[0].concat(this)):new zo(...e.concat(this))}};function jd(t){return Ge(t)?es(t,()=>{}):t}function Hi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function nm(t){return typeof t=="boolean"}var am=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new Yd;return r&&(nm(r)?s.push(Wd):s.push(Gd(r.extraArgument))),s},sm="RTK_autoBatch";var Kd=t=>e=>{setTimeout(e,t)},lm=(t,e)=>r=>{let i=!1,n,a,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(a),r())};n=t(s),a=setTimeout(s,e)},cm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?lm(window.requestAnimationFrame,100):Kd(10):t.type==="callback"?t.queueNotification:Kd(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[sm],a=!n,a&&(s||(s=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},dm=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Yd(t);return i&&n.push(cm(typeof i=="object"?i:void 0)),n};function Xd(t){let e=am(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(wi(r))d=Ua(r);else throw new Error(Ot(1));let u;typeof i=="function"?u=i(e):u=e();let m=$o;n&&(m=om({trace:!1,...typeof n=="object"&&n}));let h=Cd(...u),g=dm(h),v=typeof l=="function"?l(g):g(),C=m(...v);return Ba(d,s,C)}function Jd(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ot(28));if(l in e)throw new Error(Ot(29));return e[l]=s,n},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return i=a,n}};return t(n),[e,r,i]}function pm(t){return typeof t=="function"}function um(t,e){let[r,i,n]=Jd(e),a;if(pm(t))a=()=>jd(t());else{let l=jd(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(Ct(m)){let g=h(m,d);return g===void 0?m:g}else{if(Ge(m))return es(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw new Error(Ot(9))}return g}}return m},l)}return s.getInitialState=a,s}var fm=(t,e)=>im(t)?t.match(e):t(e);function hm(...t){return e=>t.some(r=>fm(r,e))}var mm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gm=(t=21)=>{let e="",r=t;for(;r--;)e+=mm[Math.random()*64|0];return e},ym=["name","message","stack","code"],ts=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Zd=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},bm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of ym)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},qd="External signal was aborted",xm=(()=>{function t(e,r,i){let n=Ht(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=Ht(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=Ht(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||bm)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):gm(),C=new AbortController,I,A;function P(b){A=b,C.abort()}u&&(u.aborted?P(qd):u.addEventListener("abort",()=>P(qd),{once:!0}));let G=(async function(){let b;try{let y=i?.condition?.(d,{getState:h,extra:g});if(Sm(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(C.signal.aborted)throw{name:"AbortError",message:A||"Aborted"};let S=new Promise((T,z)=>{I=()=>{z({name:"AbortError",message:A||"Aborted"})},C.signal.addEventListener("abort",I,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),b=await Promise.race([S,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:C.signal,abort:P,rejectWithValue:((T,z)=>new ts(T,z)),fulfillWithValue:((T,z)=>new Zd(T,z))})).then(T=>{if(T instanceof ts)throw T;return T instanceof Zd?n(T.payload,v,d,T.meta):n(T,v,d)})])}catch(y){b=y instanceof ts?s(null,v,d,y.payload,y.meta):s(y,v,d)}finally{I&&C.signal.removeEventListener("abort",I)}return i&&!i.dispatchConditionRejection&&s.match(b)&&b.meta.condition||m(b),b})();return Object.assign(G,{abort:P,requestId:v,arg:d,unwrap(){return G.then(vm)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:hm(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function vm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Sm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qd=Symbol.for("rtk-slice-createasyncthunk"),IS={[Qd]:xm};function Em(t,e){return`${t}/${e}`}function Cm({creators:t}={}){let e=t?.asyncThunk?.[Qd];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(Ot(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(wm()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(b,y){let S=typeof b=="string"?b:b.type;if(!S)throw new Error(Ot(12));if(S in d.sliceCaseReducersByType)throw new Error(Ot(13));return d.sliceCaseReducersByType[S]=y,u},addMatcher(b,y){return d.sliceMatchers.push({matcher:b,reducer:y}),u},exposeAction(b,y){return d.actionCreators[b]=y,u},exposeCaseReducer(b,y){return d.sliceCaseReducersByName[b]=y,u}};l.forEach(b=>{let y=s[b],S={reducerName:b,type:Em(n,b),createNotation:typeof i.reducers=="function"};Rm(y)?Lm(S,y,u,e):Am(S,y,u)});function m(){let[b={},y=[],S=void 0]=typeof i.extraReducers=="function"?Jd(i.extraReducers):[i.extraReducers],T={...b,...d.sliceCaseReducersByType};return um(i.initialState,z=>{for(let Q in T)z.addCase(Q,T[Q]);for(let Q of d.sliceMatchers)z.addMatcher(Q.matcher,Q.reducer);for(let Q of y)z.addMatcher(Q.matcher,Q.reducer);S&&z.addDefaultCase(S)})}let h=b=>b,g=new Map,v=new WeakMap,C;function I(b,y){return C||(C=m()),C(b,y)}function A(){return C||(C=m()),C.getInitialState()}function P(b,y=!1){function S(z){let Q=z[b];return typeof Q>"u"&&y&&(Q=Hi(v,S,A)),Q}function T(z=h){return Hi(Hi(g,y,()=>new WeakMap),z,()=>{let Q={};for(let[ue,$]of Object.entries(i.selectors??{}))Q[ue]=Om($,z,()=>Hi(v,z,A),y);return Q})}return{reducerPath:b,getSelectors:T,get selectors(){return T(S)},selectSlice:S}}let G={name:n,reducer:I,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:A,...P(a),injectInto(b,{reducerPath:y,...S}={}){let T=y??a;return b.inject({reducerPath:T,reducer:I},S),{...G,...P(T,!0)}}};return G}}function Om(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var ep=Cm();function wm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Am({type:t,reducerName:e,createNotation:r},i,n){let a,s;if("reducer"in i){if(r&&!_m(i))throw new Error(Ot(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Ht(t,s):Ht(t))}function Rm(t){return t._reducerDefinitionType==="asyncThunk"}function _m(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Lm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Ot(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||Wi,pending:l||Wi,rejected:d||Wi,settled:u||Wi})}function Wi(){}var tp="listener",rp="completed",op="cancelled",PS=`task-${op}`,NS=`task-${rp}`,DS=`${tp}-${op}`,$S=`${tp}-${rp}`;var{assign:ip}=Object;var rs="listenerMiddleware";var km=ip(Ht(`${rs}/add`),{withTypes:()=>km}),MS=Ht(`${rs}/removeAll`),Tm=ip(Ht(`${rs}/remove`),{withTypes:()=>Tm});function Ot(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var mr=class t extends Tt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Yr(a))return a;if(n==null)return;let s=ep({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Xd({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=st(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new No,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];he(g,m)||this.setState({[h]:n(m)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Im(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Yr(e)&&e.clear()}var Gi=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);et(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 Pm(t,e,r){return new Gi(t,e,r).watch()}var Vo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var as={};j(as,{scrollHelper:()=>Nm});var is,ji=new Map,ns=class{lock(e,r){if(r){let i=ji.get(r);if(i==null||i===e)return ji.set(r,e),r}}release(e,r){r&&ji.get(r)===e&&ji.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Vn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=or(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(is=window.FluidTopicsScrollHelper)!==null&&is!==void 0?is:new ns;var Nm=window.FluidTopicsScrollHelper;var cs={};j(cs,{toFtFormComponent:()=>ls});var ss=Symbol("elementInternals"),ls=we(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ss].form}constructor(...i){super(i),this[ss]=this.attachInternals()}setFormValue(i){this[ss].setFormValue(i)}}return e});var ds={};j(ds,{DateFormatter:()=>gr});var gr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var us={};j(us,{ALL_KEYS_VALUE:()=>ps,SameWindowStorageEvent:()=>Qr});var ps="__all__",Qr=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ps}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Qr(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Qr(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Qr(ps))}});var hs={};j(hs,{FocusMainContentEvent:()=>fs});var fs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var np={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Dm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function $m(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Dm);document.addEventListener("click",$m);var Ki=O`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,20 +68,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var ms={};j(ms,{withAriaNotification:()=>hs});var Mm={checkVisibility:!0},hs=we(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Mm,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new So({type:"aria",message:i})))},20)}}return e});var gs={};j(gs,{withConditionalVisibility:()=>Fm});var ap=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Fm(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return ap([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),ap([_()],e.prototype,"isVisible",void 0),e}var bs={};j(bs,{FormController:()=>ys});function Bm(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var ys=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Bm(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=Zn(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var vs={};j(vs,{MetadataValueLocalizer:()=>xs});var xs=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};function Ss(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function yr(t,e,r){return t?e(t):r?.(t)}var Ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},br;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(br||(br={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Es=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var CE=we(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=br.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}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.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==Wt.default&&this.validateOn===br.blurWithStatusResolutionOnInput||this.validateOn===br.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ss(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ss(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Es(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
71
+ `;var gs={};j(gs,{withAriaNotification:()=>ms});var Mm={checkVisibility:!0},ms=we(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Mm,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new So({type:"aria",message:i})))},20)}}return e});var ys={};j(ys,{withConditionalVisibility:()=>Fm});var ap=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Fm(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return ap([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),ap([_()],e.prototype,"isVisible",void 0),e}var xs={};j(xs,{FormController:()=>bs});function Bm(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var bs=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Bm(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=qn(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Ss={};j(Ss,{MetadataValueLocalizer:()=>vs});var vs=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};function Es(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function yr(t,e,r){return t?e(t):r?.(t)}var Ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},br;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(br||(br={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Cs=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var EE=we(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=br.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}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.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==Wt.default&&this.validateOn===br.blurWithStatusResolutionOnInput||this.validateOn===br.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Es(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Es(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Cs(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
- ${fe(this.errorMessages,i=>b`
74
+ ${fe(this.errorMessages,i=>x`
75
75
  <li>${i}</li>
76
76
  `)}
77
- ${fe(this.warningMessages,i=>b`
77
+ ${fe(this.warningMessages,i=>x`
78
78
  <li>${i}</li>
79
79
  `)}
80
- ${yr(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
80
+ ${yr(!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?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}}return Ee([f()],e.prototype,"warningRules",void 0),Ee([f()],e.prototype,"errorRules",void 0),Ee([f()],e.prototype,"validateOn",void 0),Ee([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Ee([f()],e.prototype,"label",void 0),Ee([f({type:Boolean})],e.prototype,"hideLabel",void 0),Ee([f()],e.prototype,"name",void 0),Ee([f({type:Boolean})],e.prototype,"disabled",void 0),Ee([f()],e.prototype,"helperText",void 0),Ee([f()],e.prototype,"forceStatus",void 0),Ee([f({reflect:!0})],e.prototype,"value",void 0),Ee([_()],e.prototype,"errorMessages",void 0),Ee([_()],e.prototype,"warningMessages",void 0),Ee([_()],e.prototype,"status",void 0),Ee([_()],e.prototype,"focused",void 0),Ee([_()],e.prototype,"additionalWarningRules",void 0),Ee([_()],e.prototype,"additionalErrorRules",void 0),Ee([_()],e.prototype,"forceErrorMessages",void 0),e});var Vo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),Vo(i,e);return!0},Ki=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},sp=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),Vm(e)}};function zm(t){this._$AN!==void 0?(Ki(this),this._$AM=t,sp(this)):this._$AM=t}function Hm(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)Vo(i[a],!1),Ki(i[a]);else i!=null&&(Vo(i,!1),Ki(i));else Vo(this,t)}var Vm=t=>{t.type==yt.CHILD&&(t._$AP??=Hm,t._$AQ??=zm)},eo=class extends Qe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),sp(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Vo(this,e),Ki(this))}setValue(e){if(Sl(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 Cs=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 i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Se}update(e){return this.part=e,this.ensureFocusTrap(e.element),Se}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Je&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},qE=He(Cs);var lp;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(lp||(lp={}));var Wm={sm:640,md:768,lg:1024,xl:1280},Os=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,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>k);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:Wm[e]}},QE=He(Os);var Gm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ws=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Zi(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let u=e[n];this.dispatchEvent(new ws({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,Gm([se({})],r.prototype,"configuredAnalyticsActions",void 0),r}var As,Rs,_s,Ls,xr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((_s=(Rs=(As=window.safari)===null||As===void 0?void 0:As.pushNotification)===null||Rs===void 0?void 0:Rs.toString())!==null&&_s!==void 0?_s:"")==="[object SafariRemoteNotification]",ks="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ls=window.ftGlobals)!==null&&Ls!==void 0?Ls:{lit:wn,litDecorators:Ln,litRepeat:kn,litClassMap:Tn,litStyleMap:In,litUnsafeHTML:Nn,wcUtils:{...Dn,...jn,...Mn,...ra,...cs,...oa,...Fn,...sa,...Gn,...Ea,...fs,...np,...ns,...Ca,...aa,...La,...ls,...Ra,...ms,...gs,...yd,...Hn,...Ia,...vs,...la,...Da,...ji,...xd,...$a,...rs,...ps,...Oa,...Aa,...Yn,...Qn,...bs,isSafari:xr,isTouchScreen:ks,setVariable:w}};var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var cp=O`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}}return Ee([f()],e.prototype,"warningRules",void 0),Ee([f()],e.prototype,"errorRules",void 0),Ee([f()],e.prototype,"validateOn",void 0),Ee([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Ee([f()],e.prototype,"label",void 0),Ee([f({type:Boolean})],e.prototype,"hideLabel",void 0),Ee([f()],e.prototype,"name",void 0),Ee([f({type:Boolean})],e.prototype,"disabled",void 0),Ee([f()],e.prototype,"helperText",void 0),Ee([f()],e.prototype,"forceStatus",void 0),Ee([f({reflect:!0})],e.prototype,"value",void 0),Ee([_()],e.prototype,"errorMessages",void 0),Ee([_()],e.prototype,"warningMessages",void 0),Ee([_()],e.prototype,"status",void 0),Ee([_()],e.prototype,"focused",void 0),Ee([_()],e.prototype,"additionalWarningRules",void 0),Ee([_()],e.prototype,"additionalErrorRules",void 0),Ee([_()],e.prototype,"forceErrorMessages",void 0),e});var Ho=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),Ho(i,e);return!0},Zi=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},sp=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),Hm(e)}};function zm(t){this._$AN!==void 0?(Zi(this),this._$AM=t,sp(this)):this._$AM=t}function Vm(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)Ho(i[a],!1),Zi(i[a]);else i!=null&&(Ho(i,!1),Zi(i));else Ho(this,t)}var Hm=t=>{t.type==bt.CHILD&&(t._$AP??=Vm,t._$AQ??=zm)},eo=class extends Qe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),sp(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ho(this,e),Zi(this))}setValue(e){if(El(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 Os=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 i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Se}update(e){return this.part=e,this.ensureFocusTrap(e.element),Se}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Je&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},ZE=Ve(Os);var lp;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(lp||(lp={}));var Wm={sm:640,md:768,lg:1024,xl:1280},ws=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,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>k);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:Wm[e]}},JE=Ve(ws);var Gm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},As=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function qi(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let u=e[n];this.dispatchEvent(new As({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,Gm([se({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Rs,_s,Ls,ks,xr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ls=(_s=(Rs=window.safari)===null||Rs===void 0?void 0:Rs.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Ls!==void 0?Ls:"")==="[object SafariRemoteNotification]",Ts="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ks=window.ftGlobals)!==null&&ks!==void 0?ks:{lit:An,litDecorators:kn,litRepeat:Tn,litClassMap:In,litStyleMap:Pn,litUnsafeHTML:Dn,wcUtils:{...$n,...Kn,...Fn,...oa,...ds,...ia,...Bn,...la,...jn,...Ca,...hs,...np,...as,...Oa,...sa,...ka,...cs,..._a,...gs,...ys,...bd,...Hn,...Pa,...Ss,...ca,...$a,...Ki,...vd,...Ma,...os,...us,...wa,...Ra,...Xn,...ea,...xs,isSafari:xr,isTouchScreen:Ts,setVariable:w}};var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var cp=O`
85
85
  .ft-size-watcher--pixel {
86
86
  width: 0;
87
87
  height: 0;
@@ -100,11 +100,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
100
100
  .ft-size-watcher--local .ft-size-watcher--watcher {
101
101
  width: 100%;
102
102
  }
103
- `;var Wo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ts=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},je=class extends N{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=rt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ee}render(){return b`
103
+ `;var Wo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Is=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},je=class extends N{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=rt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ee}render(){return x`
104
104
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
105
105
  <div class="ft-size-watcher--watcher"></div>
106
106
  </div>
107
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new Ts(this.size,this.category)))},this.debounceTimeout)}};je.elementDefinitions={};je.styles=cp;Wo([f({type:Number})],je.prototype,"debounceTimeout",void 0);Wo([f({type:Boolean})],je.prototype,"local",void 0);Wo([f({type:Number,reflect:!0})],je.prototype,"size",void 0);Wo([f({type:String,reflect:!0})],je.prototype,"category",void 0);Wo([D(".ft-size-watcher--watcher")],je.prototype,"watcher",void 0);var dp={"ft-size-watcher":je};W(dp);var up=Symbol.for(""),jm=t=>{if(t?.r===up)return t?._$litStatic$},Is=t=>({_$litStatic$:t,r:up});var pp=new Map,Ps=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=jm(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=pp.get(h))===void 0&&(s.raw=s,pp.set(h,e=s)),r=l}return t(e,...r)},Ns=Ps(b),yO=Ps(vn),bO=Ps(Sn);var ye;(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"})(ye||(ye={}));var fp=o.extend("--ft-typography-font-family","",E.titleFont),Dt=o.extend("--ft-typography-font-family","",E.contentFont),L={fontFamily:Dt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},vr={fontFamily:o.extend("--ft-typography-title-font-family","",fp),fontSize:o.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",L.textDecoration,"inherit")},Sr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",fp),fontSize:o.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",L.textDecoration,"inherit")},Er={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Dt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",L.textDecoration,"inherit")},Cr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Dt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",L.textDecoration,"inherit")},Ct={fontFamily:o.extend("--ft-typography-body1-font-family","",Dt),fontSize:o.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",L.textDecoration,"inherit")},be={fontFamily:o.extend("--ft-typography-body2-font-family","",Dt),fontSize:o.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",L.textDecoration,"inherit")},Be={fontFamily:o.extend("--ft-typography-caption-font-family","",Dt),fontSize:o.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",L.textDecoration,"inherit")},Or={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Dt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",L.textDecoration,"inherit")},wr={fontFamily:o.extend("--ft-typography-overline-font-family","",Dt),fontSize:o.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",L.textDecoration,"inherit")},ut={fontFamily:o.extend("--ft-typography-button-font-family","",Dt),fontSize:o.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",L.textDecoration,"inherit")},hp=O`
107
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new Is(this.size,this.category)))},this.debounceTimeout)}};je.elementDefinitions={};je.styles=cp;Wo([f({type:Number})],je.prototype,"debounceTimeout",void 0);Wo([f({type:Boolean})],je.prototype,"local",void 0);Wo([f({type:Number,reflect:!0})],je.prototype,"size",void 0);Wo([f({type:String,reflect:!0})],je.prototype,"category",void 0);Wo([D(".ft-size-watcher--watcher")],je.prototype,"watcher",void 0);var dp={"ft-size-watcher":je};W(dp);var up=Symbol.for(""),jm=t=>{if(t?.r===up)return t?._$litStatic$},Ps=t=>({_$litStatic$:t,r:up});var pp=new Map,Ns=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=jm(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=pp.get(h))===void 0&&(s.raw=s,pp.set(h,e=s)),r=l}return t(e,...r)},Ds=Ns(x),gO=Ns(Sn),yO=Ns(En);var ye;(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"})(ye||(ye={}));var fp=o.extend("--ft-typography-font-family","",E.titleFont),Dt=o.extend("--ft-typography-font-family","",E.contentFont),L={fontFamily:Dt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},vr={fontFamily:o.extend("--ft-typography-title-font-family","",fp),fontSize:o.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",L.textDecoration,"inherit")},Sr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",fp),fontSize:o.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",L.textDecoration,"inherit")},Er={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Dt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",L.textDecoration,"inherit")},Cr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Dt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",L.textDecoration,"inherit")},wt={fontFamily:o.extend("--ft-typography-body1-font-family","",Dt),fontSize:o.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",L.textDecoration,"inherit")},be={fontFamily:o.extend("--ft-typography-body2-font-family","",Dt),fontSize:o.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",L.textDecoration,"inherit")},Be={fontFamily:o.extend("--ft-typography-caption-font-family","",Dt),fontSize:o.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",L.textDecoration,"inherit")},Or={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Dt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",L.textDecoration,"inherit")},wr={fontFamily:o.extend("--ft-typography-overline-font-family","",Dt),fontSize:o.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",L.textDecoration,"inherit")},ut={fontFamily:o.extend("--ft-typography-button-font-family","",Dt),fontSize:o.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",L.textDecoration,"inherit")},hp=O`
108
108
  .ft-typography--title {
109
109
  font-family: ${vr.fontFamily};
110
110
  font-size: ${vr.fontSize};
@@ -147,13 +147,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
147
147
 
148
148
  `,bp=O`
149
149
  .ft-typography--body1 {
150
- font-family: ${Ct.fontFamily};
151
- font-size: ${Ct.fontSize};
152
- font-weight: ${Ct.fontWeight};
153
- letter-spacing: ${Ct.letterSpacing};
154
- line-height: ${Ct.lineHeight};
155
- text-transform: ${Ct.textTransform};
156
- text-decoration: ${Ct.textDecoration};
150
+ font-family: ${wt.fontFamily};
151
+ font-size: ${wt.fontSize};
152
+ font-weight: ${wt.fontWeight};
153
+ letter-spacing: ${wt.letterSpacing};
154
+ line-height: ${wt.lineHeight};
155
+ text-transform: ${wt.textTransform};
156
+ text-decoration: ${wt.textDecoration};
157
157
  }
158
158
  `,to=O`
159
159
  .ft-typography--body2 {
@@ -209,15 +209,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
209
209
  .ft-typography {
210
210
  vertical-align: inherit;
211
211
  }
212
- `;var Cp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends N{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Ns`
213
- <${Is(this.element)}
212
+ `;var Cp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},re=class extends N{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Ds`
213
+ <${Ps(this.element)}
214
214
  part="text"
215
215
  class="ft-typography ft-typography--${this.variant}">
216
216
  <slot></slot>
217
- </${Is(this.element)}>
218
- `:Ns`
217
+ </${Ps(this.element)}>
218
+ `:Ds`
219
219
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
220
- `}};te.styles=[hp,mp,gp,yp,bp,to,Gt,xp,vp,Sp,Ep];Cp([f()],te.prototype,"element",void 0);Cp([f()],te.prototype,"variant",void 0);var Op={"ft-typography":te};W(Op);function qi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function wp(t){return qi(t).split("|").pop()}function Ap(t){return qi(t).split("|").join(" > ")}function Rp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Rp(r,t.selected)),value:t.value}}function _p(t){return Ve(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ds(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Rp(e,!1))}}function Lp(t){return Ve(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var kp=o.extend("--ft-ripple-color","",E.colorContent),re={color:kp,backgroundColor:o.extend("--ft-ripple-background-color","",kp),opacityContentOnSurfacePressed:o.external(E.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(E.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(E.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(E.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Tp=o.extend("--ft-ripple-color","",E.colorPrimary),Ip={color:Tp,backgroundColor:o.extend("--ft-ripple-background-color","",Tp)},Pp=o.extend("--ft-ripple-color","",E.colorSecondary),Np={color:Pp,backgroundColor:o.extend("--ft-ripple-background-color","",Pp)},Dp=O`
220
+ `}};re.styles=[hp,mp,gp,yp,bp,to,Gt,xp,vp,Sp,Ep];Cp([f()],re.prototype,"element",void 0);Cp([f()],re.prototype,"variant",void 0);var Op={"ft-typography":re};W(Op);function Yi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function wp(t){return Yi(t).split("|").pop()}function Ap(t){return Yi(t).split("|").join(" > ")}function Rp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Rp(r,t.selected)),value:t.value}}function _p(t){return He(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function $s(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Rp(e,!1))}}function Lp(t){return He(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var kp=o.extend("--ft-ripple-color","",E.colorContent),te={color:kp,backgroundColor:o.extend("--ft-ripple-background-color","",kp),opacityContentOnSurfacePressed:o.external(E.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(E.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(E.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(E.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Tp=o.extend("--ft-ripple-color","",E.colorPrimary),Ip={color:Tp,backgroundColor:o.extend("--ft-ripple-background-color","",Tp)},Pp=o.extend("--ft-ripple-color","",E.colorSecondary),Np={color:Pp,backgroundColor:o.extend("--ft-ripple-background-color","",Pp)},Dp=O`
221
221
  :host {
222
222
  display: contents;
223
223
  }
@@ -230,7 +230,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
230
230
 
231
231
  .ft-ripple:not(.ft-ripple--unbounded) {
232
232
  overflow: hidden;
233
- border-radius: ${re.borderRadius};
233
+ border-radius: ${te.borderRadius};
234
234
  }
235
235
 
236
236
  .ft-ripple .ft-ripple--background,
@@ -264,11 +264,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
264
264
  }
265
265
 
266
266
  .ft-ripple .ft-ripple--background {
267
- background-color: ${re.backgroundColor};
267
+ background-color: ${te.backgroundColor};
268
268
  }
269
269
 
270
270
  .ft-ripple .ft-ripple--effect {
271
- background-color: ${re.color};
271
+ background-color: ${te.color};
272
272
  }
273
273
 
274
274
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -314,19 +314,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
314
314
  }
315
315
 
316
316
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
317
- opacity: ${re.opacityContentOnSurfaceHover};
317
+ opacity: ${te.opacityContentOnSurfaceHover};
318
318
  }
319
319
 
320
320
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
321
- opacity: ${re.opacityContentOnSurfaceSelected};
321
+ opacity: ${te.opacityContentOnSurfaceSelected};
322
322
  }
323
323
 
324
324
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
325
- opacity: ${re.opacityContentOnSurfaceFocused};
325
+ opacity: ${te.opacityContentOnSurfaceFocused};
326
326
  }
327
327
 
328
328
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
329
- opacity: ${re.opacityContentOnSurfacePressed};
329
+ opacity: ${te.opacityContentOnSurfacePressed};
330
330
  transform: translate(-50%, -50%) scale(1);
331
331
  }
332
332
  `;var Ar={color:o.extend("--ft-loader-color","",E.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},$p=O`
@@ -398,7 +398,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
398
398
  transform: translate(calc(0.35 * ${Ar.size}), 0);
399
399
  }
400
400
  }
401
- `;var Ne={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mp=[O`
401
+ `;var De={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mp=[O`
402
402
  :host, i.ft-icon {
403
403
  display: inline-flex;
404
404
  align-items: center;
@@ -407,14 +407,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
407
407
  }
408
408
 
409
409
  :host {
410
- width: ${Ne.size};
411
- height: ${Ne.size};
410
+ width: ${De.size};
411
+ height: ${De.size};
412
412
  }
413
413
 
414
414
  i.ft-icon {
415
415
  width: 100%;
416
416
  height: 100%;
417
- font-size: ${Ne.size};
417
+ font-size: ${De.size};
418
418
  line-height: 1;
419
419
  font-weight: normal;
420
420
  text-transform: none;
@@ -425,28 +425,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
425
425
  text-rendering: auto;
426
426
  -webkit-font-smoothing: antialiased;
427
427
  -moz-osx-font-smoothing: grayscale;
428
- vertical-align: ${Ne.verticalAlign};
428
+ vertical-align: ${De.verticalAlign};
429
429
  }
430
430
 
431
431
  i.ft-icon.ft-icon--fluid-topics {
432
- font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
432
+ font-family: ${De.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
433
433
 
434
434
  /* Ugly fix because font is broken */
435
- font-size: calc(0.75 * ${Ne.size});
436
- line-height: ${Ne.size};
435
+ font-size: calc(0.75 * ${De.size});
436
+ line-height: ${De.size};
437
437
  position: relative;
438
438
  top: -4%;
439
439
  justify-content: center;
440
440
  }
441
441
 
442
442
  .ft-icon--file-format {
443
- font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
443
+ font-family: ${De.fileFormatFontFamily}, ft-mime, sans-serif;
444
444
  }
445
445
 
446
446
  .ft-icon--material {
447
- font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
447
+ font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
448
448
  }
449
- `,pr];var Fp=o.extend("--ft-button-color","",E.colorPrimary),q={backgroundColor:o.extend("--ft-button-background-color","",E.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",E.borderRadiusL),color:Fp,fontSize:o.extend("--ft-button-font-size","",ut.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Fp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Bp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",E.colorOnPrimary)),$s={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",E.colorPrimary)),color:Bp,rippleColor:o.extend("--ft-button-primary-ripple-color","",Bp)},Ot={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",E.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Up=O`
449
+ `,pr];var Fp=o.extend("--ft-button-color","",E.colorPrimary),K={backgroundColor:o.extend("--ft-button-background-color","",E.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",E.borderRadiusL),color:Fp,fontSize:o.extend("--ft-button-font-size","",ut.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Fp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Bp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",E.colorOnPrimary)),Ms={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",E.colorPrimary)),color:Bp,rippleColor:o.extend("--ft-button-primary-ripple-color","",Bp)},ft={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",E.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Up=O`
450
450
  :host {
451
451
  display: inline-block;
452
452
  max-width: 100%;
@@ -455,33 +455,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
455
455
 
456
456
  .ft-button {
457
457
  box-shadow: 0px 0px 0px transparent;
458
- border: 0px solid transparent;
459
458
  text-shadow: 0px 0px 0px transparent;
460
- font-size: ${q.fontSize};
459
+ font-size: ${K.fontSize};
461
460
  text-decoration: none;
462
- }
463
-
464
- .ft-button:hover {
465
- box-shadow: 0px 0px 0px transparent;
466
- border: 0px solid transparent;
467
- text-shadow: 0px 0px 0px transparent;
468
- }
469
-
470
- .ft-button:active {
471
- outline: none;
472
- border: none;
473
- }
474
-
475
- .ft-button:focus {
476
- outline: none;
477
- }
478
-
479
- .ft-button:focus-visible {
480
- outline: 2px solid ${E.colorPrimary};
481
- outline-offset: 2px;
482
- }
483
-
484
- .ft-button {
485
461
  position: relative;
486
462
  display: flex;
487
463
  justify-content: center;
@@ -491,96 +467,125 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
491
467
  border: none;
492
468
  pointer-events: auto;
493
469
 
494
- --button-internal-line-height: max(calc(${q.fontSize} + 2px), ${q.iconSize});
495
- --button-internal-color: ${q.color};
496
- ${w(Ne.size,q.iconSize)};
497
- ${w(re.color,q.rippleColor)};
498
- ${w(re.borderRadius,q.borderRadius)};
470
+ --button-internal-line-height: max(calc(${K.fontSize} + 2px), ${K.iconSize});
471
+ --button-internal-color: ${K.color};
472
+ ${w(De.size,K.iconSize)};
473
+ ${w(te.color,K.rippleColor)};
474
+ ${w(te.borderRadius,K.borderRadius)};
499
475
 
500
- border-radius: ${q.borderRadius};
501
- padding: ${q.verticalPadding} ${q.horizontalPadding};
502
- background-color: ${q.backgroundColor};
476
+ border-radius: ${K.borderRadius};
477
+ padding: ${K.verticalPadding} ${K.horizontalPadding};
478
+ background-color: ${K.backgroundColor};
503
479
  color: var(--button-internal-color);
504
- }
505
480
 
506
- .ft-button.ft-button--outlined {
507
- border: 1px solid var(--button-internal-color);
508
- padding: calc(${q.verticalPadding} - 1px) calc(${q.horizontalPadding} - 1px);
509
- }
481
+ .ft-button--label {
482
+ position: relative;
483
+ overflow: hidden;
484
+ white-space: nowrap;
485
+ text-overflow: ellipsis;
486
+ display: block;
487
+ margin: 0 ${K.iconPadding};
488
+ ${w(ut.fontSize,"1em")};
489
+ ${w(ut.lineHeight,"var(--button-internal-line-height)")};
490
+ }
510
491
 
511
- .ft-button.ft-button--dense {
512
- padding: ${Ot.verticalPadding} ${Ot.horizontalPadding};
513
- border-radius: ${Ot.borderRadius};
514
- ${w(re.borderRadius,Ot.borderRadius)};
515
- }
492
+ [part="icon"] {
493
+ flex-shrink: 0;
494
+ position: relative;
495
+ }
516
496
 
517
- .ft-button.ft-button--dense.ft-button--outlined {
518
- padding: calc(${Ot.verticalPadding} - 1px) calc(${Ot.horizontalPadding} - 1px);
519
- }
497
+ &:hover {
498
+ box-shadow: 0px 0px 0px transparent;
499
+ border: 0px solid transparent;
500
+ text-shadow: 0px 0px 0px transparent;
520
501
 
521
- .ft-button:not([disabled]):hover {
522
- cursor: pointer;
523
- }
524
502
 
525
- .ft-button--round {
526
- border-radius: calc(var(--button-internal-line-height) / 2 + ${q.verticalPadding});
527
- }
503
+ &:not([disabled]) {
504
+ cursor: pointer;
505
+ }
506
+ }
528
507
 
529
- .ft-button--round.ft-button--dense {
530
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Ot.verticalPadding});
531
- }
508
+ &:active {
509
+ outline: none;
510
+ border: none;
511
+ }
532
512
 
533
- .ft-button[disabled] {
534
- filter: grayscale(1);
535
- opacity: ${q.opacityDisabled};
536
- }
513
+ &:focus {
514
+ outline: none;
515
+ }
537
516
 
538
- .ft-button.ft-button--primary {
539
- background-color: ${$s.backgroundColor};
540
- --button-internal-color: ${$s.color};
541
- ${w(re.color,$s.rippleColor)};
542
- }
517
+ &:focus-visible {
518
+ outline: 2px solid ${E.colorPrimary};
519
+ outline-offset: 2px;
520
+ }
543
521
 
544
- .ft-button--label {
545
- position: relative;
546
- overflow: hidden;
547
- white-space: nowrap;
548
- text-overflow: ellipsis;
549
- display: block;
550
- margin: 0 ${q.iconPadding};
551
- ${w(ut.fontSize,"1em")};
552
- ${w(ut.lineHeight,"var(--button-internal-line-height)")};
553
- }
522
+ &[disabled] {
523
+ filter: grayscale(1);
524
+ opacity: ${K.opacityDisabled};
525
+ }
554
526
 
555
- .ft-button--dense .ft-button--label {
556
- margin: 0 ${Ot.iconPadding};
557
- }
527
+ &.ft-button--primary {
528
+ background-color: ${Ms.backgroundColor};
529
+ --button-internal-color: ${Ms.color};
530
+ ${w(te.color,Ms.rippleColor)};
531
+ }
558
532
 
559
- .ft-button--label.ft-button--label-no-text {
560
- margin: 0;
561
- }
533
+ &.ft-button--outlined {
534
+ border: 1px solid var(--button-internal-color);
535
+ padding: calc(${K.verticalPadding} - 1px) calc(${K.horizontalPadding} - 1px);
536
+ }
562
537
 
563
- [part="icon"] {
564
- flex-shrink: 0;
565
- position: relative;
566
- }
538
+ &.ft-button--dense {
539
+ padding: ${ft.verticalPadding} ${ft.horizontalPadding};
540
+ border-radius: ${ft.borderRadius};
541
+ ${w(te.borderRadius,ft.borderRadius)};
567
542
 
568
- .ft-button--label[hidden] + [part="icon"] {
569
- margin: 0 calc(${q.horizontalPadding} * -1);
570
- padding: 0 ${q.verticalPadding};
571
- }
543
+ .ft-button--label {
544
+ margin: 0 ${ft.iconPadding};
545
+ }
546
+ }
572
547
 
573
- .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
574
- margin: 0 calc(${Ot.horizontalPadding} * -1);
575
- padding: 0 ${Ot.verticalPadding};
576
- }
548
+ &.ft-button--dense.ft-button--outlined {
549
+ padding: calc(${ft.verticalPadding} - 1px) calc(${ft.horizontalPadding} - 1px);
550
+ }
577
551
 
578
- .ft-button:not(.ft-button--trailing-icon) [part="label"] {
579
- order: 2;
552
+ &.ft-button--round {
553
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${K.verticalPadding});
554
+ ${w(te.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${K.verticalPadding})`)};
555
+ }
556
+
557
+ &.ft-button--round.ft-button--dense {
558
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ft.verticalPadding});
559
+ ${w(te.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${ft.verticalPadding})`)};
560
+ }
561
+
562
+ &.ft-button--no-text {
563
+ .ft-button--label {
564
+ margin: 0;
565
+ }
566
+
567
+ padding: ${K.verticalPadding};
568
+
569
+ &.ft-button--dense {
570
+ padding: ${ft.verticalPadding};
571
+ }
572
+
573
+ &.ft-button--outlined {
574
+ padding: calc(${K.verticalPadding} - 1px);
575
+ }
576
+
577
+ &.ft-button--outlined.ft-button--dense {
578
+ padding: calc(${ft.verticalPadding} - 1px);
579
+ }
580
+ }
581
+
582
+ &:not(.ft-button--trailing-icon) [part="label"] {
583
+ order: 2;
584
+ }
580
585
  }
581
586
 
582
587
  ft-loader {
583
- ${w(Ar.size,q.iconSize)};
588
+ ${w(Ar.size,K.iconSize)};
584
589
  ${w(Ar.color,"var(--button-internal-color)")};
585
590
  }
586
591
  `;var Go={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",E.colorOnSurface),borderRadiusM:o.external(E.borderRadiusM,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),fontFamily:o.external(be.fontFamily,"Body2 typography"),fontSize:o.external(be.fontSize,"Body2 typography"),fontWeight:o.external(be.fontWeight,"Body2 typography"),letterSpacing:o.external(be.letterSpacing,"Body2 typography"),lineHeight:o.external(be.lineHeight,"Body2 typography"),textTransform:o.external(be.textTransform,"Body2 typography")},zp=O`
@@ -634,11 +639,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
634
639
  }
635
640
 
636
641
  ft-button {
637
- ${w(q.color,Go.colorOnSurface)};
642
+ ${w(K.color,Go.colorOnSurface)};
638
643
  }
639
644
 
640
645
  ft-button.ft-filter-level--display-more {
641
- ${w(q.color,Go.buttonMoreColor)};
646
+ ${w(K.color,Go.buttonMoreColor)};
642
647
  }
643
648
 
644
649
  ft-radio, ft-checkbox {
@@ -654,7 +659,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
654
659
  margin: 10px 0;
655
660
  color: ${Go.colorOnSurfaceMedium};
656
661
  }
657
- `;var Ue=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends N{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 ee(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 ee(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return b`
662
+ `;var Ue=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends N{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 ee(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 ee(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return x`
658
663
  <style>
659
664
  .ft-ripple .ft-ripple--effect {
660
665
  left: ${this.originX}px;
@@ -665,7 +670,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
665
670
  <div class="ft-ripple--background"></div>
666
671
  <div class="ft-ripple--effect"></div>
667
672
  </div>
668
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Dp;Ue([f({type:Boolean})],K.prototype,"primary",void 0);Ue([f({type:Boolean})],K.prototype,"secondary",void 0);Ue([f({type:Boolean})],K.prototype,"unbounded",void 0);Ue([f({type:Boolean})],K.prototype,"activated",void 0);Ue([f({type:Boolean})],K.prototype,"selected",void 0);Ue([f({type:Boolean})],K.prototype,"disabled",void 0);Ue([_()],K.prototype,"hovered",void 0);Ue([_()],K.prototype,"focused",void 0);Ue([_()],K.prototype,"pressed",void 0);Ue([_()],K.prototype,"rippling",void 0);Ue([_()],K.prototype,"originX",void 0);Ue([_()],K.prototype,"originY",void 0);Ue([D(".ft-ripple")],K.prototype,"ripple",void 0);Ue([D(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var Hp={"ft-ripple":K};W(Hp);var jo={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",E.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Vp=O`
673
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Dp;Ue([f({type:Boolean})],Z.prototype,"primary",void 0);Ue([f({type:Boolean})],Z.prototype,"secondary",void 0);Ue([f({type:Boolean})],Z.prototype,"unbounded",void 0);Ue([f({type:Boolean})],Z.prototype,"activated",void 0);Ue([f({type:Boolean})],Z.prototype,"selected",void 0);Ue([f({type:Boolean})],Z.prototype,"disabled",void 0);Ue([_()],Z.prototype,"hovered",void 0);Ue([_()],Z.prototype,"focused",void 0);Ue([_()],Z.prototype,"pressed",void 0);Ue([_()],Z.prototype,"rippling",void 0);Ue([_()],Z.prototype,"originX",void 0);Ue([_()],Z.prototype,"originY",void 0);Ue([D(".ft-ripple")],Z.prototype,"ripple",void 0);Ue([D(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);var Vp={"ft-ripple":Z};W(Vp);var jo={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",E.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Hp=O`
669
674
  .ft-tooltip--container {
670
675
  display: block;
671
676
  }
@@ -696,15 +701,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
696
701
  position: relative;
697
702
  word-break: break-word;
698
703
  }
699
- `;var Km="ft-app-info",Rr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Rr.eventName="authentication-change";var Ko=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ko.eventName="ui-locale-changed";var Zm={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new Rr(e.payload)),0))}},U=mr.get({name:Km,reducers:Zm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Yi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Dw=we(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>gr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Yi([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Yi([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Yi([qr({store:U.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Yi([qr({store:U.name})],e.prototype,"uiLocale",void 0),e});var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=U.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ro=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var Ke=class extends ro{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new bt,this.cache=e?n.commonCache:new bt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Xi=class extends Ke{async listMySearches(){let{session:e}=U.getState();return qn(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ji=class extends Ke{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Qi=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}};var en=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}};var qm="ft-user-assets",Ym={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Fs(t,r,[...Ms(t,r),n]),Wp(t,r,1,i),Gp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Fs(t,r,Ms(t,r).map(n=>n.id===i.id?i:n)),Gp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Fs(t,r,Ms(t,r).filter(a=>a.id!==n)),Wp(t,r,-1,i)}},jp={[tt.SEARCHES]:"savedSearches",[tt.BOOKMARKS]:"bookmarks",[tt.BOOKS]:void 0,[tt.COLLECTIONS]:void 0},Ms=(t,e)=>{var r;let i=jp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Fs=(t,e,r)=>{let i=jp[e];i&&(t[i]=r)},Wp=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===tt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Gp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},De=mr.get({name:qm,reducers:Ym,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bs=class{constructor(e=new Qi,r=new en){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ji,this.savedSearchesService=new Xi,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();he((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(),De.actions.clearAssetCount(),De.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),De.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),De.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();De.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();De.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&De.getState().assetCounts.allAsset[e]!==r.count&&De.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&De.getState().assetCounts.bookmarkByMap[e]!==r.count&&De.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(De.getState().assetCounts.bookmarkByMap).length!==0;e===tt.BOOKMARKS&&r&&De.actions.clearBookmarkCountByMap(),De.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;De.actions.bookmarks(r)}}},Xm=new Bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Xm);var Us=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Us;var Kp,oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jm=Symbol("clearAfterUnitTest"),tn=class extends gi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kp]=()=>{this.defaultMessages={},this.cache=new bt,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};he(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new zt((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof rr)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>fi(0).then(()=>i()).catch(()=>null)))}};Kp=Jm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Zo=window.FluidTopicsI18nService,zs=window.FluidTopicsCustomI18nService;var Hs=class{highlightHtml(e,r,i){Ta(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Hs;var Vs=class{isDate(e){var r,i,n,a;return(a=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return gr.format(e,(i=r?.locale)!==null&&i!==void 0?i:U.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 Vs;var qo=class{static get(e,r){var i,n,a,s;let l=U.getState(),{lang:d,region:u}=(s=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new lt(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${d}-${u}`)}};var Ws=class{urlToSearchRequest(e){return qo.get().parse(e)}searchRequestToUrl(e){return qo.get().serialize(e)}};window.FluidTopicsUrlService=new Ws;var Lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Lr.eventName="before-location-change";var kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};kr.eventName="change";var Gs=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))}},Zp=new Gs;var rn=class t extends kt{static build(){return new t(window.history,Zp,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new kr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=new Lr(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),m={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:d.detail.nextLocation.href};i.apply(n,[m,s,m.href]),this.setCurrentState(m,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Lr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Lr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(kr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(kr.eventName,e)}currentItem(){return st(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 st(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return st(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return st(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=rn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var qp=O`
700
- `;function Yp(t,e){let{authenticationRequired:r,session:i}=U.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var on=class extends ro{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var js=class t extends Ho{static build(e){return new t(U,e)}constructor(e,r){super(),this.store=e,this.cache=new bt,this.withManualResources=!0,this.userLocaleService=new on,this.cleanSessionDebouncer=new ee,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ee(500),this.apiProvider=r??(()=>_r.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Rr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Rr.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",()=>Yp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ko(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return yc(U.getState().session,...e)}},Xp=js.build();var Tr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Yo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Tr(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ce=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends fr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Xp,this.contextRoot=new Yo}render(){return b`
704
+ `;var Km="ft-app-info",Rr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Rr.eventName="authentication-change";var Ko=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ko.eventName="ui-locale-changed";var Zm={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>B.dispatchEvent(new Rr(e.payload)),0))}},B=mr.get({name:Km,reducers:Zm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Xi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Nw=we(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(B)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>gr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Xi([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Xi([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Xi([qr({store:B.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Xi([qr({store:B.name})],e.prototype,"uiLocale",void 0),e});var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=B.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=B.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ro=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var Ke=class extends ro{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new xt,this.cache=e?n.commonCache:new xt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Ji=class extends Ke{async listMySearches(){let{session:e}=B.getState();return Yn(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Qi=class extends Ke{async listMyBookmarks(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var en=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var tn=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var qm="ft-user-assets",Ym={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Bs(t,r,[...Fs(t,r),n]),Wp(t,r,1,i),Gp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Bs(t,r,Fs(t,r).map(n=>n.id===i.id?i:n)),Gp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Bs(t,r,Fs(t,r).filter(a=>a.id!==n)),Wp(t,r,-1,i)}},jp={[tt.SEARCHES]:"savedSearches",[tt.BOOKMARKS]:"bookmarks",[tt.BOOKS]:void 0,[tt.COLLECTIONS]:void 0},Fs=(t,e)=>{var r;let i=jp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Bs=(t,e,r)=>{let i=jp[e];i&&(t[i]=r)},Wp=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===tt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Gp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},$e=mr.get({name:qm,reducers:Ym,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Us=class{constructor(e=new en,r=new tn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=B.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qi,this.savedSearchesService=new Ji,B.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=B.getState();he((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(),$e.actions.clearAssetCount(),$e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$e.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&$e.getState().assetCounts.allAsset[e]!==r.count&&$e.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&$e.getState().assetCounts.bookmarkByMap[e]!==r.count&&$e.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys($e.getState().assetCounts.bookmarkByMap).length!==0;e===tt.BOOKMARKS&&r&&$e.actions.clearBookmarkCountByMap(),$e.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;$e.actions.bookmarks(r)}}},Xm=new Us;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Xm);var zs=class{addCommand(e,r=!1){B.commands.add(e,r)}consumeCommand(e){return B.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new zs;var Kp,oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jm=Symbol("clearAfterUnitTest"),rn=class extends gi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kp]=()=>{this.defaultMessages={},this.cache=new xt,this.listeners={}},this.currentUiLocale=B.getState().uiLocale,B.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=B.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};he(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new zt((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof rr)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>fi(0).then(()=>i()).catch(()=>null)))}};Kp=Jm;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 Zo=window.FluidTopicsI18nService,Vs=window.FluidTopicsCustomI18nService;var Hs=class{highlightHtml(e,r,i){Ia(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Hs;var Ws=class{isDate(e){var r,i,n,a;return(a=(i=((n=(r=B.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return gr.format(e,(i=r?.locale)!==null&&i!==void 0?i:B.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 Ws;var qo=class{static get(e,r){var i,n,a,s;let l=B.getState(),{lang:d,region:u}=(s=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new lt(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${d}-${u}`)}};var Gs=class{urlToSearchRequest(e){return qo.get().parse(e)}searchRequestToUrl(e){return qo.get().serialize(e)}};window.FluidTopicsUrlService=new Gs;var Lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Lr.eventName="before-location-change";var kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};kr.eventName="change";var js=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))}},Zp=new js;var on=class t extends Tt{static build(){return new t(window.history,Zp,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new kr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=new Lr(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),m={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:d.detail.nextLocation.href};i.apply(n,[m,s,m.href]),this.setCurrentState(m,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Lr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Lr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(kr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(kr.eventName,e)}currentItem(){return st(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 st(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return st(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return st(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var qp=O`
705
+ `;function Yp(t,e){let{authenticationRequired:r,session:i}=B.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var nn=class extends ro{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ks=class t extends Vo{static build(e){return new t(B,e)}constructor(e,r){super(),this.store=e,this.cache=new xt,this.withManualResources=!0,this.userLocaleService=new nn,this.cleanSessionDebouncer=new ee,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ee(500),this.apiProvider=r??(()=>_r.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Rr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Rr.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",()=>Yp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ko(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return bc(B.getState().session,...e)}},Xp=Ks.build();var Tr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Yo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Tr(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ce=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends fr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Xp,this.contextRoot=new Yo}render(){return x`
701
706
  <slot></slot>
702
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Zo.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};le.elementDefinitions={};le.styles=qp;Ce([f()],le.prototype,"baseUrl",void 0);Ce([f()],le.prototype,"tenantId",void 0);Ce([f()],le.prototype,"apiIntegrationIdentifier",void 0);Ce([f()],le.prototype,"apiIntegrationAppVersion",void 0);Ce([f()],le.prototype,"uiLocale",void 0);Ce([se(null)],le.prototype,"availableUiLocales",void 0);Ce([se(null)],le.prototype,"metadataConfiguration",void 0);Ce([f({type:Boolean})],le.prototype,"editorMode",void 0);Ce([f({type:Boolean})],le.prototype,"noCustom",void 0);Ce([f({type:Boolean})],le.prototype,"openExternalDocumentInNewTab",void 0);Ce([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],le.prototype,"noCustomComponent",void 0);Ce([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],le.prototype,"noCustomCode",void 0);Ce([f({type:Boolean})],le.prototype,"withManualResources",void 0);Ce([f({type:Boolean})],le.prototype,"navigatorOnline",void 0);Ce([f({type:Boolean})],le.prototype,"forcedOffline",void 0);Ce([f({type:Boolean})],le.prototype,"authenticationRequired",void 0);Ce([se([])],le.prototype,"messageContexts",void 0);Ce([se(void 0)],le.prototype,"session",void 0);var Jp={"ft-app-context":le};W(Jp);var Ks=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},io=new Ks;var tg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jo=Symbol("i18nAttributes"),Qp=Symbol("i18nListAttributes"),eu=Symbol("i18nProperties"),nn=Symbol("i18nContexts"),Xo=Symbol("i18nUnsubs"),ln=we(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?zs:Zo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(io.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Jo])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[Qp])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[eu])===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[nn].set(d,{isCustomContext:l}),this[Xo].has(d)||this[Xo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[nn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[nn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xo].forEach(a=>a()),this[Xo].clear()}}return e=nn,r=Xo,tg([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),an=class extends ln(N){},sn=class extends ln(fr){};var Zs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?io.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},rg=new Zs;var tu=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:et,converter:io,...e}),r[Jo]=(n=r[Jo])!==null&&n!==void 0?n:new Map,r[Jo].set(i,t??{})};var ru=O`
703
- `;var no=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ot=class extends sn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:k:b`
707
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Zo.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};le.elementDefinitions={};le.styles=qp;Ce([f()],le.prototype,"baseUrl",void 0);Ce([f()],le.prototype,"tenantId",void 0);Ce([f()],le.prototype,"apiIntegrationIdentifier",void 0);Ce([f()],le.prototype,"apiIntegrationAppVersion",void 0);Ce([f()],le.prototype,"uiLocale",void 0);Ce([se(null)],le.prototype,"availableUiLocales",void 0);Ce([se(null)],le.prototype,"metadataConfiguration",void 0);Ce([f({type:Boolean})],le.prototype,"editorMode",void 0);Ce([f({type:Boolean})],le.prototype,"noCustom",void 0);Ce([f({type:Boolean})],le.prototype,"openExternalDocumentInNewTab",void 0);Ce([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],le.prototype,"noCustomComponent",void 0);Ce([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],le.prototype,"noCustomCode",void 0);Ce([f({type:Boolean})],le.prototype,"withManualResources",void 0);Ce([f({type:Boolean})],le.prototype,"navigatorOnline",void 0);Ce([f({type:Boolean})],le.prototype,"forcedOffline",void 0);Ce([f({type:Boolean})],le.prototype,"authenticationRequired",void 0);Ce([se([])],le.prototype,"messageContexts",void 0);Ce([se(void 0)],le.prototype,"session",void 0);var Jp={"ft-app-context":le};W(Jp);var Zs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},io=new Zs;var tg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jo=Symbol("i18nAttributes"),Qp=Symbol("i18nListAttributes"),eu=Symbol("i18nProperties"),an=Symbol("i18nContexts"),Xo=Symbol("i18nUnsubs"),cn=we(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Vs:Zo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(io.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Jo])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[Qp])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[eu])===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[an].set(d,{isCustomContext:l}),this[Xo].has(d)||this[Xo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[an].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[an].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xo].forEach(a=>a()),this[Xo].clear()}}return e=an,r=Xo,tg([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),sn=class extends cn(N){},ln=class extends cn(fr){};var qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?io.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},rg=new qs;var tu=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:et,converter:io,...e}),r[Jo]=(n=r[Jo])!==null&&n!==void 0?n:new Map,r[Jo].set(i,t??{})};var ru=O`
708
+ `;var no=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ot=class extends ln{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(B)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:k:x`
704
709
  <span class="ft-i18n">
705
710
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
706
711
  </span>
707
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ot.elementDefinitions={};ot.styles=ru;no([qr()],ot.prototype,"editorMode",void 0);no([f()],ot.prototype,"context",void 0);no([f()],ot.prototype,"key",void 0);no([se([])],ot.prototype,"args",void 0);no([f()],ot.prototype,"defaultMessage",void 0);no([_()],ot.prototype,"editorMessage",void 0);var ou={"ft-i18n":ot};W(ou);var ft=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends an{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 ee,this.revealDebouncer=new ee,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 b`
712
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ot.elementDefinitions={};ot.styles=ru;no([qr()],ot.prototype,"editorMode",void 0);no([f()],ot.prototype,"context",void 0);no([f()],ot.prototype,"key",void 0);no([se([])],ot.prototype,"args",void 0);no([f()],ot.prototype,"defaultMessage",void 0);no([_()],ot.prototype,"editorMessage",void 0);var ou={"ft-i18n":ot};W(ou);var ht=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends sn{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 ee,this.revealDebouncer=new ee,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`
708
713
  <div part="container"
709
714
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
710
715
  <slot part="slot"></slot>
@@ -719,19 +724,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
719
724
  </div>
720
725
  </div>
721
726
  </div>
722
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&va(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 ${E.transitionDuration}, left ${E.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Bn(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};me.elementDefinitions={"ft-typography":te};me.styles=Vp;ft([tu()],me.prototype,"text",void 0);ft([f({type:Boolean})],me.prototype,"manual",void 0);ft([f({type:Boolean})],me.prototype,"inline",void 0);ft([Ft()],me.prototype,"delay",void 0);ft([f()],me.prototype,"position",void 0);ft([se([])],me.prototype,"ignoreMatchingElements",void 0);ft([_n()],me.prototype,"slotNodes",void 0);ft([D(".ft-tooltip--container")],me.prototype,"container",void 0);ft([D(".ft-tooltip")],me.prototype,"tooltip",void 0);ft([D(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ft([_()],me.prototype,"visible",void 0);var iu={"ft-tooltip":me};W(iu);var ht;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ht||(ht={}));var Ze;(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;"})(Ze||(Ze={}));var R;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(R||(R={}));var qs=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]),og=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 nu(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=og.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=qs.get(l))!==null&&i!==void 0?i:qs.get(e))!==null&&n!==void 0?n:qs.get(s))!==null&&a!==void 0?a:R.UNKNOWN}var hL={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Qo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends N{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=k}render(){let e=this.variant&&Object.values(ht).includes(this.variant)?this.variant:ht.fluid_topics,r=e!==ht.material||!!this.value;return b`
727
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Sa(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 ${E.transitionDuration}, left ${E.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Un(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};me.elementDefinitions={"ft-typography":re};me.styles=Hp;ht([tu()],me.prototype,"text",void 0);ht([f({type:Boolean})],me.prototype,"manual",void 0);ht([f({type:Boolean})],me.prototype,"inline",void 0);ht([Ft()],me.prototype,"delay",void 0);ht([f()],me.prototype,"position",void 0);ht([se([])],me.prototype,"ignoreMatchingElements",void 0);ht([Ln()],me.prototype,"slotNodes",void 0);ht([D(".ft-tooltip--container")],me.prototype,"container",void 0);ht([D(".ft-tooltip")],me.prototype,"tooltip",void 0);ht([D(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ht([_()],me.prototype,"visible",void 0);var iu={"ft-tooltip":me};W(iu);var mt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(mt||(mt={}));var Ze;(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;"})(Ze||(Ze={}));var R;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(R||(R={}));var Ys=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]),og=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 nu(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=og.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Ys.get(l))!==null&&i!==void 0?i:Ys.get(e))!==null&&n!==void 0?n:Ys.get(s))!==null&&a!==void 0?a:R.UNKNOWN}var fL={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Qo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends N{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=k}render(){let e=this.variant&&Object.values(mt).includes(this.variant)?this.variant:mt.fluid_topics,r=e!==mt.material||!!this.value;return x`
723
728
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
724
- ${Pn(this.resolvedIcon)}
729
+ ${Nn(this.resolvedIcon)}
725
730
  <slot ?hidden=${r}></slot>
726
731
  </i>
727
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ht.file_format:this.resolvedIcon=(e=R[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ht.material:this.resolvedIcon=this.value||k;break;default:this.resolvedIcon=(r=Ze[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Mp;Qo([f()],de.prototype,"variant",void 0);Qo([f()],de.prototype,"value",void 0);Qo([f({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);Qo([_()],de.prototype,"resolvedIcon",void 0);Qo([D("slot")],de.prototype,"slottedContent",void 0);var au={"ft-icon":de};W(au);var Ir=class extends N{render(){return b`
732
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case mt.file_format:this.resolvedIcon=(e=R[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case mt.material:this.resolvedIcon=this.value||k;break;default:this.resolvedIcon=(r=Ze[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Mp;Qo([f()],de.prototype,"variant",void 0);Qo([f()],de.prototype,"value",void 0);Qo([f({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);Qo([_()],de.prototype,"resolvedIcon",void 0);Qo([D("slot")],de.prototype,"slottedContent",void 0);var au={"ft-icon":de};W(au);var Ir=class extends N{render(){return x`
728
733
  <div class="ft-loader">
729
734
  <div></div>
730
735
  <div></div>
731
736
  <div></div>
732
737
  <div></div>
733
738
  </div>
734
- `}};Ir.styles=$p;var su={"ft-loader":Ir};W(su);var jt=t=>t??k;var ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},z=class t extends ss(N){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":xr,"ft-button--label-no-text":!this.hasTextContent},a=b`
739
+ `}};Ir.styles=$p;var su={"ft-loader":Ir};W(su);var jt=t=>t??k;var ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},U=class t extends ls(N){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-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":xr},a=x`
735
740
  <ft-ripple part="ripple"
736
741
  ?disabled=${this.isDisabled()}
737
742
  ?activated=${this.activated}
@@ -743,7 +748,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
743
748
  <slot></slot>
744
749
  </ft-typography>
745
750
  ${this.resolveIcon()}
746
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?b`
751
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?x`
747
752
  <a href="${s}"
748
753
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
749
754
  part="button"
@@ -752,7 +757,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
752
757
  ?disabled=${this.isDisabled()}>
753
758
  ${a}
754
759
  </a>
755
- `:b`
760
+ `:x`
756
761
  <button part="button"
757
762
  class="${ie(this.buttonClasses)}"
758
763
  aria-label="${jt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
@@ -761,18 +766,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
761
766
  ?disabled=${this.isDisabled()}>
762
767
  ${a}
763
768
  </button>
764
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?b`
769
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?x`
765
770
  <ft-tooltip part="tooltip"
766
771
  text="${this.label}"
767
772
  position="${this.tooltipPosition}">
768
773
  ${e}
769
774
  </ft-tooltip>
770
- `:e}resolveIcon(){return this.loading?b`
771
- <ft-loader part="loader icon"></ft-loader> `:this.icon?b`
775
+ `:e}resolveIcon(){return this.loading?x`
776
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?x`
772
777
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
773
- `:b`
778
+ `:x`
774
779
  <slot part="icon" name="icon"></slot>
775
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};z.elementDefinitions={"ft-ripple":K,"ft-tooltip":me,"ft-icon":de,"ft-loader":Ir,"ft-typography":te};z.styles=[Na,Up,pr];z.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:z.labelsObserver.unobserve(e.target)}});ne([f({type:Boolean})],z.prototype,"primary",void 0);ne([f({type:Boolean})],z.prototype,"outlined",void 0);ne([f({type:Boolean})],z.prototype,"dense",void 0);ne([f({type:Boolean})],z.prototype,"round",void 0);ne([f({type:Boolean})],z.prototype,"disabled",void 0);ne([f()],z.prototype,"icon",void 0);ne([f()],z.prototype,"iconVariant",void 0);ne([f({type:Boolean})],z.prototype,"trailingIcon",void 0);ne([f()],z.prototype,"label",void 0);ne([f()],z.prototype,"type",void 0);ne([f()],z.prototype,"href",void 0);ne([f()],z.prototype,"target",void 0);ne([f({type:Boolean})],z.prototype,"loading",void 0);ne([f({attribute:"aria-label"})],z.prototype,"ariaLabel",void 0);ne([f()],z.prototype,"ariaHasPopup",void 0);ne([f({attribute:"aria-pressed"})],z.prototype,"ariaPressed",void 0);ne([f()],z.prototype,"tooltipPosition",void 0);ne([f({type:Boolean})],z.prototype,"hideTooltip",void 0);ne([f({type:Boolean})],z.prototype,"forceTooltip",void 0);ne([f({type:Boolean})],z.prototype,"activated",void 0);ne([D(".ft-button")],z.prototype,"button",void 0);ne([D(".ft-button--label")],z.prototype,"labelContainer",void 0);ne([_()],z.prototype,"hasTextContent",void 0);ne([D(".ft-button--label slot")],z.prototype,"slottedContent",void 0);ne([D("[part=tooltip]")],z.prototype,"tooltip",void 0);var lu={"ft-button":z};W(lu);var qe={textColor:o.extend("--ft-checkbox-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",E.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",E.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",E.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",E.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",E.colorError)},cu=O`
780
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};U.elementDefinitions={"ft-ripple":Z,"ft-tooltip":me,"ft-icon":de,"ft-loader":Ir,"ft-typography":re};U.styles=[Da,Up,pr];U.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:U.labelsObserver.unobserve(e.target)}});ne([f({type:Boolean})],U.prototype,"primary",void 0);ne([f({type:Boolean})],U.prototype,"outlined",void 0);ne([f({type:Boolean})],U.prototype,"dense",void 0);ne([f({type:Boolean})],U.prototype,"round",void 0);ne([f({type:Boolean})],U.prototype,"disabled",void 0);ne([f()],U.prototype,"icon",void 0);ne([f()],U.prototype,"iconVariant",void 0);ne([f({type:Boolean})],U.prototype,"trailingIcon",void 0);ne([f()],U.prototype,"label",void 0);ne([f()],U.prototype,"type",void 0);ne([f()],U.prototype,"href",void 0);ne([f()],U.prototype,"target",void 0);ne([f({type:Boolean})],U.prototype,"loading",void 0);ne([f({attribute:"aria-label"})],U.prototype,"ariaLabel",void 0);ne([f()],U.prototype,"ariaHasPopup",void 0);ne([f({attribute:"aria-pressed"})],U.prototype,"ariaPressed",void 0);ne([f()],U.prototype,"tooltipPosition",void 0);ne([f({type:Boolean})],U.prototype,"hideTooltip",void 0);ne([f({type:Boolean})],U.prototype,"forceTooltip",void 0);ne([f({type:Boolean})],U.prototype,"activated",void 0);ne([D(".ft-button")],U.prototype,"button",void 0);ne([D(".ft-button--label")],U.prototype,"labelContainer",void 0);ne([_()],U.prototype,"hasTextContent",void 0);ne([D(".ft-button--label slot")],U.prototype,"slottedContent",void 0);ne([D("[part=tooltip]")],U.prototype,"tooltip",void 0);var lu={"ft-button":U};W(lu);var qe={textColor:o.extend("--ft-checkbox-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",E.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",E.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",E.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",E.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",E.colorError)},cu=O`
776
781
  * {
777
782
  box-sizing: border-box;
778
783
  }
@@ -853,7 +858,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
853
858
 
854
859
  .ft-checkbox.ft-checkbox--error {
855
860
  color: ${qe.errorColor};
856
- ${w(re.color,qe.errorColor)};
861
+ ${w(te.color,qe.errorColor)};
857
862
 
858
863
  .ft-checkbox--box {
859
864
  border-color: ${qe.errorColor};
@@ -865,7 +870,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
865
870
  }
866
871
  }
867
872
  }
868
- `;var $t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ys=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends N{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return b`
873
+ `;var $t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends N{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return x`
869
874
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
870
875
  <ft-ripple part="checkbox-ripple"
871
876
  ?disabled=${this.disabled}
@@ -887,19 +892,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
887
892
  @change=${this.onChange}
888
893
  >
889
894
  </div>
890
- `}render(){return b`
895
+ `}render(){return x`
891
896
  <label class="${ie(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
892
897
  ${this.renderBoxContainer()}
893
898
  <ft-typography variant="${ye.body2}" part="checkbox-body">
894
899
  <slot @slotchange=${this.onSlotchange}></slot>
895
900
  </ft-typography>
896
901
  </label>
897
- `}renderBoxIcon(){return b`
902
+ `}renderBoxIcon(){return x`
898
903
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
899
904
  <path class="ft-checkbox--checkmark-path" fill="none"
900
905
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
901
906
  </svg>
902
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Ys(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":K,"ft-typography":te};Re.styles=cu;$t([f()],Re.prototype,"name",void 0);$t([f()],Re.prototype,"value",void 0);$t([f({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);$t([f({type:Boolean})],Re.prototype,"indeterminate",void 0);$t([f({type:Boolean})],Re.prototype,"disabled",void 0);$t([f({type:Boolean})],Re.prototype,"error",void 0);$t([D(".ft-checkbox")],Re.prototype,"container",void 0);$t([D("ft-ripple")],Re.prototype,"ripple",void 0);$t([D("input")],Re.prototype,"input",void 0);var du={"ft-checkbox":Re};W(du);var Kt={textColor:o.extend("--ft-radio-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",L.fontSize),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",E.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system")},pu=O`
907
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Xs(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":Z,"ft-typography":re};Re.styles=cu;$t([f()],Re.prototype,"name",void 0);$t([f()],Re.prototype,"value",void 0);$t([f({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);$t([f({type:Boolean})],Re.prototype,"indeterminate",void 0);$t([f({type:Boolean})],Re.prototype,"disabled",void 0);$t([f({type:Boolean})],Re.prototype,"error",void 0);$t([D(".ft-checkbox")],Re.prototype,"container",void 0);$t([D("ft-ripple")],Re.prototype,"ripple",void 0);$t([D("input")],Re.prototype,"input",void 0);var du={"ft-checkbox":Re};W(du);var Kt={textColor:o.extend("--ft-radio-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",L.fontSize),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",E.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system")},pu=O`
903
908
  * {
904
909
  box-sizing: border-box;
905
910
  }
@@ -988,7 +993,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
988
993
  .ft-radio ft-typography {
989
994
  padding-right: 2px;
990
995
  }
991
- `;var Zt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Oe=class extends N{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return b`
996
+ `;var Zt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Oe=class extends N{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return x`
992
997
  <div class="${ie(this.radioClasses)}"
993
998
  @click=${this.onClick}>
994
999
  <div class="ft-radio--box-container">
@@ -1014,7 +1019,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1014
1019
  </ft-typography>
1015
1020
  </label>
1016
1021
  </div>
1017
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new cn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new cn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Oe.elementDefinitions={"ft-ripple":K,"ft-typography":te};Oe.styles=pu;Zt([f()],Oe.prototype,"name",void 0);Zt([f()],Oe.prototype,"value",void 0);Zt([f({type:Boolean,reflect:!0})],Oe.prototype,"checked",void 0);Zt([f({attribute:"aria-checked",reflect:!0})],Oe.prototype,"ariaChecked",void 0);Zt([f({type:Boolean})],Oe.prototype,"disabled",void 0);Zt([D(".ft-radio")],Oe.prototype,"container",void 0);Zt([D("ft-ripple")],Oe.prototype,"ripple",void 0);Zt([D("input")],Oe.prototype,"input",void 0);var uu=O`
1022
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new dn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new dn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Oe.elementDefinitions={"ft-ripple":Z,"ft-typography":re};Oe.styles=pu;Zt([f()],Oe.prototype,"name",void 0);Zt([f()],Oe.prototype,"value",void 0);Zt([f({type:Boolean,reflect:!0})],Oe.prototype,"checked",void 0);Zt([f({attribute:"aria-checked",reflect:!0})],Oe.prototype,"ariaChecked",void 0);Zt([f({type:Boolean})],Oe.prototype,"disabled",void 0);Zt([D(".ft-radio")],Oe.prototype,"container",void 0);Zt([D("ft-ripple")],Oe.prototype,"ripple",void 0);Zt([D("input")],Oe.prototype,"input",void 0);var uu=O`
1018
1023
  :host {
1019
1024
  display: block;
1020
1025
  }
@@ -1022,14 +1027,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1022
1027
  :host(:focus-visible) {
1023
1028
  outline: none;
1024
1029
  }
1025
- `;var ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends N{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return b`
1030
+ `;var ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends N{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return x`
1026
1031
  <slot @slotchange=${this.onSlotChange}
1027
1032
  @change=${this.onChange}
1028
1033
  @keydown=${this.onKeyDown}
1029
1034
  ></slot>
1030
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ye.elementDefinitions={};Ye.styles=uu;ei([f()],Ye.prototype,"name",void 0);ei([f({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);ei([f({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);ei([Rn()],Ye.prototype,"assignedElements",void 0);ei([_()],Ye.prototype,"currentSelectedIndex",void 0);var fu={"ft-radio":Oe,"ft-radio-group":Ye};W(fu);var _e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},pe=class extends Zi(ln(hs(N)),Xs){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ee(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1035
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ye.elementDefinitions={};Ye.styles=uu;ei([f()],Ye.prototype,"name",void 0);ei([f({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);ei([f({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);ei([_n()],Ye.prototype,"assignedElements",void 0);ei([_()],Ye.prototype,"currentSelectedIndex",void 0);var fu={"ft-radio":Oe,"ft-radio-group":Ye};W(fu);var _e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Js={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},pe=class extends qi(cn(ms(N)),Js){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ee(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return x`
1031
1036
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1032
- ${this.parent==null?null:b`
1037
+ ${this.parent==null?null:x`
1033
1038
  <div tabindex="0"
1034
1039
  part="controls go-back"
1035
1040
  class="ft-filter-level--go-back"
@@ -1043,15 +1048,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1043
1048
  <ft-typography variant="${ye.body2}">${this.parent.label}</ft-typography>
1044
1049
  </div>
1045
1050
  `}
1046
- ${this.filteredOptions.length===0&&this.noValuesLabel?b`
1051
+ ${this.filteredOptions.length===0&&this.noValuesLabel?x`
1047
1052
  <ft-typography class="ft-filter-level--no-values" element="span" variant="${ye.body2}">
1048
1053
  ${this.noValuesLabel}
1049
1054
  </ft-typography>
1050
1055
  `:k}
1051
- ${fe(e,r=>r.value,r=>{var i;return b`
1056
+ ${fe(e,r=>r.value,r=>{var i;return x`
1052
1057
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1053
1058
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1054
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?k:b`
1059
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?k:x`
1055
1060
  <ft-button icon="thin_arrow_right"
1056
1061
  part="controls navigate-hierarchy"
1057
1062
  aria-label="Expand node"
@@ -1062,7 +1067,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1062
1067
  `}
1063
1068
  </div>
1064
1069
  `})}
1065
- ${e.length<this.filteredOptions.length?b`
1070
+ ${e.length<this.filteredOptions.length?x`
1066
1071
  <ft-button
1067
1072
  class="ft-filter-level--display-more"
1068
1073
  icon="thin_arrow"
@@ -1073,18 +1078,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1073
1078
  </ft-button>
1074
1079
  `:k}
1075
1080
  </div>
1076
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return b`
1081
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return x`
1077
1082
  <ft-checkbox name="${this.filterId}"
1078
1083
  part="multivalued-option option"
1079
1084
  .exportpartsPrefixes=${["multivalued-option","option"]}
1080
1085
  data-value="${e.value}"
1081
1086
  .checked=${e.selected}
1082
1087
  .disabled=${this.disabled}
1083
- .indeterminate=${Ve((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1088
+ .indeterminate=${He((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1084
1089
  @change=${i=>this.optionsChanged(i,e)}>
1085
1090
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1086
1091
  </ft-checkbox>
1087
- `}buildMonoValuedOption(e){return b`
1092
+ `}buildMonoValuedOption(e){return x`
1088
1093
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1089
1094
  part="monovalued-option option"
1090
1095
  data-value="${e.value}"
@@ -1095,7 +1100,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1095
1100
  @change=${r=>this.optionsChanged(r,e)}>
1096
1101
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1097
1102
  </ft-radio>
1098
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};pe.elementDefinitions={"ft-button":z,"ft-ripple":K,"ft-typography":te,"ft-checkbox":Re,"ft-icon":de,"ft-radio":Oe};pe.styles=zp;_e([f({type:String})],pe.prototype,"filterId",void 0);_e([f({type:Object})],pe.prototype,"parent",void 0);_e([f({type:Array,hasChanged:et})],pe.prototype,"options",void 0);_e([f({type:Boolean})],pe.prototype,"multivalued",void 0);_e([f({type:Boolean})],pe.prototype,"disabled",void 0);_e([f({type:Boolean})],pe.prototype,"hideSelectedOptions",void 0);_e([f({type:Boolean})],pe.prototype,"displayCount",void 0);_e([f({type:Boolean})],pe.prototype,"preventNavigation",void 0);_e([f({type:String})],pe.prototype,"filter",void 0);_e([f({type:String})],pe.prototype,"moreValuesButtonLabel",void 0);_e([f({type:String})],pe.prototype,"noValuesLabel",void 0);_e([f()],pe.prototype,"filteredOptionsNumberAriaNotification",void 0);_e([Ft()],pe.prototype,"displayedValuesLimit",void 0);_e([D(".ft-filter-level--container")],pe.prototype,"container",void 0);_e([_()],pe.prototype,"radios",void 0);_e([_()],pe.prototype,"displayedPages",void 0);_e([_()],pe.prototype,"filteredOptions",void 0);var $e={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",E.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(E.colorSurface,"Design system")},hu=O`
1103
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};pe.elementDefinitions={"ft-button":U,"ft-ripple":Z,"ft-typography":re,"ft-checkbox":Re,"ft-icon":de,"ft-radio":Oe};pe.styles=zp;_e([f({type:String})],pe.prototype,"filterId",void 0);_e([f({type:Object})],pe.prototype,"parent",void 0);_e([f({type:Array,hasChanged:et})],pe.prototype,"options",void 0);_e([f({type:Boolean})],pe.prototype,"multivalued",void 0);_e([f({type:Boolean})],pe.prototype,"disabled",void 0);_e([f({type:Boolean})],pe.prototype,"hideSelectedOptions",void 0);_e([f({type:Boolean})],pe.prototype,"displayCount",void 0);_e([f({type:Boolean})],pe.prototype,"preventNavigation",void 0);_e([f({type:String})],pe.prototype,"filter",void 0);_e([f({type:String})],pe.prototype,"moreValuesButtonLabel",void 0);_e([f({type:String})],pe.prototype,"noValuesLabel",void 0);_e([f()],pe.prototype,"filteredOptionsNumberAriaNotification",void 0);_e([Ft()],pe.prototype,"displayedValuesLimit",void 0);_e([D(".ft-filter-level--container")],pe.prototype,"container",void 0);_e([_()],pe.prototype,"radios",void 0);_e([_()],pe.prototype,"displayedPages",void 0);_e([_()],pe.prototype,"filteredOptions",void 0);var Me={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",E.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(E.colorSurface,"Design system")},hu=O`
1099
1104
  .ft-snap-scroll {
1100
1105
  box-sizing: border-box;
1101
1106
  position: relative;
@@ -1130,7 +1135,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1130
1135
  flex-wrap: nowrap;
1131
1136
  align-items: flex-start;
1132
1137
  justify-content: flex-start;
1133
- gap: ${$e.gap};
1138
+ gap: ${Me.gap};
1134
1139
  }
1135
1140
 
1136
1141
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1173,11 +1178,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1173
1178
  .ft-snap-scroll--next {
1174
1179
  position: absolute;
1175
1180
  display: flex;
1176
- z-index: ${$e.buttonsZIndex};
1181
+ z-index: ${Me.buttonsZIndex};
1177
1182
  opacity: 1;
1178
1183
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1179
- ${w(q.backgroundColor,"transparent")};
1180
- ${w(q.color,$e.buttonsColor)};
1184
+ ${w(K.backgroundColor,"transparent")};
1185
+ ${w(K.color,Me.buttonsColor)};
1181
1186
  }
1182
1187
 
1183
1188
  .ft-snap-scroll--previous[hidden],
@@ -1190,37 +1195,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1190
1195
  top: 0;
1191
1196
  left: -1px;
1192
1197
  bottom: 0;
1193
- background: linear-gradient(to right, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1198
+ background: linear-gradient(to right, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1194
1199
  }
1195
1200
 
1196
1201
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1197
1202
  top: -1px;
1198
1203
  left: 0;
1199
1204
  right: 0;
1200
- background: linear-gradient(to bottom, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1205
+ background: linear-gradient(to bottom, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1201
1206
  }
1202
1207
 
1203
1208
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1204
1209
  top: 0;
1205
1210
  right: -1px;
1206
1211
  bottom: 0;
1207
- background: linear-gradient(to left, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1212
+ background: linear-gradient(to left, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1208
1213
  }
1209
1214
 
1210
1215
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1211
1216
  left: 0;
1212
1217
  right: 0;
1213
1218
  bottom: -1px;
1214
- background: linear-gradient(to top, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1219
+ background: linear-gradient(to top, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1215
1220
  }
1216
1221
 
1217
1222
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1218
1223
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1219
1224
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1220
1225
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1221
- background-color: ${$e.colorSurface};
1226
+ background-color: ${Me.colorSurface};
1222
1227
  }
1223
- `;var wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Js=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},xe=class extends N{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ee(200),this.updateScrollDebouncer=new ee(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=ie({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":xr}),r=this.controls&&this.withScroll;return b`
1228
+ `;var At=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},xe=class extends N{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ee(200),this.updateScrollDebouncer=new ee(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=ie({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":xr}),r=this.controls&&this.withScroll;return x`
1224
1229
  <div part="container" class="${e}">
1225
1230
  <ft-button
1226
1231
  class="ft-snap-scroll--previous"
@@ -1244,7 +1249,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1244
1249
  @click=${this.next}
1245
1250
  ></ft-button>
1246
1251
  </div>
1247
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Js(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};xe.elementDefinitions={"ft-button":z};xe.styles=hu;wt([f({type:Boolean})],xe.prototype,"horizontal",void 0);wt([f({type:Boolean})],xe.prototype,"hideScrollbar",void 0);wt([f({type:Boolean})],xe.prototype,"controls",void 0);wt([f({type:Boolean})],xe.prototype,"limitSize",void 0);wt([_()],xe.prototype,"elements",void 0);wt([_()],xe.prototype,"currentElement",void 0);wt([_()],xe.prototype,"withScroll",void 0);wt([_()],xe.prototype,"startReached",void 0);wt([_()],xe.prototype,"endReached",void 0);wt([D(".ft-snap-scroll--content")],xe.prototype,"contentSlot",void 0);var mu={"ft-snap-scroll":xe};W(mu);var ze={colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorSurface:o.external(E.colorSurface,"Design system"),transitionDuration:o.external(E.transitionDuration,"Design system"),transitionTimingFunction:o.external(E.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",E.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},gu=[Gt,Po,O`
1252
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Qs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};xe.elementDefinitions={"ft-button":U};xe.styles=hu;At([f({type:Boolean})],xe.prototype,"horizontal",void 0);At([f({type:Boolean})],xe.prototype,"hideScrollbar",void 0);At([f({type:Boolean})],xe.prototype,"controls",void 0);At([f({type:Boolean})],xe.prototype,"limitSize",void 0);At([_()],xe.prototype,"elements",void 0);At([_()],xe.prototype,"currentElement",void 0);At([_()],xe.prototype,"withScroll",void 0);At([_()],xe.prototype,"startReached",void 0);At([_()],xe.prototype,"endReached",void 0);At([D(".ft-snap-scroll--content")],xe.prototype,"contentSlot",void 0);var mu={"ft-snap-scroll":xe};W(mu);var ze={colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorSurface:o.external(E.colorSurface,"Design system"),transitionDuration:o.external(E.transitionDuration,"Design system"),transitionTimingFunction:o.external(E.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",E.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},gu=[Gt,Po,O`
1248
1253
  :host {
1249
1254
  display: flex;
1250
1255
  max-height: 100%;
@@ -1272,7 +1277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1272
1277
  .ft-filter--header ft-button {
1273
1278
  flex-shrink: 0;
1274
1279
  margin-left: auto;
1275
- ${w(q.iconSize,"18px")};
1280
+ ${w(K.iconSize,"18px")};
1276
1281
  }
1277
1282
 
1278
1283
  .filter-label {
@@ -1361,10 +1366,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1361
1366
  slot:not([name]) {
1362
1367
  display: none;
1363
1368
  }
1364
- `];var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Q=class extends Zi(N,Xs){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ee(300),this.changeDebouncer=new ee(10),this.lastDispatchedValues=[]}get flatOptions(){return Ve(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ve(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return b`
1369
+ `];var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},el=class extends CustomEvent{constructor(e){super("change",{detail:e})}},J=class extends qi(N,Js){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ee(300),this.changeDebouncer=new ee(10),this.lastDispatchedValues=[]}get flatOptions(){return He(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return He(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return x`
1365
1370
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1366
1371
  part="container">
1367
- ${!this.label&&!e?null:b`
1372
+ ${!this.label&&!e?null:x`
1368
1373
 
1369
1374
  <div class="ft-filter--header" part="header">
1370
1375
  <div class="filter-label" id="id-group-${this.id}">
@@ -1373,7 +1378,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1373
1378
  </ft-typography>
1374
1379
  <slot name="label"></slot>
1375
1380
  </div>
1376
- ${e&&!this.hideClearButton?b`
1381
+ ${e&&!this.hideClearButton?x`
1377
1382
  <ft-button icon="close"
1378
1383
  aria-label="${this.clearButtonLabel+" "+this.label}"
1379
1384
  dense
@@ -1401,8 +1406,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1401
1406
  @slotchange=${this.updateOptionsFromSlot}
1402
1407
  @option-change=${this.optionsChanged}></slot>
1403
1408
  </div>
1404
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s,l;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(l=(s=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&l!==void 0?l:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return b`
1405
- ${this.raiseSelectedOptions&&r.length>0?b`
1409
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s,l;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(l=(s=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&l!==void 0?l:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return x`
1410
+ ${this.raiseSelectedOptions&&r.length>0?x`
1406
1411
  <ft-filter-level
1407
1412
  filterId="${this.id}"
1408
1413
  ?multivalued=${this.multivalued}
@@ -1423,7 +1428,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1423
1428
  ${this.renderLevel(n,this.options)}
1424
1429
  ${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let d=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(d,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
1425
1430
  </ft-snap-scroll>
1426
- `}renderLevel(e,r,i){return b`
1431
+ `}renderLevel(e,r,i){return x`
1427
1432
  <ft-filter-level
1428
1433
  class="${e}"
1429
1434
  filterId="${this.id}"
@@ -1445,17 +1450,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1445
1450
  noValuesLabel="${this.noValuesLabel}"
1446
1451
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1447
1452
  ></ft-filter-level>
1448
- `}goBack(e){this.slideOut=e.detail.value,xo(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,xo(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){xo(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;he(this.lastDispatchedValues,e)||(this.dispatchEvent(new Qs(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};Q.elementDefinitions={"ft-button":z,"ft-filter-level":pe,"ft-snap-scroll":xe,"ft-typography":te};Q.styles=gu;ae([f({type:String})],Q.prototype,"id",void 0);ae([f({type:String})],Q.prototype,"label",void 0);ae([f({type:String})],Q.prototype,"filterPlaceHolder",void 0);ae([f({type:String})],Q.prototype,"clearButtonLabel",void 0);ae([f({type:String})],Q.prototype,"moreValuesButtonLabel",void 0);ae([f({type:String})],Q.prototype,"noValuesLabel",void 0);ae([se([])],Q.prototype,"options",void 0);ae([f({type:Boolean})],Q.prototype,"multivalued",void 0);ae([f({type:Boolean})],Q.prototype,"disabled",void 0);ae([f({type:Boolean})],Q.prototype,"raiseSelectedOptions",void 0);ae([f({type:Boolean})],Q.prototype,"displayCount",void 0);ae([Ft()],Q.prototype,"displayedValuesLimit",void 0);ae([se(void 0)],Q.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([f({type:Boolean})],Q.prototype,"hideClearButton",void 0);ae([D(".ft-filter--slot")],Q.prototype,"slotElement",void 0);ae([D(".ft-filter--container")],Q.prototype,"container",void 0);ae([D(".ft-filter--values")],Q.prototype,"valuesContainer",void 0);ae([D(".ft-filter--levels")],Q.prototype,"levelsContainer",void 0);ae([_()],Q.prototype,"lastLevelHasHiddenvalues",void 0);ae([D(".ft-filter--filter input")],Q.prototype,"filterInput",void 0);ae([An(".ft-filter--levels ft-filter-level")],Q.prototype,"levels",void 0);ae([_()],Q.prototype,"withScroll",void 0);ae([_()],Q.prototype,"filter",void 0);ae([_()],Q.prototype,"slideIn",void 0);ae([_()],Q.prototype,"slideOut",void 0);var ao=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xe=class extends N{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1453
+ `}goBack(e){this.slideOut=e.detail.value,xo(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,xo(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){xo(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;he(this.lastDispatchedValues,e)||(this.dispatchEvent(new el(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};J.elementDefinitions={"ft-button":U,"ft-filter-level":pe,"ft-snap-scroll":xe,"ft-typography":re};J.styles=gu;ae([f({type:String})],J.prototype,"id",void 0);ae([f({type:String})],J.prototype,"label",void 0);ae([f({type:String})],J.prototype,"filterPlaceHolder",void 0);ae([f({type:String})],J.prototype,"clearButtonLabel",void 0);ae([f({type:String})],J.prototype,"moreValuesButtonLabel",void 0);ae([f({type:String})],J.prototype,"noValuesLabel",void 0);ae([se([])],J.prototype,"options",void 0);ae([f({type:Boolean})],J.prototype,"multivalued",void 0);ae([f({type:Boolean})],J.prototype,"disabled",void 0);ae([f({type:Boolean})],J.prototype,"raiseSelectedOptions",void 0);ae([f({type:Boolean})],J.prototype,"displayCount",void 0);ae([Ft()],J.prototype,"displayedValuesLimit",void 0);ae([se(void 0)],J.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([f({type:Boolean})],J.prototype,"hideClearButton",void 0);ae([D(".ft-filter--slot")],J.prototype,"slotElement",void 0);ae([D(".ft-filter--container")],J.prototype,"container",void 0);ae([D(".ft-filter--values")],J.prototype,"valuesContainer",void 0);ae([D(".ft-filter--levels")],J.prototype,"levelsContainer",void 0);ae([_()],J.prototype,"lastLevelHasHiddenvalues",void 0);ae([D(".ft-filter--filter input")],J.prototype,"filterInput",void 0);ae([Rn(".ft-filter--levels ft-filter-level")],J.prototype,"levels",void 0);ae([_()],J.prototype,"withScroll",void 0);ae([_()],J.prototype,"filter",void 0);ae([_()],J.prototype,"slideIn",void 0);ae([_()],J.prototype,"slideOut",void 0);var ao=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xe=class extends N{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return x`
1449
1454
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1450
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};ao([f({type:String})],Xe.prototype,"label",void 0);ao([f({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);ao([f({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);ao([f({type:Object})],Xe.prototype,"subOptions",void 0);ao([se({})],Xe.prototype,"renderOption",void 0);ao([D(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var yu={"ft-filter":Q,"ft-filter-option":Xe};W(yu);var bu=O`
1455
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};ao([f({type:String})],Xe.prototype,"label",void 0);ao([f({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);ao([f({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);ao([f({type:Object})],Xe.prototype,"subOptions",void 0);ao([se({})],Xe.prototype,"renderOption",void 0);ao([D(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var yu={"ft-filter":J,"ft-filter-option":Xe};W(yu);var bu=O`
1451
1456
  .ft-accordion {
1452
1457
  box-sizing: border-box;
1453
1458
  }
1454
- `;var xu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},At=class extends N{constructor(){super(...arguments),this.multi=!1}render(){return b`
1459
+ `;var xu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rt=class extends N{constructor(){super(...arguments),this.multi=!1}render(){return x`
1455
1460
  <div class="ft-accordion">
1456
1461
  <slot @activated=${this.onChange}></slot>
1457
1462
  </div>
1458
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};At.elementDefinitions={};At.styles=bu;xu([f({type:Boolean})],At.prototype,"multi",void 0);xu([D("slot")],At.prototype,"content",void 0);var Pr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(E.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},vu=O`
1463
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Rt.elementDefinitions={};Rt.styles=bu;xu([f({type:Boolean})],Rt.prototype,"multi",void 0);xu([D("slot")],Rt.prototype,"content",void 0);var Pr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(E.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},vu=O`
1459
1464
  .ft-accordion-item {
1460
1465
  display: flex;
1461
1466
  flex-direction: column;
@@ -1501,7 +1506,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1501
1506
  .ft-accordion-item--separator {
1502
1507
  border-bottom: 1px solid ${Pr.colorOutline};
1503
1508
  }
1504
- `;var dn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},it=class extends N{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1509
+ `;var pn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},it=class extends N{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return x`
1505
1510
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1506
1511
  <div class="ft-accordion-item--toggle"
1507
1512
  part="toggle"
@@ -1512,13 +1517,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1512
1517
  aria-controls="ft-accordion-item-content"
1513
1518
  aria-expanded="${this.active}">
1514
1519
  <ft-ripple part="toggle-ripple"></ft-ripple>
1515
- ${this.icon?b`
1520
+ ${this.icon?x`
1516
1521
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1517
1522
  `:null}
1518
- ${this.label?b`
1523
+ ${this.label?x`
1519
1524
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1520
1525
  </ft-typography>
1521
- `:b`
1526
+ `:x`
1522
1527
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1523
1528
  `}
1524
1529
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1531,7 +1536,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1531
1536
  </div>
1532
1537
  <div class="ft-accordion-item--separator" part="separator"></div>
1533
1538
  </div>
1534
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};it.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":de};it.styles=vu;dn([f()],it.prototype,"icon",void 0);dn([f()],it.prototype,"iconVariant",void 0);dn([f()],it.prototype,"label",void 0);dn([f({type:Boolean,reflect:!0})],it.prototype,"active",void 0);var Su={"ft-accordion":At,"ft-accordion-item":it};W(Su);var Eu=o.extend("--ft-chip-color","",E.colorOnSurface),Le={backgroundColor:o.extend("--ft-chip-background-color","",E.colorSurface),color:Eu,fontSize:o.extend("--ft-chip-font-size","",be.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",be.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Eu),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",E.colorOutline),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Cu=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",E.colorOnPrimary)),el={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",E.colorPrimary)),color:Cu,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Cu)},Ou={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},wu=[pr,O`
1539
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};it.elementDefinitions={"ft-ripple":Z,"ft-typography":re,"ft-icon":de};it.styles=vu;pn([f()],it.prototype,"icon",void 0);pn([f()],it.prototype,"iconVariant",void 0);pn([f()],it.prototype,"label",void 0);pn([f({type:Boolean,reflect:!0})],it.prototype,"active",void 0);var Su={"ft-accordion":Rt,"ft-accordion-item":it};W(Su);var Eu=o.extend("--ft-chip-color","",E.colorOnSurface),Le={backgroundColor:o.extend("--ft-chip-background-color","",E.colorSurface),color:Eu,fontSize:o.extend("--ft-chip-font-size","",be.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",be.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Eu),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",E.colorOutline),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Cu=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",E.colorOnPrimary)),tl={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",E.colorPrimary)),color:Cu,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Cu)},Ou={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},wu=[pr,O`
1535
1540
  :host {
1536
1541
  display: inline-block;
1537
1542
  max-width: 100%;
@@ -1550,7 +1555,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1550
1555
  --chip-internal-font-size: ${Le.fontSize};
1551
1556
  --chip-internal-font-weight: ${Le.fontWeight};
1552
1557
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1553
- ${w(Ne.size,Le.iconSize)};
1558
+ ${w(De.size,Le.iconSize)};
1554
1559
  --chip-internal-vertical-padding: ${Le.verticalPadding};
1555
1560
  --chip-internal-horizontal-padding: ${Le.horizontalPadding};
1556
1561
  --chip-internal-icon-padding: 3px;
@@ -1558,7 +1563,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1558
1563
 
1559
1564
  border: 1px solid ${Le.borderColor};
1560
1565
  color: ${Le.color};
1561
- ${w(re.color,Le.rippleColor)};
1566
+ ${w(te.color,Le.rippleColor)};
1562
1567
  border-radius: var(${Yt(Le.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1563
1568
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1564
1569
  background-color: ${Le.backgroundColor};
@@ -1590,9 +1595,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1590
1595
  .ft-chip--highlighted {
1591
1596
  border: none;
1592
1597
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1593
- background-color: ${el.backgroundColor};
1594
- ${w(re.color,el.rippleColor)};
1595
- color: ${el.color};
1598
+ background-color: ${tl.backgroundColor};
1599
+ ${w(te.color,tl.rippleColor)};
1600
+ color: ${tl.color};
1596
1601
  }
1597
1602
 
1598
1603
  .ft-chip--clickable {
@@ -1623,9 +1628,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1623
1628
  }
1624
1629
 
1625
1630
  .ft-chip--icon-button {
1626
- ${w(q.iconSize,Le.iconSize)};
1627
- ${w(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1628
- ${w(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1631
+ ${w(K.iconSize,Le.iconSize)};
1632
+ ${w(K.horizontalPadding,"var(--chip-internal-icon-padding)")};
1633
+ ${w(K.verticalPadding,"var(--chip-internal-icon-padding)")};
1629
1634
  margin: calc((-1) * var(--chip-internal-icon-padding));
1630
1635
  }
1631
1636
 
@@ -1671,19 +1676,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1671
1676
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1672
1677
  order: -1;
1673
1678
  }
1674
- `];var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pn=class extends CustomEvent{constructor(){super("icon-click")}},ue=class extends N{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":xr};return b`
1679
+ `];var Pe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},un=class extends CustomEvent{constructor(){super("icon-click")}},ce=class extends N{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":xr};return x`
1675
1680
  <div class="${ie(r)}"
1676
- aria-label="${this.getLabel()}"
1681
+ aria-label="${this.labelOnIconOnly?k:this.getLabel()}"
1677
1682
  tabindex="${this.interactionsOnChip?0:-1}"
1678
1683
  @keyup=${this.onKeyUp}
1679
1684
  part="chip">
1680
1685
  <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
1681
- <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label">
1686
+ <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
1687
+ aria-hidden="${this.labelOnIconOnly?"true":k}">
1682
1688
  <slot @slotchange=${this.onSlotchange}></slot>
1683
1689
  </ft-typography>
1684
1690
  ${this.internalIcon?this.renderIcon():null}
1685
1691
  </div>
1686
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?b`
1692
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?x`
1687
1693
  <ft-button round
1688
1694
  class="ft-chip--icon-button"
1689
1695
  @click=${this.onIconClick}
@@ -1694,30 +1700,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1694
1700
  part="icon-button"
1695
1701
  ?hideTooltip=${this.hideIconTooltip}
1696
1702
  ></ft-button>
1697
- `:b`
1703
+ `:x`
1698
1704
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1699
1705
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1700
1706
  </div>
1701
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new pn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new pn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return mi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ue.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":de,"ft-button":z};ue.styles=wu;Me([f({type:Boolean})],ue.prototype,"highlighted",void 0);Me([f({type:Boolean})],ue.prototype,"removable",void 0);Me([f({type:Boolean})],ue.prototype,"disabled",void 0);Me([f({type:Boolean})],ue.prototype,"clickable",void 0);Me([f({type:Boolean})],ue.prototype,"iconClickable",void 0);Me([f({type:Boolean})],ue.prototype,"dense",void 0);Me([f({type:Boolean})],ue.prototype,"multiLine",void 0);Me([f()],ue.prototype,"label",void 0);Me([f()],ue.prototype,"iconLabel",void 0);Me([f({type:Boolean})],ue.prototype,"hideIconTooltip",void 0);Me([f()],ue.prototype,"icon",void 0);Me([f()],ue.prototype,"iconVariant",void 0);Me([f({type:Boolean})],ue.prototype,"trailingIcon",void 0);Me([f()],ue.prototype,"typographyVariant",void 0);Me([D("ft-typography slot")],ue.prototype,"slottedContent",void 0);var Au={"ft-chip":ue};W(Au);var J={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",E.colorOutline),textColor:o.extend("--ft-input-label-text-color","",E.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",E.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",E.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",E.borderRadiusS),colorError:o.external(E.colorError,"Design system")},Ru=O`
1707
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new un))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new un))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return mi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ce.elementDefinitions={"ft-ripple":Z,"ft-typography":re,"ft-icon":de,"ft-button":U};ce.styles=wu;Pe([f({type:Boolean})],ce.prototype,"highlighted",void 0);Pe([f({type:Boolean})],ce.prototype,"removable",void 0);Pe([f({type:Boolean})],ce.prototype,"disabled",void 0);Pe([f({type:Boolean})],ce.prototype,"clickable",void 0);Pe([f({type:Boolean})],ce.prototype,"iconClickable",void 0);Pe([f({type:Boolean})],ce.prototype,"dense",void 0);Pe([f({type:Boolean})],ce.prototype,"multiLine",void 0);Pe([f()],ce.prototype,"label",void 0);Pe([f()],ce.prototype,"iconLabel",void 0);Pe([f({type:Boolean})],ce.prototype,"hideIconTooltip",void 0);Pe([f({type:Boolean})],ce.prototype,"accessibleLabelOnIcon",void 0);Pe([f()],ce.prototype,"icon",void 0);Pe([f()],ce.prototype,"iconVariant",void 0);Pe([f({type:Boolean})],ce.prototype,"trailingIcon",void 0);Pe([f()],ce.prototype,"typographyVariant",void 0);Pe([D("ft-typography slot")],ce.prototype,"slottedContent",void 0);var Au={"ft-chip":ce};W(Au);var Y={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",E.colorOutline),textColor:o.extend("--ft-input-label-text-color","",E.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",E.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",E.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",E.borderRadiusS),colorError:o.external(E.colorError,"Design system")},Ru=O`
1702
1708
  .ft-input-label {
1703
1709
  position: absolute;
1704
1710
  inset: 0;
1705
1711
  display: flex;
1706
- background-color: ${J.backgroundColor};
1707
- border-radius: ${J.borderRadius} ${J.borderRadius} 0 0;
1708
- border-color: ${J.borderColor};
1712
+ background-color: ${Y.backgroundColor};
1713
+ border-radius: ${Y.borderRadius} ${Y.borderRadius} 0 0;
1714
+ border-color: ${Y.borderColor};
1709
1715
  border-bottom-width: 1px;
1710
1716
  border-bottom-style: solid;
1711
1717
  }
1712
1718
 
1713
1719
  .ft-input-label--outlined {
1714
- border-radius: ${J.borderRadius};
1720
+ border-radius: ${Y.borderRadius};
1715
1721
  border-width: 1px;
1716
1722
  border-style: solid;
1717
1723
  }
1718
1724
 
1719
1725
  .ft-input-label.ft-input-label--in-error {
1720
- border-color: ${J.colorError}
1726
+ border-color: ${Y.colorError}
1721
1727
  }
1722
1728
 
1723
1729
  .ft-input-label:before,
@@ -1727,7 +1733,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1727
1733
  }
1728
1734
 
1729
1735
  .ft-input-label:before {
1730
- width: calc(${J.horizontalSpacing} - 4px);
1736
+ width: calc(${Y.horizontalSpacing} - 4px);
1731
1737
  flex-shrink: 0;
1732
1738
  }
1733
1739
 
@@ -1740,20 +1746,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1740
1746
  display: flex;
1741
1747
  flex-shrink: 1;
1742
1748
  position: relative;
1743
- color: ${J.textColor};
1749
+ color: ${Y.textColor};
1744
1750
  transition: font-size 250ms, line-height 250ms, color 250ms;
1745
- max-width: calc(${J.labelMaxWidth} - 2 * (${J.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1751
+ max-width: calc(${Y.labelMaxWidth} - 2 * (${Y.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1746
1752
  text-overflow: ellipsis;
1747
- ${w(Be.fontSize,J.fontSize)};
1748
- ${w(Be.lineHeight,J.fontSize)};
1753
+ ${w(Be.fontSize,Y.fontSize)};
1754
+ ${w(Be.lineHeight,Y.fontSize)};
1749
1755
  }
1750
1756
 
1751
1757
  .ft-input-label--in-error .ft-input-label--text {
1752
- color: ${J.colorError}
1758
+ color: ${Y.colorError}
1753
1759
  }
1754
1760
 
1755
1761
  .ft-input-label--disabled .ft-input-label--text {
1756
- color: ${J.disabledTextColor};
1762
+ color: ${Y.disabledTextColor};
1757
1763
  }
1758
1764
 
1759
1765
  .ft-input-label--hidden-text {
@@ -1770,38 +1776,38 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1770
1776
  overflow: hidden;
1771
1777
  white-space: nowrap;
1772
1778
  text-overflow: ellipsis;
1773
- padding: ${J.verticalSpacing} 4px;
1774
- margin: calc(${J.verticalSpacing} * -1) 0;
1779
+ padding: ${Y.verticalSpacing} 4px;
1780
+ margin: calc(${Y.verticalSpacing} * -1) 0;
1775
1781
  max-width: 100%;
1776
1782
  box-sizing: border-box;
1777
1783
  }
1778
1784
 
1779
1785
  .ft-input-label--raised .ft-input-label--text {
1780
- ${w(Be.fontSize,J.raisedFontSize)};
1781
- ${w(Be.lineHeight,J.raisedFontSize)};
1786
+ ${w(Be.fontSize,Y.raisedFontSize)};
1787
+ ${w(Be.lineHeight,Y.raisedFontSize)};
1782
1788
  }
1783
1789
 
1784
1790
  .ft-input-label--raised .ft-input-label--floating-text {
1785
- top: ${J.verticalSpacing};
1791
+ top: ${Y.verticalSpacing};
1786
1792
  }
1787
1793
 
1788
1794
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1789
1795
  padding: 2px 4px;
1790
- z-index: ${J.raisedZIndex};
1791
- background-color: ${J.backgroundColor};
1792
- border-radius: ${J.borderRadius};
1796
+ z-index: ${Y.raisedZIndex};
1797
+ background-color: ${Y.backgroundColor};
1798
+ border-radius: ${Y.borderRadius};
1793
1799
  top: calc((${Be.lineHeight} / -2) + 2px);
1794
1800
  }
1795
- `;var _u=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Nr=class extends N{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1801
+ `;var _u=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Nr=class extends N{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1796
1802
  <div class="${ie(this.inputLabelClasses)}">
1797
- ${yr(this.text,()=>b`
1803
+ ${yr(this.text,()=>x`
1798
1804
  <div class="ft-input-label--text ft-typography--caption">
1799
1805
  <label class="ft-input-label--floating-text">${this.text}</label>
1800
1806
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1801
1807
  </div>
1802
1808
  `)}
1803
1809
  </div>
1804
- `}};Nr.elementDefinitions={};_u([f({type:String})],Nr.prototype,"text",void 0);_u([f({type:Boolean})],Nr.prototype,"raised",void 0);var tl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mt=class extends Nr{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}}};mt.elementDefinitions={};mt.styles=[Gt,Ru];tl([f({type:Boolean})],mt.prototype,"outlined",void 0);tl([f({type:Boolean})],mt.prototype,"error",void 0);tl([f({type:Boolean})],mt.prototype,"disabled",void 0);var Lu={"ft-input-label":mt};W(Lu);var V={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",E.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",E.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",E.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",E.colorSurface),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),borderRadiusS:o.external(E.borderRadiusS,"Design system"),elevation02:o.external(E.elevation02,"Design system"),colorError:o.external(E.colorError,"Design system")},ku=O`
1810
+ `}};Nr.elementDefinitions={};_u([f({type:String})],Nr.prototype,"text",void 0);_u([f({type:Boolean})],Nr.prototype,"raised",void 0);var rl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gt=class extends Nr{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}}};gt.elementDefinitions={};gt.styles=[Gt,Ru];rl([f({type:Boolean})],gt.prototype,"outlined",void 0);rl([f({type:Boolean})],gt.prototype,"error",void 0);rl([f({type:Boolean})],gt.prototype,"disabled",void 0);var Lu={"ft-input-label":gt};W(Lu);var H={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",E.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",E.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",E.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",E.colorSurface),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),borderRadiusS:o.external(E.borderRadiusS,"Design system"),elevation02:o.external(E.elevation02,"Design system"),colorError:o.external(E.colorError,"Design system")},ku=O`
1805
1811
  *:focus {
1806
1812
  outline: none;
1807
1813
  }
@@ -1816,7 +1822,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1816
1822
  .ft-select--main-panel {
1817
1823
  position: relative;
1818
1824
  display: flex;
1819
- height: calc(4 * ${V.verticalSpacing} + ${V.labelSize} + ${V.selectedOptionSize});
1825
+ height: calc(4 * ${H.verticalSpacing} + ${H.labelSize} + ${H.selectedOptionSize});
1820
1826
  }
1821
1827
 
1822
1828
  .ft-select--input-panel {
@@ -1825,17 +1831,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1825
1831
  display: flex;
1826
1832
  align-items: center;
1827
1833
  overflow: hidden;
1828
- padding-left: ${V.horizontalSpacing};
1829
- padding-right: ${V.horizontalSpacing};
1834
+ padding-left: ${H.horizontalSpacing};
1835
+ padding-right: ${H.horizontalSpacing};
1830
1836
  gap: 8px;
1831
- color: ${V.selectedOptionColor};
1832
- ${w(re.color,V.selectedOptionColor)};
1837
+ color: ${H.selectedOptionColor};
1838
+ ${w(te.color,H.selectedOptionColor)};
1833
1839
  }
1834
1840
 
1835
1841
  .ft-select--input-panel,
1836
1842
  .ft-select--options {
1837
- ${w(re.opacityContentOnSurfaceHover,"0.08")};
1838
- ${w(re.opacityContentOnSurfacePressed,"0.04")};
1843
+ ${w(te.opacityContentOnSurfaceHover,"0.08")};
1844
+ ${w(te.opacityContentOnSurfacePressed,"0.04")};
1839
1845
  }
1840
1846
 
1841
1847
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1844,7 +1850,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1844
1850
 
1845
1851
  .ft-select--disabled .ft-select--input-panel,
1846
1852
  .ft-select--disabled .ft-select--options {
1847
- color: ${V.colorOnSurfaceDisabled};
1853
+ color: ${H.colorOnSurfaceDisabled};
1848
1854
  }
1849
1855
 
1850
1856
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1853,21 +1859,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1853
1859
  }
1854
1860
 
1855
1861
  ft-input-label {
1856
- ${w(J.fontSize,V.selectedOptionSize)};
1857
- ${w(J.raisedFontSize,V.labelSize)};
1858
- ${w(J.verticalSpacing,V.verticalSpacing)};
1859
- ${w(J.horizontalSpacing,V.horizontalSpacing)};
1860
- ${w(J.backgroundColor,V.backgroundColor)};
1861
- ${w(J.labelMaxWidth,`calc(100% - ${Ne.size} - 8px)`)};
1862
+ ${w(Y.fontSize,H.selectedOptionSize)};
1863
+ ${w(Y.raisedFontSize,H.labelSize)};
1864
+ ${w(Y.verticalSpacing,H.verticalSpacing)};
1865
+ ${w(Y.horizontalSpacing,H.horizontalSpacing)};
1866
+ ${w(Y.backgroundColor,H.backgroundColor)};
1867
+ ${w(Y.labelMaxWidth,`calc(100% - ${De.size} - 8px)`)};
1862
1868
  }
1863
1869
 
1864
1870
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1865
- color: ${V.colorPrimary};
1871
+ color: ${H.colorPrimary};
1866
1872
  }
1867
1873
 
1868
1874
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1869
- ${w(J.borderColor,V.colorPrimary)};
1870
- ${w(J.textColor,V.colorPrimary)};
1875
+ ${w(Y.borderColor,H.colorPrimary)};
1876
+ ${w(Y.textColor,H.colorPrimary)};
1871
1877
  }
1872
1878
 
1873
1879
  .ft-select--selected-option {
@@ -1877,12 +1883,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1877
1883
  overflow: hidden;
1878
1884
  white-space: nowrap;
1879
1885
  text-overflow: ellipsis;
1880
- ${w(Ct.fontSize,V.selectedOptionSize)};
1881
- ${w(Ct.lineHeight,V.selectedOptionSize)};
1886
+ ${w(wt.fontSize,H.selectedOptionSize)};
1887
+ ${w(wt.lineHeight,H.selectedOptionSize)};
1882
1888
  }
1883
1889
 
1884
1890
  .ft-select--in-error .ft-select--selected-option {
1885
- color: ${V.colorError};
1891
+ color: ${H.colorError};
1886
1892
  }
1887
1893
 
1888
1894
  ft-icon {
@@ -1892,26 +1898,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1892
1898
 
1893
1899
 
1894
1900
  .ft-select--filled .ft-select--input-panel {
1895
- border-radius: ${V.borderRadiusS} ${V.borderRadiusS} 0 0;
1901
+ border-radius: ${H.borderRadiusS} ${H.borderRadiusS} 0 0;
1896
1902
  }
1897
1903
 
1898
1904
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1899
1905
  align-self: stretch;
1900
- padding-top: calc(${V.labelSize} + 2 * ${V.verticalSpacing});
1906
+ padding-top: calc(${H.labelSize} + 2 * ${H.verticalSpacing});
1901
1907
  }
1902
1908
 
1903
1909
  .ft-select--outlined .ft-select--input-panel {
1904
- border-radius: ${V.borderRadiusS};
1910
+ border-radius: ${H.borderRadiusS};
1905
1911
  }
1906
1912
 
1907
1913
  .ft-select--options {
1908
1914
  display: none;
1909
1915
  position: absolute;
1910
1916
  top: 100%;
1911
- color: ${V.optionsColor};
1912
- background: ${V.backgroundColor};
1913
- z-index: ${V.optionsZIndex};
1914
- box-shadow: ${V.elevation02};
1917
+ color: ${H.optionsColor};
1918
+ background: ${H.backgroundColor};
1919
+ z-index: ${H.optionsZIndex};
1920
+ box-shadow: ${H.elevation02};
1915
1921
  width: max-content;
1916
1922
  }
1917
1923
 
@@ -1921,17 +1927,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1921
1927
 
1922
1928
  .ft-select--options-displayed .ft-select--options {
1923
1929
  display: block;
1924
- max-height: ${V.optionsHeight};
1930
+ max-height: ${H.optionsHeight};
1925
1931
  overflow-y: auto;
1926
1932
  }
1927
1933
 
1928
1934
  .ft-select--helper-text {
1929
- padding: 0 ${V.horizontalSpacing};
1930
- color: ${V.helperColor};
1935
+ padding: 0 ${H.horizontalSpacing};
1936
+ color: ${H.helperColor};
1931
1937
  }
1932
1938
 
1933
1939
  .ft-select--in-error .ft-select--helper-text {
1934
- color: ${V.colorError};
1940
+ color: ${H.colorError};
1935
1941
  }
1936
1942
 
1937
1943
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
@@ -1939,8 +1945,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1939
1945
  }
1940
1946
  `;var Tu=O`
1941
1947
  .ft-select--option {
1942
- ${w(re.opacityContentOnSurfaceHover,"0.08")};
1943
- ${w(re.opacityContentOnSurfacePressed,"0.04")};
1948
+ ${w(te.opacityContentOnSurfaceHover,"0.08")};
1949
+ ${w(te.opacityContentOnSurfacePressed,"0.04")};
1944
1950
  }
1945
1951
 
1946
1952
  .ft-select--option > *:not(ft-ripple) {
@@ -1949,14 +1955,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1949
1955
 
1950
1956
  .ft-select--option {
1951
1957
  position: relative;
1952
- padding: 4px ${V.horizontalSpacing};
1958
+ padding: 4px ${H.horizontalSpacing};
1953
1959
  min-height: 32px;
1954
1960
  display: flex;
1955
1961
  align-items: center;
1956
1962
  }
1957
1963
 
1958
1964
  .ft-select--option:hover {
1959
- border-left: 2px ${V.colorPrimary} solid;
1965
+ border-left: 2px ${H.colorPrimary} solid;
1960
1966
  }
1961
1967
 
1962
1968
  .ft-select--option span {
@@ -1964,7 +1970,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1964
1970
  overflow: hidden;
1965
1971
  }
1966
1972
 
1967
- `;var ti=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends N{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
1973
+ `;var ti=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ne=class extends N{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return x`
1968
1974
  <div class="${ie(i)}"
1969
1975
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
1970
1976
  tabindex="0"
@@ -1974,9 +1980,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1974
1980
  <ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
1975
1981
  <slot @slotchange=${this.onSlotChange}>
1976
1982
  </slot>
1977
- ${this.isSlotEmpty?b`<span>${this.label}</span>`:b``}
1983
+ ${this.isSlotEmpty?x`<span>${this.label}</span>`:x``}
1978
1984
  </div>
1979
- `}onSlotChange(){this.isSlotEmpty=ko(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Pe.elementDefinitions={"ft-ripple":K};Pe.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0};Pe.styles=[Tu,to];ti([f({type:String})],Pe.prototype,"label",void 0);ti([f({type:Object,converter:t=>t})],Pe.prototype,"value",void 0);ti([f({type:Boolean,reflect:!0})],Pe.prototype,"selected",void 0);ti([D("slot")],Pe.prototype,"slotElement",void 0);ti([_()],Pe.prototype,"isSlotEmpty",void 0);var ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};var oe=class t extends N{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return Un(this.optionsList)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return b`
1985
+ `}onSlotChange(){this.isSlotEmpty=ko(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ne.elementDefinitions={"ft-ripple":Z};Ne.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0};Ne.styles=[Tu,to];ti([f({type:String})],Ne.prototype,"label",void 0);ti([f({type:Object,converter:t=>t})],Ne.prototype,"value",void 0);ti([f({type:Boolean,reflect:!0})],Ne.prototype,"selected",void 0);ti([D("slot")],Ne.prototype,"slotElement",void 0);ti([_()],Ne.prototype,"isSlotEmpty",void 0);var ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};var oe=class t extends N{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return zn(this.optionsList)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return x`
1980
1986
  <div class="${ie(u)}" part="container">
1981
1987
  <div class="ft-select--main-panel" part="main-panel">
1982
1988
  <ft-input-label text="${this.label}"
@@ -2021,18 +2027,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2021
2027
  </div>
2022
2028
  </div>
2023
2029
  <slot name="helper" part="helper">
2024
- ${this.helper?b`
2030
+ ${this.helper?x`
2025
2031
  <ft-typography class="ft-select--helper-text" variant="${ye.caption}">${this.helper}
2026
2032
  </ft-typography>`:k}
2027
2033
  </slot>
2028
2034
  </div>
2029
- `}renderOption(e){let r=this.selectedOption===e;return b`
2035
+ `}renderOption(e){let r=this.selectedOption===e;return x`
2030
2036
  <ft-select-option
2031
2037
  ?selected=${r}
2032
2038
  label="${e.label}"
2033
2039
  .value=${e.value}
2034
2040
  ></ft-select-option>
2035
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Sa(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",V.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=ko(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>he(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>he(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!he((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};oe.elementDefinitions={"ft-input-label":mt,"ft-typography":te,"ft-ripple":K,"ft-icon":de,"ft-select-option":Pe};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Gt,ku];ke([f({type:String})],oe.prototype,"label",void 0);ke([f({type:String})],oe.prototype,"ariaLabel",void 0);ke([f({type:String})],oe.prototype,"helper",void 0);ke([f({type:Boolean})],oe.prototype,"outlined",void 0);ke([f({type:Boolean})],oe.prototype,"disabled",void 0);ke([f({type:Boolean})],oe.prototype,"error",void 0);ke([f({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);ke([f({type:Array})],oe.prototype,"options",void 0);ke([_()],oe.prototype,"selectedOption",void 0);ke([_()],oe.prototype,"optionsDisplayed",void 0);ke([_()],oe.prototype,"focusOptions",void 0);ke([_()],oe.prototype,"currentSearch",void 0);ke([_()],oe.prototype,"lastSearchInputDate",void 0);ke([D(".ft-select")],oe.prototype,"container",void 0);ke([D(".ft-select--options")],oe.prototype,"optionsMenu",void 0);ke([D(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);ke([D("slot:not([name])")],oe.prototype,"optionsSlot",void 0);var Iu={"ft-select":oe,"ft-select-option":Pe};W(Iu);var Te={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(E.borderRadiusM,"Design system")},Pu=O`
2041
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Ea(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",H.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=ko(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>he(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>he(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!he((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};oe.elementDefinitions={"ft-input-label":gt,"ft-typography":re,"ft-ripple":Z,"ft-icon":de,"ft-select-option":Ne};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Gt,ku];ke([f({type:String})],oe.prototype,"label",void 0);ke([f({type:String})],oe.prototype,"ariaLabel",void 0);ke([f({type:String})],oe.prototype,"helper",void 0);ke([f({type:Boolean})],oe.prototype,"outlined",void 0);ke([f({type:Boolean})],oe.prototype,"disabled",void 0);ke([f({type:Boolean})],oe.prototype,"error",void 0);ke([f({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);ke([f({type:Array})],oe.prototype,"options",void 0);ke([_()],oe.prototype,"selectedOption",void 0);ke([_()],oe.prototype,"optionsDisplayed",void 0);ke([_()],oe.prototype,"focusOptions",void 0);ke([_()],oe.prototype,"currentSearch",void 0);ke([_()],oe.prototype,"lastSearchInputDate",void 0);ke([D(".ft-select")],oe.prototype,"container",void 0);ke([D(".ft-select--options")],oe.prototype,"optionsMenu",void 0);ke([D(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);ke([D("slot:not([name])")],oe.prototype,"optionsSlot",void 0);var Iu={"ft-select":oe,"ft-select-option":Ne};W(Iu);var Te={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(E.borderRadiusM,"Design system")},Pu=O`
2036
2042
  :host {
2037
2043
  width: ${Te.width};
2038
2044
  height: ${Te.height};
@@ -2059,7 +2065,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2059
2065
  background-position: calc(100vw + ${Te.glareWidth}) 0, calc(${Te.glareWidth} * -1) 0;
2060
2066
  }
2061
2067
  }
2062
- `;var F={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",E.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(E.colorSurface,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),elevation02:o.external(E.elevation02,"Design system"),buttonColor:o.external(q.color,"Button"),buttonRippleColor:o.external(q.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",E.colorPrimary)},Nu=O`
2068
+ `;var M={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",E.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(E.colorSurface,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),elevation02:o.external(E.elevation02,"Design system"),buttonColor:o.external(K.color,"Button"),buttonRippleColor:o.external(K.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",E.colorPrimary)},Nu=O`
2063
2069
  * {
2064
2070
  box-sizing: border-box;
2065
2071
  }
@@ -2068,7 +2074,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2068
2074
  display: flex;
2069
2075
  flex-direction: column;
2070
2076
  gap: 8px;
2071
- color: ${F.colorOnSurface};
2077
+ color: ${M.colorOnSurface};
2072
2078
  outline: none;
2073
2079
  }
2074
2080
 
@@ -2077,21 +2083,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2077
2083
  }
2078
2084
 
2079
2085
  .ft-search-bar--mobile-menu-open {
2080
- position: ${F.mobileOpenPosition};
2081
- top: ${F.mobileOpenTop};
2082
- bottom: ${F.mobileOpenBottom};
2083
- left: ${F.mobileOpenLeft};
2084
- right: ${F.mobileOpenRight};
2085
- z-index: ${F.floatingZIndex};
2086
+ position: ${M.mobileOpenPosition};
2087
+ top: ${M.mobileOpenTop};
2088
+ bottom: ${M.mobileOpenBottom};
2089
+ left: ${M.mobileOpenLeft};
2090
+ right: ${M.mobileOpenRight};
2091
+ z-index: ${M.floatingZIndex};
2086
2092
  padding: 16px;
2087
2093
  }
2088
2094
 
2089
2095
  .ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
2090
- background: ${F.colorSurface};
2096
+ background: ${M.colorSurface};
2091
2097
  }
2092
2098
 
2093
2099
  .ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
2094
- position: ${F.mobileOpenPosition.get("static")};
2100
+ position: ${M.mobileOpenPosition.get("static")};
2095
2101
  }
2096
2102
 
2097
2103
  .ft-search-bar {
@@ -2099,20 +2105,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2099
2105
  display: flex;
2100
2106
  flex-direction: row;
2101
2107
  align-items: center;
2102
- height: ${F.height};
2108
+ height: ${M.height};
2103
2109
 
2104
- background: ${F.colorSurface};
2105
- border: 1px solid ${F.colorOutline};
2106
- border-radius: ${F.borderRadius};
2110
+ background: ${M.colorSurface};
2111
+ border: 1px solid ${M.colorOutline};
2112
+ border-radius: ${M.borderRadius};
2107
2113
  }
2108
2114
 
2109
2115
  .ft-search-bar--skeleton {
2110
- ${w(Te.height,F.height)};
2111
- ${w(Te.borderRadiusM,F.borderRadius)};
2116
+ ${w(Te.height,M.height)};
2117
+ ${w(Te.borderRadiusM,M.borderRadius)};
2112
2118
  }
2113
2119
 
2114
2120
  .ft-search-bar--floating-panel-open .ft-search-bar {
2115
- border-radius: ${F.borderRadius} ${F.borderRadius} 0 0;
2121
+ border-radius: ${M.borderRadius} ${M.borderRadius} 0 0;
2116
2122
  }
2117
2123
 
2118
2124
  .ft-search-bar--input-container {
@@ -2130,7 +2136,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2130
2136
  align-self: stretch;
2131
2137
  display: grid;
2132
2138
  padding: 0 8px;
2133
- border-radius: ${F.borderRadius};
2139
+ border-radius: ${M.borderRadius};
2134
2140
  }
2135
2141
 
2136
2142
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -2139,7 +2145,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2139
2145
  }
2140
2146
 
2141
2147
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
2142
- outline: 2px solid ${F.colorPrimary};
2148
+ outline: 2px solid ${M.colorPrimary};
2143
2149
  }
2144
2150
 
2145
2151
  .ft-search-bar--input {
@@ -2147,12 +2153,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2147
2153
  flex-grow: 1;
2148
2154
  border: none;
2149
2155
  background-color: transparent;
2150
- color: ${F.colorOnSurface};
2156
+ color: ${M.colorOnSurface};
2151
2157
  outline: none;
2152
2158
  }
2153
2159
 
2154
2160
  .ft-search-bar--input::placeholder {
2155
- color: ${F.colorOnSurfaceMedium};
2161
+ color: ${M.colorOnSurfaceMedium};
2156
2162
  }
2157
2163
 
2158
2164
  .ft-search-bar--actions {
@@ -2166,12 +2172,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2166
2172
  .ft-search-bar > ft-button,
2167
2173
  .ft-search-bar--actions ft-button {
2168
2174
  flex-shrink: 0;
2169
- ${w(q.backgroundColor,"transparent")};
2175
+ ${w(K.backgroundColor,"transparent")};
2170
2176
  }
2171
2177
 
2172
2178
  .ft-search-bar--left-action {
2173
- ${w(q.borderRadius,`calc(${F.borderRadius} - 1px) 0 0 calc(${F.borderRadius} - 1px)`)};
2174
- border-right: 1px solid ${F.colorOutline};
2179
+ ${w(K.borderRadius,`calc(${M.borderRadius} - 1px) 0 0 calc(${M.borderRadius} - 1px)`)};
2180
+ border-right: 1px solid ${M.colorOutline};
2175
2181
  height: 100%;
2176
2182
  }
2177
2183
 
@@ -2180,7 +2186,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2180
2186
  }
2181
2187
 
2182
2188
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2183
- ${w(q.borderRadius,`calc(${F.borderRadius} - 1px) 0 0 0`)};
2189
+ ${w(K.borderRadius,`calc(${M.borderRadius} - 1px) 0 0 0`)};
2184
2190
  }
2185
2191
 
2186
2192
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2190,13 +2196,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2190
2196
 
2191
2197
  .ft-search-bar--separator {
2192
2198
  height: 20px;
2193
- border-right: 1px solid ${F.colorOutline};
2199
+ border-right: 1px solid ${M.colorOutline};
2194
2200
  }
2195
2201
 
2196
2202
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2197
- ${w(J.borderColor,"transparent")};
2198
- ${w(J.borderRadius,`calc(${F.borderRadius} - 1px)`)};
2199
- ${w(V.selectedOptionColor,F.buttonColor)};
2203
+ ${w(Y.borderColor,"transparent")};
2204
+ ${w(Y.borderRadius,`calc(${M.borderRadius} - 1px)`)};
2205
+ ${w(H.selectedOptionColor,M.buttonColor)};
2200
2206
  }
2201
2207
 
2202
2208
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2213,7 +2219,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2213
2219
  }
2214
2220
 
2215
2221
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
2216
- border-radius: calc(${F.borderRadius} - 1px) 0 0 calc(${F.borderRadius} - 1px);
2222
+ border-radius: calc(${M.borderRadius} - 1px) 0 0 calc(${M.borderRadius} - 1px);
2217
2223
  }
2218
2224
 
2219
2225
  [part="content-locale-selector"] {
@@ -2259,7 +2265,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2259
2265
 
2260
2266
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2261
2267
  margin-right: auto;
2262
- ${w(V.optionsZIndex,"2")};
2268
+ ${w(H.optionsZIndex,"2")};
2263
2269
  }
2264
2270
 
2265
2271
  .ft-search-bar--desktop-menu {
@@ -2312,8 +2318,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2312
2318
 
2313
2319
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2314
2320
  display: block;
2315
- height: ${F.desktopFiltersHeight};
2316
- ${w($e.gap,"16px")};
2321
+ height: ${M.desktopFiltersHeight};
2322
+ ${w(Me.gap,"16px")};
2317
2323
  }
2318
2324
 
2319
2325
  .ft-search-bar--desktop-menu ft-filter {
@@ -2328,15 +2334,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2328
2334
  }
2329
2335
 
2330
2336
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2331
- max-width: calc(50% - ${$e.gap} / 2);
2337
+ max-width: calc(50% - ${Me.gap} / 2);
2332
2338
  }
2333
2339
 
2334
2340
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2335
- max-width: max(250px, calc(33% - 2 * ${$e.gap} / 3));
2341
+ max-width: max(250px, calc(33% - 2 * ${Me.gap} / 3));
2336
2342
  }
2337
2343
 
2338
2344
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2339
- max-width: max(250px, calc(25% - 3 * ${$e.gap} / 4));
2345
+ max-width: max(250px, calc(25% - 3 * ${Me.gap} / 4));
2340
2346
  }
2341
2347
 
2342
2348
  .ft-search-bar--hierarchical-filter {
@@ -2393,7 +2399,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2393
2399
  .ft-search-bar--filter-label-values {
2394
2400
  flex-grow: 0;
2395
2401
  flex-shrink: 1;
2396
- color: ${F.colorOnSurfaceMedium};
2402
+ color: ${M.colorOnSurfaceMedium};
2397
2403
  }
2398
2404
 
2399
2405
  ft-accordion-item::part(toggle) {
@@ -2413,14 +2419,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2413
2419
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2414
2420
  margin: 0;
2415
2421
  }
2416
- `;var qt=class extends N{render(){return b`
2417
- `}};qt.elementDefinitions={};qt.styles=Pu;var $u={"ft-skeleton":qt};W($u);var Rt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ee(r)}render(){let e=this.recentSearchesMatchingQuery;return b`
2422
+ `;var qt=class extends N{render(){return x`
2423
+ `}};qt.elementDefinitions={};qt.styles=Pu;var $u={"ft-skeleton":qt};W($u);var _t=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ee(r)}render(){let e=this.recentSearchesMatchingQuery;return x`
2418
2424
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2419
2425
  id="${this.listboxId}"
2420
2426
  role="listbox"
2421
2427
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2422
2428
  part="suggestions-container">
2423
- ${fe(e.slice(0,5),r=>r,(r,i)=>b`
2429
+ ${fe(e.slice(0,5),r=>r,(r,i)=>x`
2424
2430
  <div part="suggestion-container"
2425
2431
  class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":k}">
2426
2432
  <a href="${this.getRequestWithQuery(r)}"
@@ -2449,7 +2455,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2449
2455
  </ft-button>
2450
2456
  </div>
2451
2457
  `)}
2452
- ${fe(this.searchBar.suggestions,r=>r.value,(r,i)=>b`
2458
+ ${fe(this.searchBar.suggestions,r=>r.value,(r,i)=>x`
2453
2459
  <div part="suggestion-container"
2454
2460
  class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":k}">
2455
2461
  <a href="${this.getRequestWithQuery(r.value)}"
@@ -2467,9 +2473,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2467
2473
  </div>
2468
2474
  `)}
2469
2475
  </div>
2470
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ht.file_format:ht.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ze.BOOK:Ze.ARTICLE;break;case"DOCUMENT":i=nu(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ze.TOPICS;break;case"HTML_PACKAGE":i=Ze.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ze.FILE_CODE;break}return b`
2476
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?mt.file_format:mt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ze.BOOK:Ze.ARTICLE;break;case"DOCUMENT":i=nu(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ze.TOPICS;break;case"HTML_PACKAGE":i=Ze.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ze.FILE_CODE;break}return x`
2471
2477
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2472
- `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Rt.styles=[Pa,O`
2478
+ `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};_t.styles=[Na,O`
2473
2479
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2474
2480
  flex-grow: 1;
2475
2481
  flex-shrink: 1;
@@ -2478,7 +2484,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2478
2484
  }
2479
2485
 
2480
2486
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2481
- border-top: 1px solid ${F.colorOutline};
2487
+ border-top: 1px solid ${M.colorOutline};
2482
2488
  }
2483
2489
 
2484
2490
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2488,15 +2494,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2488
2494
  .ft-search-bar--floating-panel,
2489
2495
  .ft-search-bar--desktop .ft-search-bar--suggestions {
2490
2496
  position: absolute;
2491
- z-index: ${F.floatingZIndex};
2497
+ z-index: ${M.floatingZIndex};
2492
2498
  top: 100%;
2493
2499
  left: -1px;
2494
2500
  right: -1px;
2495
2501
  display: none;
2496
- background: ${F.colorSurface};
2497
- border: 1px solid ${F.colorOutline};
2498
- border-radius: 0 0 ${F.borderRadius} ${F.borderRadius};
2499
- box-shadow: ${F.elevation02};
2502
+ background: ${M.colorSurface};
2503
+ border: 1px solid ${M.colorOutline};
2504
+ border-radius: 0 0 ${M.borderRadius} ${M.borderRadius};
2505
+ box-shadow: ${M.elevation02};
2500
2506
  outline: none;
2501
2507
  }
2502
2508
 
@@ -2515,10 +2521,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2515
2521
 
2516
2522
  [part~="suggestion-container"].ft-search-bar--suggestions-selected {
2517
2523
  outline: none;
2518
- box-shadow: inset 3px 0 0 ${F.activeItemBorderColor};
2524
+ box-shadow: inset 3px 0 0 ${M.activeItemBorderColor};
2519
2525
  }
2520
2526
  [part~="suggestion-container"]:hover {
2521
- box-shadow: inset 3px 0 0 ${F.activeItemBorderColor};
2527
+ box-shadow: inset 3px 0 0 ${M.activeItemBorderColor};
2522
2528
  }
2523
2529
 
2524
2530
  [part~="remove-suggestion"] {
@@ -2534,7 +2540,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2534
2540
  gap: 8px;
2535
2541
  cursor: pointer;
2536
2542
  flex-grow: 1;
2537
- color: ${F.colorOnSurface};
2543
+ color: ${M.colorOnSurface};
2538
2544
  min-height: 52px;
2539
2545
  }
2540
2546
 
@@ -2547,7 +2553,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2547
2553
  }
2548
2554
 
2549
2555
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2550
- border-top: 1px solid ${F.colorOutline};
2556
+ border-top: 1px solid ${M.colorOutline};
2551
2557
  }
2552
2558
 
2553
2559
  .ft-search-bar--suggestion ft-typography {
@@ -2557,10 +2563,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2557
2563
  }
2558
2564
 
2559
2565
  ft-ripple {
2560
- ${w(re.opacityContentOnSurfaceHover,re.opacityContentOnSurfaceSelected)}
2566
+ ${w(te.opacityContentOnSurfaceHover,te.opacityContentOnSurfaceSelected)}
2561
2567
  }
2562
- `];var _t=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=b`
2563
- ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?b`
2568
+ `];var Lt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return x``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=x`
2569
+ ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?x`
2564
2570
  <ft-chip part="selected-filters selected-filter-ft-locale"
2565
2571
  ?dense=${this.searchBar.dense&&!e}
2566
2572
  ?clickable=${e}
@@ -2570,7 +2576,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2570
2576
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2571
2577
  </ft-chip>
2572
2578
  `:null}
2573
- ${fe(this.searchBar.facets,n=>n.key,n=>{let a=Lp(n);return fe(a,s=>{let l=n.label+": "+Ap(s),d=n.key.replace(":","-"),u=b`
2579
+ ${fe(this.searchBar.facets,n=>n.key,n=>{let a=Lp(n);return fe(a,s=>{let l=n.label+": "+Ap(s),d=n.key.replace(":","-"),u=x`
2574
2580
  <ft-chip
2575
2581
  part="selected-filters selected-filter-${d}"
2576
2582
  ?dense=${this.searchBar.dense&&!e}
@@ -2585,12 +2591,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2585
2591
  data-value="${s}">
2586
2592
  ${wp(s)}
2587
2593
  </ft-chip>
2588
- `;return r?u:b`
2594
+ `;return r?u:x`
2589
2595
  <ft-tooltip inline text="${l}">
2590
2596
  ${u}
2591
2597
  </ft-tooltip>
2592
2598
  `})})}
2593
- ${e?b`
2599
+ ${e?x`
2594
2600
  <ft-chip part="selected-filters mobile-filters-opener"
2595
2601
  icon="plus"
2596
2602
  clickable
@@ -2598,18 +2604,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2598
2604
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2599
2605
  </ft-chip>
2600
2606
  `:k}
2601
- `;return r?b`
2607
+ `;return r?x`
2602
2608
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2603
2609
  class="ft-search-bar--selected-filters"
2604
2610
  part="selected-filters-container"
2605
2611
  exportpartsPrefix="selected-filters-container">
2606
2612
  ${i}
2607
2613
  </ft-snap-scroll>
2608
- `:b`
2614
+ `:x`
2609
2615
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2610
2616
  ${i}
2611
2617
  </div>
2612
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};_t.styles=O`
2618
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Lt.styles=O`
2613
2619
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2614
2620
  flex-shrink: 0;
2615
2621
  display: flex;
@@ -2620,7 +2626,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2620
2626
 
2621
2627
  ft-snap-scroll.ft-search-bar--selected-filters {
2622
2628
  overflow: hidden;
2623
- ${w($e.gap,"4px")};
2629
+ ${w(Me.gap,"4px")};
2624
2630
  }
2625
2631
 
2626
2632
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2639,7 +2645,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2639
2645
  .ft-search-bar--selected-filters ft-chip {
2640
2646
  flex-grow: 0;
2641
2647
  }
2642
- `;var ig=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},so=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new _t(e),this.suggestManager=i??new Rt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return b`
2648
+ `;var ig=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},so=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Lt(e),this.suggestManager=i??new _t(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return x`
2643
2649
  <div class="${ie(r)}" part="container" tabindex="-1">
2644
2650
  <div class="ft-search-bar" role="search">
2645
2651
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2663,7 +2669,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2663
2669
  </div>
2664
2670
  ${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
2665
2671
  ${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
2666
- ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?b`
2672
+ ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?x`
2667
2673
  <ft-button class="ft-search-bar--launch-search"
2668
2674
  href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
2669
2675
  part="launch-search-in-panel"
@@ -2673,9 +2679,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2673
2679
  </ft-button>
2674
2680
  `:k}
2675
2681
  </div>
2676
- `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return b`
2682
+ `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return x`
2677
2683
  <div class="ft-search-bar--actions" part="search-bar-actions">
2678
- ${e?b`
2684
+ ${e?x`
2679
2685
  <ft-button class="ft-search-bar--clear-query"
2680
2686
  part="clear-query"
2681
2687
  icon="close"
@@ -2698,7 +2704,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2698
2704
  </div>
2699
2705
  `}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};so.styles=O`
2700
2706
 
2701
- `;ig([vo()],so.prototype,"onSearchBarKeyDown",null);var ng=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new _t(e),this.suggestManager=i??new Rt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return b`
2707
+ `;ig([vo()],so.prototype,"onSearchBarKeyDown",null);var ng=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Lt(e),this.suggestManager=i??new _t(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return x`
2702
2708
  <div class="${ie(r)}" part="container" tabindex="-1">
2703
2709
  <div class="ft-search-bar" part="search-bar" role="search">
2704
2710
  ${this.renderSearchBarLeftAction()}
@@ -2727,7 +2733,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2727
2733
  </div>
2728
2734
  ${this.searchBar.dense?k:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2729
2735
  </div>
2730
- `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?k:b`
2736
+ `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?k:x`
2731
2737
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2732
2738
  part="filters-opener"
2733
2739
  trailingIcon
@@ -2739,24 +2745,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2739
2745
  >
2740
2746
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2741
2747
  </ft-button>
2742
- `:this.searchBar.hasLocaleSelector()?b`
2748
+ `:this.searchBar.hasLocaleSelector()?x`
2743
2749
  <ft-select outlined
2744
2750
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2745
2751
  part="content-locale select-ft-locale"
2746
2752
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2747
2753
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2748
2754
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2749
- ${fe(this.searchBar.availableContentLocales,e=>e.lang,e=>b`
2755
+ ${fe(this.searchBar.availableContentLocales,e=>e.lang,e=>x`
2750
2756
  <ft-select-option .value=${e.lang}
2751
2757
  label="${e.label}"
2752
2758
  ?selected=${e.lang==this.searchBar.contentLocale}>
2753
2759
  </ft-select-option>
2754
2760
  `)}
2755
2761
  </ft-select>
2756
- `:k}renderDesktopSearchBarButtons(){return b`
2762
+ `:k}renderDesktopSearchBarButtons(){return x`
2757
2763
  <div class="ft-search-bar--actions"
2758
2764
  part="search-bar-actions">
2759
- ${this.searchBar.query?b`
2765
+ ${this.searchBar.query?x`
2760
2766
  <ft-button class="ft-search-bar--clear-query"
2761
2767
  part="clear-query"
2762
2768
  icon="close"
@@ -2777,24 +2783,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2777
2783
  </div>
2778
2784
  `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};lo.styles=O`
2779
2785
 
2780
- `;ng([vo()],lo.prototype,"onSearchBarKeyDown",null);var Z=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Mu={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},rl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ag=()=>{},B=class extends N{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new zt(Mu,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new lt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=rt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Rt(this),this.selectedFacetsManager=new _t(this),this.desktopSearchBarManager=new lo(this),this.mobileSearchBarManager=new so(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ee(10),this.updateLocalesDebouncer=new ee(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ee(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===rt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await hi(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2786
+ `;ng([vo()],lo.prototype,"onSearchBarKeyDown",null);var q=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Mu={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ol=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ag=()=>{},F=class extends N{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new zt(Mu,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new lt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=rt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new _t(this),this.selectedFacetsManager=new Lt(this),this.desktopSearchBarManager=new lo(this),this.mobileSearchBarManager=new so(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ee(10),this.updateLocalesDebouncer=new ee(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ee(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===rt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await hi(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return x`
2781
2787
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2782
2788
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2783
2789
  ${this.renderLiveText()}
2784
2790
  </div>
2785
2791
  ${this.renderSearchBar()}
2786
- `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():b`
2792
+ `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():x`
2787
2793
  <ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
2788
2794
  part="loader"
2789
2795
  tabindex="-1"></ft-skeleton>
2790
- `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return b`
2796
+ `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return x`
2791
2797
  <ft-accordion class="ft-search-bar--filters-container">
2792
- ${this.hasLocaleSelector()?b`
2798
+ ${this.hasLocaleSelector()?x`
2793
2799
  <ft-accordion-item data-facet-key="ft:locale">
2794
2800
  <div class="ft-search-bar--filter-label" slot="toggle">
2795
2801
  <ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
2796
2802
  </ft-typography>
2797
- ${e?.label?b`
2803
+ ${e?.label?x`
2798
2804
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2799
2805
  ${e?.label}
2800
2806
  </ft-typography>
@@ -2805,11 +2811,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2805
2811
  </div>
2806
2812
  </ft-accordion-item>
2807
2813
  `:null}
2808
- ${fe(this.facets,r=>r.key,r=>{let i=Ds(r),n=r.key.replace(":","-"),a=_p(i);return r.rootNodes.length>0?b`
2814
+ ${fe(this.facets,r=>r.key,r=>{let i=$s(r),n=r.key.replace(":","-"),a=_p(i);return r.rootNodes.length>0?x`
2809
2815
  <ft-accordion-item data-facet-key="${r.key}">
2810
2816
  <div class="ft-search-bar--filter-label" slot="toggle">
2811
2817
  <ft-typography variant="button">${r.label}</ft-typography>
2812
- ${a.length>0?b`
2818
+ ${a.length>0?x`
2813
2819
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2814
2820
  ${a.join(", ")}
2815
2821
  </ft-typography>
@@ -2832,17 +2838,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2832
2838
  </ft-accordion-item>
2833
2839
  `:k})}
2834
2840
  </ft-accordion>
2835
- `}getContentLocaleRadioGroup(){var e;return b`
2841
+ `}getContentLocaleRadioGroup(){var e;return x`
2836
2842
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2837
2843
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2838
- ${fe((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return b`
2844
+ ${fe((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return x`
2839
2845
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2840
2846
  ?checked=${r.lang==this.contentLocale}>
2841
2847
  ${r.label}
2842
2848
  </ft-radio>
2843
2849
  `})}
2844
2850
  </ft-radio-group>
2845
- `}renderDesktopMenu(){return this.hasFacets()?b`
2851
+ `}renderDesktopMenu(){return this.hasFacets()?x`
2846
2852
  <div class="ft-search-bar--desktop-menu">
2847
2853
  ${this.renderFacetsActions()}
2848
2854
  ${this.renderDesktopFacets()}
@@ -2857,16 +2863,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2857
2863
  </ft-button>
2858
2864
  </div>
2859
2865
  </div>
2860
- `:k}renderFacetsActions(){var e;return b`
2866
+ `:k}renderFacetsActions(){var e;return x`
2861
2867
  <div class="ft-search-bar--facets-actions">
2862
- ${this.hasPresets?b`
2868
+ ${this.hasPresets?x`
2863
2869
  <ft-select
2864
2870
  class="ft-search-bar--presets"
2865
2871
  part="presets"
2866
2872
  label="${this.labelResolver.resolve("presetsSelector")}"
2867
2873
  outlined
2868
2874
  @change=${r=>this.selectedPreset=r.detail}>
2869
- ${fe((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>b`
2875
+ ${fe((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>x`
2870
2876
  <ft-select-option value="${r.name}"
2871
2877
  label="${r.name}"
2872
2878
  ?selected=${r.name===this.selectedPreset}>
@@ -2877,18 +2883,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2877
2883
  <slot name="facets-actions"></slot>
2878
2884
  ${this.forceMenuOpen&&!this.isMobile()?k:this.renderDesktopClearFilters()}
2879
2885
  </div>
2880
- `}renderDesktopClearFilters(){return this.metadataFilters.length>0?b`
2886
+ `}renderDesktopClearFilters(){return this.metadataFilters.length>0?x`
2881
2887
  <ft-button part="facets-actions"
2882
2888
  @click=${this.clearFilters}>
2883
2889
  ${this.labelResolver.resolve("clearFilters")}
2884
2890
  </ft-button>
2885
- `:k}renderDesktopFacets(){return this.hasFacets()?b`
2891
+ `:k}renderDesktopFacets(){return this.hasFacets()?x`
2886
2892
  <ft-snap-scroll horizontal limitSize controls
2887
2893
  class="ft-search-bar--filters-container"
2888
2894
  part="filters-container"
2889
2895
  exportpartsPrefix="filters-container"
2890
2896
  data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
2891
- ${this.hasLocaleSelector()?b`
2897
+ ${this.hasLocaleSelector()?x`
2892
2898
  <div part="content-locale-selector">
2893
2899
  <div part="content-locale-selector-header">
2894
2900
  <ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
@@ -2898,7 +2904,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2898
2904
  ${this.getContentLocaleRadioGroup()}
2899
2905
  </div>
2900
2906
  `:k}
2901
- ${fe(this.facets,e=>e.key,e=>{let r=Ds(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
2907
+ ${fe(this.facets,e=>e.key,e=>{let r=$s(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return x`
2902
2908
  <ft-filter
2903
2909
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2904
2910
  part="filters filter filter-${n}"
@@ -2917,14 +2923,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2917
2923
  ></ft-filter>
2918
2924
  `})}
2919
2925
  </ft-snap-scroll>
2920
- `:k}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new zt(Mu,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(u=>u.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(u=>qi(u)))})),e.has("presets")||e.has("selectedPreset")){let l=((a=this.presets)!==null&&a!==void 0?a:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(i=((s=this.presets)!==null&&s!==void 0?s:[]).find(l=>this.compareRequests(l,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new rl(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(ag)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!ks&&this.focusInput(),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ve(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ve(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?k:b`
2926
+ `:k}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new zt(Mu,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(u=>u.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(u=>Yi(u)))})),e.has("presets")||e.has("selectedPreset")){let l=((a=this.presets)!==null&&a!==void 0?a:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(i=((s=this.presets)!==null&&s!==void 0?s:[]).find(l=>this.compareRequests(l,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new ol(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(ag)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Ts&&this.focusInput(),B.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),B.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&He(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>He(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?k:x`
2921
2927
  <div class="ft-search-bar--floating-panel"
2922
2928
  id="ft-search-bar-floating-panel"
2923
2929
  @keyup=${this.onFloatingContainerKeyUp}
2924
2930
  part="floating-panel"
2925
2931
  tabindex="-1">
2926
2932
  ${this.renderDesktopMenu()}
2927
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};B.elementDefinitions={"ft-accordion":At,"ft-accordion-item":it,"ft-button":z,"ft-chip":ue,"ft-filter":Q,"ft-filter-option":Xe,"ft-icon":de,"ft-ripple":K,"ft-select":oe,"ft-select-option":Pe,"ft-size-watcher":je,"ft-skeleton":qt,"ft-snap-scroll":xe,"ft-tooltip":me,"ft-typography":te,"ft-radio-group":Ye,"ft-radio":Oe};B.styles=[to,Po,Nu,Du,_t.styles,Rt.styles,ji];Z([f({type:Boolean})],B.prototype,"dense",void 0);Z([f()],B.prototype,"mode",void 0);Z([f({type:Boolean})],B.prototype,"forceMobileMenuOpen",void 0);Z([f({type:Boolean})],B.prototype,"forceMenuOpen",void 0);Z([f()],B.prototype,"baseUrl",void 0);Z([f()],B.prototype,"apiIntegrationIdentifier",void 0);Z([f()],B.prototype,"contentLocale",void 0);Z([_()],B.prototype,"availableContentLocales",void 0);Z([_()],B.prototype,"availableContentLocalesInitialized",void 0);Z([f()],B.prototype,"uiLocale",void 0);Z([se({})],B.prototype,"labels",void 0);Z([se([])],B.prototype,"displayedFilters",void 0);Z([se([])],B.prototype,"presets",void 0);Z([f({type:String,reflect:!0})],B.prototype,"selectedPreset",void 0);Z([se([])],B.prototype,"priors",void 0);Z([f()],B.prototype,"searchRequestSerializer",void 0);Z([f({type:Boolean})],B.prototype,"focusOnDisplay",void 0);Z([_()],B.prototype,"metadataFilters",void 0);Z([_()],B.prototype,"sizeCategory",void 0);Z([_()],B.prototype,"displayFacets",void 0);Z([_()],B.prototype,"mobileMenuOpen",void 0);Z([_()],B.prototype,"facets",void 0);Z([_()],B.prototype,"facetsInitialized",void 0);Z([D(".ft-search-bar--container")],B.prototype,"container",void 0);Z([D(".ft-search-bar--filters-opener")],B.prototype,"filtersOpener",void 0);Z([D(".ft-search-bar--floating-panel")],B.prototype,"floatingContainer",void 0);Z([D("ft-snap-scroll.ft-search-bar--filters-container")],B.prototype,"scrollingFiltersContainer",void 0);Z([D(".ft-search-bar--input")],B.prototype,"input",void 0);Z([D(".ft-search-bar--launch-search")],B.prototype,"launchSearchButton",void 0);Z([_()],B.prototype,"query",void 0);Z([_()],B.prototype,"suggestions",void 0);Z([_()],B.prototype,"recentSearches",void 0);Z([_()],B.prototype,"scrollToFacet",void 0);Z([_()],B.prototype,"api",void 0);Z([_()],B.prototype,"displaySuggestListbox",void 0);Z([_()],B.prototype,"selectedSuggestOptionId",void 0);Z([_()],B.prototype,"selectedSuggestRemoveRecent",void 0);Z([_()],B.prototype,"facetsLoaded",void 0);var Fu={"ft-search-bar":B};W(Fu);})();
2933
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};F.elementDefinitions={"ft-accordion":Rt,"ft-accordion-item":it,"ft-button":U,"ft-chip":ce,"ft-filter":J,"ft-filter-option":Xe,"ft-icon":de,"ft-ripple":Z,"ft-select":oe,"ft-select-option":Ne,"ft-size-watcher":je,"ft-skeleton":qt,"ft-snap-scroll":xe,"ft-tooltip":me,"ft-typography":re,"ft-radio-group":Ye,"ft-radio":Oe};F.styles=[to,Po,Nu,Du,Lt.styles,_t.styles,Ki];q([f({type:Boolean})],F.prototype,"dense",void 0);q([f()],F.prototype,"mode",void 0);q([f({type:Boolean})],F.prototype,"forceMobileMenuOpen",void 0);q([f({type:Boolean})],F.prototype,"forceMenuOpen",void 0);q([f()],F.prototype,"baseUrl",void 0);q([f()],F.prototype,"apiIntegrationIdentifier",void 0);q([f()],F.prototype,"contentLocale",void 0);q([_()],F.prototype,"availableContentLocales",void 0);q([_()],F.prototype,"availableContentLocalesInitialized",void 0);q([f()],F.prototype,"uiLocale",void 0);q([se({})],F.prototype,"labels",void 0);q([se([])],F.prototype,"displayedFilters",void 0);q([se([])],F.prototype,"presets",void 0);q([f({type:String,reflect:!0})],F.prototype,"selectedPreset",void 0);q([se([])],F.prototype,"priors",void 0);q([f()],F.prototype,"searchRequestSerializer",void 0);q([f({type:Boolean})],F.prototype,"focusOnDisplay",void 0);q([_()],F.prototype,"metadataFilters",void 0);q([_()],F.prototype,"sizeCategory",void 0);q([_()],F.prototype,"displayFacets",void 0);q([_()],F.prototype,"mobileMenuOpen",void 0);q([_()],F.prototype,"facets",void 0);q([_()],F.prototype,"facetsInitialized",void 0);q([D(".ft-search-bar--container")],F.prototype,"container",void 0);q([D(".ft-search-bar--filters-opener")],F.prototype,"filtersOpener",void 0);q([D(".ft-search-bar--floating-panel")],F.prototype,"floatingContainer",void 0);q([D("ft-snap-scroll.ft-search-bar--filters-container")],F.prototype,"scrollingFiltersContainer",void 0);q([D(".ft-search-bar--input")],F.prototype,"input",void 0);q([D(".ft-search-bar--launch-search")],F.prototype,"launchSearchButton",void 0);q([_()],F.prototype,"query",void 0);q([_()],F.prototype,"suggestions",void 0);q([_()],F.prototype,"recentSearches",void 0);q([_()],F.prototype,"scrollToFacet",void 0);q([_()],F.prototype,"api",void 0);q([_()],F.prototype,"displaySuggestListbox",void 0);q([_()],F.prototype,"selectedSuggestOptionId",void 0);q([_()],F.prototype,"selectedSuggestRemoveRecent",void 0);q([_()],F.prototype,"facetsLoaded",void 0);var Fu={"ft-search-bar":F};W(Fu);})();
2928
2934
  /*! Bundled license information:
2929
2935
 
2930
2936
  .store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js: