@fluid-topics/ft-reader-metadata 1.3.21 → 1.3.22
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,12 +1,12 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),j=Q.shift().trim();if(j){var Eo=Q.join(":").trim();try{C.append(j,Eo)}catch(Un){console.warn("Response "+Un.message)}}}),C}N.call(A.prototype);function G(y,C){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(y)}N.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},G.error=function(){var y=new G(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var V=[301,302,303,307,308];G.redirect=function(y,C){if(V.indexOf(C)===-1)throw new RangeError("Invalid status code");return new G(null,{status:C,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,k){this.message=C,this.name=k;var K=Error(C);this.stack=K.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(y,C){return new Promise(function(k,K){var Q=new A(y,C);if(Q.signal&&Q.signal.aborted)return K(new r.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function Eo(){j.abort()}j.onload=function(){var xt={statusText:j.statusText,headers:z(j.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(j.status<200||j.status>599)?xt.status=200:xt.status=j.status,xt.url="responseURL"in j?j.responseURL:xt.headers.get("X-Request-URL");var $e="response"in j?j.response:j.responseText;setTimeout(function(){k(new G($e,xt))},0)},j.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},j.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},j.onabort=function(){setTimeout(function(){K(new r.DOMException("Aborted","AbortError"))},0)};function Un(xt){try{return xt===""&&n.location.href?n.location.href:xt}catch{return xt}}if(j.open(Q.method,Un(Q.url),!0),Q.credentials==="include"?j.withCredentials=!0:Q.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&(i.blob?j.responseType="blob":i.arrayBuffer&&(j.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||n.Headers&&C.headers instanceof n.Headers)){var Ps=[];Object.getOwnPropertyNames(C.headers).forEach(function(xt){Ps.push(d(xt)),j.setRequestHeader(xt,p(C.headers[xt]))}),Q.headers.forEach(function(xt,$e){Ps.indexOf($e)===-1&&j.setRequestHeader($e,xt)})}else Q.headers.forEach(function(xt,$e){j.setRequestHeader($e,xt)});Q.signal&&(Q.signal.addEventListener("abort",Eo),j.onreadystatechange=function(){j.readyState===4&&Q.signal.removeEventListener("abort",Eo)}),j.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return D.polyfill=!0,n.fetch||(n.fetch=D,n.Headers=f,n.Request=A,n.Response=G),r.Headers=f,r.Request=A,r.Response=G,r.fetch=D,r}({})})(en);en.fetch.ponyfill=!0;delete en.fetch.polyfill;var Sr=tn.fetch?tn:en;Pe=Sr.fetch;Pe.default=Sr.fetch;Pe.fetch=Sr.fetch;Pe.Headers=Sr.Headers;Pe.Request=Sr.Request;Pe.Response=Sr.Response;fc.exports=Pe});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(w,S){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=S.prototype.attributeChangedCallback,M=new Set(S.observedAttributes||[]);m(S,M,A);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(w,z),this._definitionsByClass.set(S,z);let G=r.call(n,w);G||(G=f(w),t.call(n,w,G)),this===window.customElements&&(s.set(S,z),z.standInClass=G);let V=this._awaitingUpgrade.get(w);if(V){this._awaitingUpgrade.delete(w);for(let y of V)a.delete(y),b(y,z,!0)}let D=this._whenDefinedPromises.get(w);return D!==void 0&&(D.resolve(S),this._whenDefinedPromises.delete(w)),S}upgrade(){_.push(this),n.upgrade.apply(n,arguments),_.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let S=this._getDefinition(w);if(S!==void 0)return Promise.resolve(S.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(M=>A.resolve=M),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,S,A){let M=this._awaitingUpgrade.get(S);M||this._awaitingUpgrade.set(S,M=new Set),A?M.add(w):M.delete(w)}};let d;window.HTMLElement=function(){let S=d;if(S)return d=void 0,S;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(e,[],A.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,A),S},window.HTMLElement.prototype=e.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let S=w.getRootNode();if(!p(S)){let A=_[_.length-1];if(A instanceof CustomElementRegistry)return A;S=A.getRootNode(),p(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let M=h(A)||window.customElements,z=M._getDefinition(w);return z?b(A,z):a.set(A,M),A}connectedCallback(){let A=i.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=i.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=i.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=i.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=i.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=i.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(w,S,A)=>{if(S.size===0||A===void 0)return;let M=w.prototype.setAttribute;M&&(w.prototype.setAttribute=function(V,D){let y=V.toLowerCase();if(S.has(y)){let C=this.getAttribute(y);M.call(this,y,D),A.call(this,y,C,D)}else M.call(this,y,D)});let z=w.prototype.removeAttribute;z&&(w.prototype.removeAttribute=function(V){let D=V.toLowerCase();if(S.has(D)){let y=this.getAttribute(D);z.call(this,D),A.call(this,D,y,null)}else z.call(this,D)});let G=w.prototype.toggleAttribute;G&&(w.prototype.toggleAttribute=function(V,D){let y=V.toLowerCase();if(S.has(y)){let C=this.getAttribute(y);G.call(this,y,D);let k=this.getAttribute(y);A.call(this,y,C,k)}else G.call(this,y,D)})},v=w=>{let S=Object.getPrototypeOf(w);if(S!==window.HTMLElement)return S===e?Object.setPrototypeOf(w,window.HTMLElement):v(S)},b=(w,S,A=!1)=>{Object.setPrototypeOf(w,S.elementClass.prototype),i.set(w,S),d=w;try{new S.elementClass}catch{v(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(M=>{w.hasAttribute(M)&&S.attributeChangedCallback.call(w,M,null,w.getAttribute(M))}),A&&S.connectedCallback&&w.isConnected&&S.connectedCallback.call(w)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let S=O.apply(this,arguments);return w.customElements&&(S.customElements=w.customElements),S};let _=[document],I=(w,S,A=void 0)=>{let M=(A?Object.getPrototypeOf(A):w.prototype)[S];w.prototype[S]=function(){_.push(this);let z=M.apply(A||this,arguments);return z!==void 0&&l.set(z,this),_.pop(),z}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let N=(w,S)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,S);Object.defineProperty(w.prototype,S,{...A,set(M){_.push(this),A.set.call(this,M),_.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,S=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...V){let D=S.call(this,...V);return w.set(D,this),D},A.forEach(V=>{let D=window.ElementInternals.prototype,y=D[V];D[V]=function(...C){let k=w.get(this);if(i.get(k).formAssociated===!0)return y?.call(this,...C);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class z{constructor(D){let y=new Map;D.forEach((C,k)=>{let K=C.getAttribute("name"),Q=y.get(K)||[];this[+k]=C,Q.push(C),y.set(K,Q)}),this.length=D.length,y.forEach((C,k)=>{C&&(C.length===1?this[k]=C[0]:this[k]=new M(C))})}namedItem(D){return this[D]}}let G=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let V=G.get.call(this,[]),D=[];for(let y of V){let C=i.get(y);(!C||C.formAssociated===!0)&&D.push(y)}return new z(D)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{t.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var Qn={};Z(Qn,{CSSResult:()=>rr,LitElement:()=>ce,ReactiveElement:()=>Qt,_$LE:()=>fp,_$LH:()=>Yn,adoptStyles:()=>zr,css:()=>L,defaultConverter:()=>or,getCompatibleStyle:()=>Ao,html:()=>$,isServer:()=>oh,mathml:()=>qn,noChange:()=>Ct,notEqual:()=>Wr,nothing:()=>H,render:()=>Xn,supportsAdoptingStyleSheets:()=>Fr,svg:()=>Zn,unsafeCSS:()=>Jt});var wo=globalThis,Fr=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zn=Symbol(),ks=new WeakMap,rr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==zn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Fr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=ks.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ks.set(r,t))}return t}toString(){return this.cssText}},Jt=e=>new rr(typeof e=="string"?e:e+"",void 0,zn),L=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]);return new rr(r,e,zn)},zr=(e,t)=>{if(Fr)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=wo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Ao=Fr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Jt(r)})(e):e;var{is:rp,defineProperty:op,getOwnPropertyDescriptor:np,getOwnPropertyNames:ip,getOwnPropertySymbols:ap,getPrototypeOf:sp}=Object,Ro=globalThis,Ms=Ro.trustedTypes,lp=Ms?Ms.emptyScript:"",cp=Ro.reactiveElementPolyfillSupport,Hr=(e,t)=>e,or={toAttribute(e,t){switch(t){case Boolean:e=e?lp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Wr=(e,t)=>!rp(e,t),Ds={attribute:!0,type:String,converter:or,reflect:!1,useDefault:!1,hasChanged:Wr};Symbol.metadata??=Symbol("metadata"),Ro.litPropertyMetadata??=new WeakMap;var Qt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Ds){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&op(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:a}=np(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ds}static _$Ei(){if(this.hasOwnProperty(Hr("elementProperties")))return;let t=sp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Hr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hr("properties"))){let r=this.properties,n=[...ip(r),...ap(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Ao(i))}else t!==void 0&&r.push(Ao(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:or).toAttribute(r,n.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:or;this._$Em=i,this[i]=s.fromAttribute(r,a.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let i=this.constructor,a=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??Wr)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),a!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Hr("elementProperties")]=new Map,Qt[Hr("finalized")]=new Map,cp?.({ReactiveElement:Qt}),(Ro.reactiveElementVersions??=[]).push("2.1.0");var Wn=globalThis,To=Wn.trustedTypes,$s=To?To.createPolicy("lit-html",{createHTML:e=>e}):void 0,Vn="$lit$",le=`lit$${Math.random().toFixed(9).slice(2)}$`,jn="?"+le,dp=`<${jn}>`,Fe=document,jr=()=>Fe.createComment(""),Gr=e=>e===null||typeof e!="object"&&typeof e!="function",Gn=Array.isArray,Ws=e=>Gn(e)||typeof e?.[Symbol.iterator]=="function",Hn=`[
|
|
3
|
-
\f\r]`,Vr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Fs=/'/g,zs=/"/g,Vs=/^(?:script|style|textarea|title)$/i,Kn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$=Kn(1),Zn=Kn(2),qn=Kn(3),Ct=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Hs=new WeakMap,Ue=Fe.createTreeWalker(Fe,129);function js(e,t){if(!Gn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $s!==void 0?$s.createHTML(t):t}var Gs=(e,t)=>{let r=e.length-1,n=[],i,a=t===2?"<svg>":t===3?"<math>":"",s=Vr;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Vr?h[1]==="!--"?s=Bs:h[1]!==void 0?s=Us:h[2]!==void 0?(Vs.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Be):h[3]!==void 0&&(s=Be):s===Be?h[0]===">"?(s=i??Vr,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Be:h[3]==='"'?zs:Fs):s===zs||s===Fs?s=Be:s===Bs||s===Us?s=Vr:(s=Be,i=void 0);let v=s===Be&&e[l+1].startsWith("/>")?" ":"";a+=s===Vr?d+dp:f>=0?(n.push(p),d.slice(0,f)+Vn+d.slice(f)+le+v):d+le+(f===-2?l:v)}return[js(e,a+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Kr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Gs(t,r);if(this.el=e.createElement(p,n),Ue.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ue.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Vn)){let m=h[s++],v=i.getAttribute(f).split(le),b=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?_o:b[1]==="?"?No:b[1]==="@"?Lo:He}),i.removeAttribute(f)}else f.startsWith(le)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(Vs.test(i.tagName)){let f=i.textContent.split(le),m=f.length-1;if(m>0){i.textContent=To?To.emptyScript:"";for(let v=0;v<m;v++)i.append(f[v],jr()),Ue.nextNode(),d.push({type:2,index:++a});i.append(f[m],jr())}}}else if(i.nodeType===8)if(i.data===jn)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(le,f+1))!==-1;)d.push({type:7,index:a}),f+=le.length-1}a++}}static createElement(t,r){let n=Fe.createElement("template");return n.innerHTML=t,n}};function ze(e,t,r=e,n){if(t===Ct)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=Gr(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=ze(e,i._$AS(e,t.values),i,n)),t}var Io=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Fe).importNode(r,!0);Ue.currentNode=i;let a=Ue.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new nr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new Po(a,this,t)),this._$AV.push(p),d=n[++l]}s!==d?.index&&(a=Ue.nextNode(),s++)}return Ue.currentNode=Fe,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},nr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ze(this,t,r),Gr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==Ct&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ws(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&Gr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Fe.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Kr.createElement(js(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Io(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(t){let r=Hs.get(t.strings);return r===void 0&&Hs.set(t.strings,r=new Kr(t)),r}k(t){Gn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of t)i===r.length?r.push(n=new e(this.O(jr()),this.O(jr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},He=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)t=ze(this,t,r,0),s=!Gr(t)||t!==this._$AH&&t!==Ct,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ze(this,l[n+d],r,d),p===Ct&&(p=this._$AH[d]),s||=!Gr(p)||p!==this._$AH[d],p===H?t=H:t!==H&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_o=class extends He{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},No=class extends He{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},Lo=class extends He{constructor(t,r,n,i,a){super(t,r,n,i,a),this.type=5}_$AI(t,r=this){if((t=ze(this,t,r,0)??H)===Ct)return;let n=this._$AH,i=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Po=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ze(this,t)}},Yn={M:Vn,P:le,A:jn,C:1,L:Gs,R:Io,D:Ws,V:ze,I:nr,H:He,N:No,U:Lo,B:_o,F:Po},pp=Wn.litHtmlPolyfillSupport;pp?.(Kr,nr),(Wn.litHtmlVersions??=[]).push("3.3.0");var Xn=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new nr(t.insertBefore(jr(),a),a,void 0,r??{})}return i._$AI(e),i};var Jn=globalThis,ce=class extends Qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Xn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ct}};ce._$litElement$=!0,ce.finalized=!0,Jn.litElementHydrateSupport?.({LitElement:ce});var up=Jn.litElementPolyfillSupport;up?.({LitElement:ce});var fp={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Jn.litElementVersions??=[]).push("4.2.0");var oh=!1;var ri={};Z(ri,{customElement:()=>hp,eventOptions:()=>ir,property:()=>x,query:()=>st,queryAll:()=>gp,queryAssignedElements:()=>ti,queryAssignedNodes:()=>ei,queryAsync:()=>bp,standardProperty:()=>Ks,state:()=>tt});var hp=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var mp={attribute:!0,type:String,converter:or,reflect:!1,hasChanged:Wr},Ks=(e=mp,t,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+n)};function x(e){return(t,r)=>typeof r=="object"?Ks(e,t,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(e,t,r)}function tt(e){return x({...e,state:!0,attribute:!1})}function ir(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var Gt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function st(e,t){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Gt(r,n,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Gt(r,n,{get(){return a(this)}})}}var yp;function gp(e){return(t,r)=>Gt(t,r,{get(){return(this.renderRoot??(yp??=document.createDocumentFragment())).querySelectorAll(e)}})}function bp(e){return(t,r)=>Gt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function ti(e){return(t,r)=>{let{slot:n,selector:i}=e??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Gt(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function ei(e){return(t,r)=>{let{slot:n}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Gt(t,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}var oi={};Z(oi,{repeat:()=>Mo});var te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kt=e=>(...t)=>({_$litDirective$:e,values:t}),Ut=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:vp}=Yn;var qs=e=>e.strings===void 0,Zs=()=>document.createComment(""),ar=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=n.insertBefore(Zs(),i),s=n.insertBefore(Zs(),i);r=new vp(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;n.insertBefore(d,i),d=p}}}return r},Oe=(e,t,r=e)=>(e._$AI(t,r),e),xp={},Ys=(e,t=xp)=>e._$AH=t,Xs=e=>e._$AH,ko=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var Js=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},Mo=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;r===void 0?r=t:t!==void 0&&(n=t);let i=[],a=[],s=0;for(let l of e)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=Xs(e),{values:a,keys:s}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,h,f=0,m=i.length-1,v=0,b=a.length-1;for(;f<=m&&v<=b;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[v])d[v]=Oe(i[f],a[v]),f++,v++;else if(l[m]===s[b])d[b]=Oe(i[m],a[b]),m--,b--;else if(l[f]===s[b])d[b]=Oe(i[f],a[b]),ar(e,d[b+1],i[f]),f++,b--;else if(l[m]===s[v])d[v]=Oe(i[m],a[v]),ar(e,i[f],i[m]),m--,v++;else if(p===void 0&&(p=Js(s,v,b),h=Js(l,f,m)),p.has(l[f]))if(p.has(l[m])){let O=h.get(s[v]),_=O!==void 0?i[O]:null;if(_===null){let I=ar(e,i[f]);Oe(I,a[v]),d[v]=I}else d[v]=Oe(_,a[v]),ar(e,i[f],_),i[O]=null;v++}else ko(i[m]),m--;else ko(i[f]),f++;for(;v<=b;){let O=ar(e,d[b+1]);Oe(O,a[v]),d[v++]=O}for(;f<=m;){let O=i[f++];O!==null&&ko(O)}return this.ut=s,Ys(e,d),Ct}});var ni={};Z(ni,{classMap:()=>Ft});var Ft=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return Ct}});var ii={};Z(ii,{styleMap:()=>Cp});var Qs="important",Sp=" !"+Qs,Cp=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith(Sp);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?Qs:""):r[n]=i}}return Ct}});var si={};Z(si,{UnsafeHTMLDirective:()=>sr,unsafeHTML:()=>ai});var sr=class extends Ut{constructor(t){if(super(t),this.it=H,t.type!==te.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||t==null)return this._t=void 0,this.it=t;if(t===Ct)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};sr.directiveName="unsafeHTML",sr.resultType=1;var ai=Kt(sr);var hi={};Z(hi,{CacheRegistry:()=>ee,ClearCacheEvent:()=>Zr});var ci={};Z(ci,{CancelablePromise:()=>Do,CanceledPromiseError:()=>de,cancelable:()=>li});var de=class extends Error{constructor(t,r,n){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=n}},Do=class extends Promise{constructor(t){super((r,n)=>t(i=>{this.isCanceled?n(new de("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new de("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},li=e=>new Do((t,r)=>e.then(t).catch(r));var fi={};Z(fi,{FtNotificationEvent:()=>di,PostResizeEvent:()=>ui,PreResizeEvent:()=>pi,WithEventBus:()=>pe,withEventBus:()=>$o});var di=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},pi=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ui=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function $o(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var pe=class extends $o(Object){};var Zr=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},ee=class extends pe{constructor(){super(...arguments),this.content={}}register(t,r,n=!1){var i;let a=this.content[t],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[t]={...a,loader:r,final:n,status:s}}registerFinal(t,r){this.register(t,r,!0)}clearAll(t=!0){return this.clearMatching(()=>!0,t)}clearMatching(t,r=!0){let n=Object.keys(this.content).filter(t).filter(i=>this.clear(i,!1)!=null);return r&&n.length>0&&this.dispatchEvent(new Zr(n)),n}clear(t,r=!0){if(this.content[t]&&!this.content[t].final)return this.forceClear(t),r&&this.dispatchEvent(new Zr([t])),t}forceClear(t){var r;let n=this.content[t];n&&(this.clearClearTimeout(t),(r=n.promise)===null||r===void 0||r.cancel(),this.content[t]={loader:n.loader,final:n.final,status:"REGISTERED"})}clearClearTimeout(t){var r,n,i;((r=this.content[t])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((n=this.content[t])===null||n===void 0?void 0:n.clearTimeout),(i=this.content[t])===null||i===void 0||delete i.clearTimeout)}set(t,r,n=!1){this.forceClear(t);let i=async()=>r,a="RESOLVED";this.content[t]={loader:i,final:n,status:a,value:r}}setFinal(t,r){return this.set(t,r,!0)}async get(t,r,n){if(!this.isRegistered(t)){if(!r)throw new Error("Unknown cache key "+t);this.register(t,r)}let i=this.content[t];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return r=r??i.loader,i.status="LOADING",i.promise=li(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,n!=null&&(this.clearClearTimeout(t),i.clearTimeout=window.setTimeout(()=>this.clear(t),n)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(t){return this.content[t]!=null}getNow(t){var r;return(r=this.content[t])===null||r===void 0?void 0:r.value}has(t){var r,n;return((r=this.content[t])===null||r===void 0?void 0:r.status)!==void 0&&((n=this.content[t])===null||n===void 0?void 0:n.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(t=>{var r;return((r=this.content[t])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(t=>this.content[t].value)}keys(){return Object.keys(this.content)}};var yi={};Z(yi,{ClusteringHelper:()=>We,formatHierarchicalValues:()=>mi});function mi(e,t){return t&&t>1&&e.length>=t?`... > ${e[e.length-1]}`:e.join(" > ")}var We=class e{constructor(t,r,n,i){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(t){var r,n,i,a,s;let l=((a=(n=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&n!==void 0?n:(i=t.result)===null||i===void 0?void 0:i.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,n){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!i))if(i){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(mi(l)),s.push(mi(l,r))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>n?n(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,n="No value",i,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,v)=>v.findIndex(b=>b.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,n,i){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let n=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var gi={};Z(gi,{Debouncer:()=>ft});var ft=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ci={};Z(Ci,{customElement:()=>q,isNumber:()=>ol,jsonProperty:()=>zt,numberProperty:()=>rl,optionalNumberProperty:()=>Rp});var Si={};Z(Si,{dateReviver:()=>Op,deepCopy:()=>Xr,deepEqual:()=>Pt,delay:()=>Bo,eventPathContainsMatchingElement:()=>vi,flatDeep:()=>tl,getComposedPathTo:()=>xi,hasChanged:()=>Ee,last:()=>wp,minmax:()=>Yr,parseDate:()=>el,randomId:()=>Ap,unslotText:()=>lr,waitFor:()=>qr,waitUntil:()=>bi});var Bo=e=>new Promise(t=>setTimeout(t,e));async function bi(e,t=10,r=2e4){await qr(async()=>await e()||void 0,t,r)}async function qr(e,t=10,r=2e4){let n=await e(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await Bo(t),n=await e(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function tl(e,t){return e.flatMap(r=>[r,...tl(t(r),t)])}function Op(...e){return(t,r)=>e.includes(t)?el(r):r}function el(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,n,i)=>r+n+":"+i),new Date(e)}function Ep(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Pt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Pt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!Pt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Pt(e,t){try{return Ep(e,t)}catch{return!1}}function Ee(e,t){return!Pt(e,t)}function vi(e,t,r=window.document.body){if(t.length>0){let n=e.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&t.some(a=>i.matches(a)))return!0}}return!1}function Yr(e,t,r){return Math.min(Math.max(e,t),r)}function wp(e){return e[e.length-1]}function lr(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>lr(t)).join(""):e?.textContent||""}function xi(e){let t=[],r=n=>{n.stopPropagation(),t=n.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}function Xr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Ap(e,t){return(t??"")+(""+Math.floor(Math.random()*10**e)).padStart(e,"0")}var q=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function zt(e,t){let r=()=>JSON.parse(JSON.stringify(e));return x({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ee,...t??{}})}function Rp(e){return rl(e)}function rl(e){return x({type:Object,converter:{fromAttribute:t=>{if(console.log("from attribute",t,e),t!=null)return ol(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},useDefault:!0,...e??{}})}function ol(e){return!isNaN(parseFloat(e))}var Xi={};Z(Xi,{designSystemVariables:()=>F});var Yi={};Z(Yi,{DesignSystemFamily:()=>ue,DesignSystemSize:()=>vt,FtCssVariableFactory:()=>o,badge:()=>Dp,banner:()=>Mp,button:()=>g,chart:()=>Jp,checkbox:()=>_p,chip:()=>U,chipChoice:()=>Pp,collapsible:()=>Yp,comboboxMultiSelect:()=>Zp,comboboxSingleSelect:()=>Kp,dateRangePicker:()=>iu,drawer:()=>Hp,floatingMenu:()=>Gp,foundation:()=>c,link:()=>kp,modal:()=>zp,notice:()=>tu,notification:()=>ru,pageDesigner:()=>Qp,pageFooter:()=>Up,pageHeader:()=>Bp,pageLayout:()=>Fp,popover:()=>qp,radio:()=>Np,reorderableList:()=>nu,resolveFamilyClass:()=>Zi,resolveSizeClass:()=>qi,semantic:()=>u,setVariable:()=>E,switch_:()=>Xp,table:()=>Lp,tabs:()=>Wp,textArea:()=>jp,textInput:()=>Vp,titleBreadcrumb:()=>$p,toggle:()=>eu,tooltip:()=>ou,treeList:()=>Ip,typographies:()=>Jr,typographyBody1Medium:()=>Ti,typographyBody1Regular:()=>Ri,typographyBody1Semibold:()=>Ii,typographyBody2Medium:()=>Ni,typographyBody2MediumUnderline:()=>nl,typographyBody2Regular:()=>_i,typographyBody2Semibold:()=>Li,typographyCaption1Bold:()=>zi,typographyCaption1Medium:()=>Ui,typographyCaption1Semibold:()=>Fi,typographyCaption2Bold:()=>Vi,typographyCaption2Medium:()=>Hi,typographyCaption2Semibold:()=>Wi,typographyCaption3Bold:()=>Ki,typographyCaption3Medium:()=>ji,typographyCaption3Semibold:()=>Gi,typographyDisplay:()=>Oi,typographyLabel1Bold:()=>Mi,typographyLabel1Medium:()=>Pi,typographyLabel1Semibold:()=>ki,typographyLabel2Bold:()=>Bi,typographyLabel2Medium:()=>Di,typographyLabel2Semibold:()=>$i,typographyTitle1:()=>Ei,typographyTitle2:()=>wi,typographyTitle3:()=>Ai,typographyVariants:()=>Tp});var we=e=>typeof e=="string"?Jt(e):e,o=class{static create(t,r,n,i){let a=l=>we(l??i),s=L`var(${we(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>E(s,l??a(i)),s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,r,n,i){let a=l=>n.get(l??i),s=L`var(${we(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>E(s,l??a(i)),s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(t,r){let n=a=>t.defaultCssValue(a),i=L`var(${we(t.name)}, ${n(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=r,i.defaultCssValue=n,i.set=a=>t.set(a),i.get=a=>L`var(${we(t.name)}, ${n(a)})`,i.breadcrumb=()=>t.breadcrumb(),i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}};function E(e,t){return we(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),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"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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)")},Oi={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},Ei={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},wi={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},Ai={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},Ri={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},Ti={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},Ii={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},_i={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Ni={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},nl={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Li={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},Pi={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ki={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Mi={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Di={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},$i={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Bi={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Ui={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Fi={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},zi={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Hi={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Wi={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Vi={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},ji={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Gi={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Ki={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Jr={display:Oi,"title-1":Ei,"title-2":wi,"title-3":Ai,"body-1-regular":Ri,"body-1-medium":Ti,"body-1-semibold":Ii,"body-2-regular":_i,"body-2-medium":Ni,"body-2-medium-underline":nl,"body-2-semibold":Li,"label-1-medium":Pi,"label-1-semibold":ki,"label-1-bold":Mi,"label-2-medium":Di,"label-2-semibold":$i,"label-2-bold":Bi,"caption-1-medium":Ui,"caption-1-semibold":Fi,"caption-1-bold":zi,"caption-2-medium":Hi,"caption-2-semibold":Wi,"caption-2-bold":Vi,"caption-3-medium":ji,"caption-3-semibold":Gi,"caption-3-bold":Ki},Tp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var g={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Ip={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle)};var _p={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)};var Np={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)};var Lp={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var Pp={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var U={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var kp={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Mp={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Dp={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var $p={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Bp={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Up={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var Fp={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var zp={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Hp={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Wp={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Vp={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var jp={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)};var Gp={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Kp={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Zp={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)};var qp={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var Yp={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Xp={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Jp={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Qp={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var tu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var eu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var ru={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var ou={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var nu={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var iu={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var ue;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(ue||(ue={}));var vt;(function(e){e.large="large",e.medium="medium",e.small="small"})(vt||(vt={}));function Zi(e){return`ftds--family-${e}`}function qi(e){return`ftds--size-${e}`}var F={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)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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 Ji={};Z(Ji,{DynamicImporter:()=>Uo,dynamicImporter:()=>au});var Uo=class{async import(t){return import(t)}},au=new Uo;var ua={};Z(ua,{computeOffsetAutoPosition:()=>Au,computeOffsetPosition:()=>oo});var al=["top","right","bottom","left"],il=["start","end"],ta=al.reduce((e,t)=>e.concat(t,t+"-"+il[0],t+"-"+il[1]),[]),Fo=Math.min,Ae=Math.max;var su={left:"right",right:"left",bottom:"top",top:"bottom"},lu={start:"end",end:"start"};function ea(e,t,r){return Ae(e,Fo(t,r))}function cr(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function re(e){return e.split("-")[1]}function ra(e){return e==="x"?"y":"x"}function oa(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Re(e))?"y":"x"}function na(e){return ra(dr(e))}function sl(e,t,r){r===void 0&&(r=!1);let n=re(e),i=na(e),a=oa(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Qi(s)),[s,Qi(s)]}function ll(e){return e.replace(/start|end/g,t=>lu[t])}function Qi(e){return e.replace(/left|right|bottom|top/g,t=>su[t])}function cu(e){return{top:0,right:0,bottom:0,left:0,...e}}function cl(e){return typeof e!="number"?cu(e):{top:e,right:e,bottom:e,left:e}}function Ve(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function dl(e,t,r){let{reference:n,floating:i}=e,a=dr(t),s=na(t),l=oa(s),d=Re(t),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,v;switch(d){case"top":v={x:h,y:n.y-i.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-i.width,y:f};break;default:v={x:n.x,y:n.y}}switch(re(t)){case"start":v[s]-=m*(r&&p?-1:1);break;case"end":v[s]+=m*(r&&p?-1:1);break}return v}var pl=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:f}=dl(p,n,d),m=n,v={},b=0;for(let O=0;O<l.length;O++){let{name:_,fn:I}=l[O],{x:N,y:w,data:S,reset:A}=await I({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:v,rects:p,platform:s,elements:{reference:e,floating:t}});h=N??h,f=w??f,v={...v,[_]:{...v[_],...S}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:f}=dl(p,m,d)),O=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:v}};async function zo(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=cr(t,e),b=cl(v),_=l[m?f==="floating"?"reference":"floating":f],I=Ve(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),N=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=Ve(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:w,strategy:d}):N);return{top:(I.top-A.top+b.top)/S.y,bottom:(A.bottom-I.bottom+b.bottom)/S.y,left:(I.left-A.left+b.left)/S.x,right:(A.right-I.right+b.right)/S.x}}function du(e,t,r){return(e?[...r.filter(i=>re(i)===e),...r.filter(i=>re(i)!==e)]:r.filter(i=>Re(i)===i)).filter(i=>e?re(i)===e||(t?ll(i)!==i:!1):!0)}var Ho=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=ta,autoAlignment:v=!0,...b}=cr(e,t),O=f!==void 0||m===ta?du(f||null,v,m):m,_=await zo(t,b),I=((r=s.autoPlacement)==null?void 0:r.index)||0,N=O[I];if(N==null)return{};let w=sl(N,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==N)return{reset:{placement:O[0]}};let S=[_[Re(N)],_[w[0]],_[w[1]]],A=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:S}],M=O[I+1];if(M)return{data:{index:I+1,overflows:A},reset:{placement:M}};let z=A.map(D=>{let y=re(D.placement);return[D.placement,y&&h?D.overflows.slice(0,2).reduce((C,k)=>C+k,0):D.overflows[0],D.overflows]}).sort((D,y)=>D[1]-y[1]),V=((i=z.filter(D=>D[2].slice(0,re(D[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||z[0][0];return V!==l?{data:{index:I+1,overflows:A},reset:{placement:V}}:{}}}};async function pu(e,t){let{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Re(r),l=re(r),d=dr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=cr(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(v=l==="end"?b*-1:b),d?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var ia=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=t,d=await pu(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},aa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:I,y:N}=_;return{x:I,y:N}}},...d}=cr(e,t),p={x:r,y:n},h=await zo(t,d),f=dr(Re(i)),m=ra(f),v=p[m],b=p[f];if(a){let _=m==="y"?"top":"left",I=m==="y"?"bottom":"right",N=v+h[_],w=v-h[I];v=ea(N,v,w)}if(s){let _=f==="y"?"top":"left",I=f==="y"?"bottom":"right",N=b+h[_],w=b-h[I];b=ea(N,b,w)}let O=l.fn({...t,[m]:v,[f]:b});return{...O,data:{x:O.x-r,y:O.y-n,enabled:{[m]:a,[f]:s}}}}}};var sa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:i,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=cr(e,t),h=await zo(t,p),f=Re(i),m=re(i),v=dr(i)==="y",{width:b,height:O}=a.floating,_,I;f==="top"||f==="bottom"?(_=f,I=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(I=f,_=m==="end"?"top":"bottom");let N=O-h.top-h.bottom,w=b-h.left-h.right,S=Fo(O-h[_],N),A=Fo(b-h[I],w),M=!t.middlewareData.shift,z=S,G=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(G=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(z=N),M&&!m){let D=Ae(h.left,0),y=Ae(h.right,0),C=Ae(h.top,0),k=Ae(h.bottom,0);v?G=b-2*(D!==0||y!==0?D+y:Ae(h.left,h.right)):z=O-2*(C!==0||k!==0?C+k:Ae(h.top,h.bottom))}await d({...t,availableWidth:G,availableHeight:z});let V=await s.getDimensions(l.floating);return b!==V.width||O!==V.height?{reset:{rects:!0}}:{}}}};var la=Math.min,pr=Math.max,Qr=Math.round;var fe=e=>({x:e,y:e});function he(e){return fl(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(fl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fl(e){return e instanceof Node||e instanceof wt(e).Node}function oe(e){return e instanceof Element||e instanceof wt(e).Element}function Zt(e){return e instanceof HTMLElement||e instanceof wt(e).HTMLElement}function ul(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function ur(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function hl(e){return["table","td","th"].includes(he(e))}function Vo(e){let t=jo(),r=kt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ml(e){let t=je(e);for(;Zt(t)&&!to(t);){if(Vo(t))return t;t=je(t)}return null}function jo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(he(e))}function kt(e){return wt(e).getComputedStyle(e)}function eo(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function je(e){if(he(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ul(e)&&e.host||me(e);return ul(t)?t.host:t}function yl(e){let t=je(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&ur(t)?t:yl(t)}function Wo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=yl(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=wt(i);return a?t.concat(s,s.visualViewport||[],ur(i)?i:[],s.frameElement&&r?Wo(s.frameElement):[]):t.concat(i,Wo(i,[],r))}function vl(e){let t=kt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Zt(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Qr(r)!==a||Qr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function xl(e){return oe(e)?e:e.contextElement}function fr(e){let t=xl(e);if(!Zt(t))return fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=vl(t),s=(a?Qr(r.width):r.width)/n,l=(a?Qr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var uu=fe(0);function Sl(e){let t=wt(e);return!jo()||!t.visualViewport?uu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==wt(e)?!1:t}function ro(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=xl(e),s=fe(1);t&&(n?oe(n)&&(s=fr(n)):s=fr(e));let l=fu(a,r,n)?Sl(a):fe(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let m=wt(a),v=n&&oe(n)?wt(n):n,b=m.frameElement;for(;b&&n&&v!==m;){let O=fr(b),_=b.getBoundingClientRect(),I=kt(b),N=_.left+(b.clientLeft+parseFloat(I.paddingLeft))*O.x,w=_.top+(b.clientTop+parseFloat(I.paddingTop))*O.y;d*=O.x,p*=O.y,h*=O.x,f*=O.y,d+=N,p+=w,b=wt(b).frameElement}}return Ve({width:h,height:f,x:d,y:p})}function hu(e){let{rect:t,offsetParent:r,strategy:n}=e,i=Zt(r),a=me(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=fe(1),d=fe(0);if((i||!i&&n!=="fixed")&&((he(r)!=="body"||ur(a))&&(s=eo(r)),Zt(r))){let p=ro(r);l=fr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function mu(e){return Array.from(e.getClientRects())}function Cl(e){return ro(me(e)).left+eo(e).scrollLeft}function yu(e){let t=me(e),r=eo(e),n=e.ownerDocument.body,i=pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Cl(e),l=-r.scrollTop;return kt(n).direction==="rtl"&&(s+=pr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function gu(e,t){let r=wt(e),n=me(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(i){a=i.width,s=i.height;let p=jo();(!p||p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:l,y:d}}function bu(e,t){let r=ro(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Zt(e)?fr(e):fe(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=i*a.x,p=n*a.y;return{width:s,height:l,x:d,y:p}}function gl(e,t,r){let n;if(t==="viewport")n=gu(e,r);else if(t==="document")n=yu(me(e));else if(oe(t))n=bu(t,r);else{let i=Sl(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Ve(n)}function Ol(e,t){let r=je(e);return r===t||!oe(r)||to(r)?!1:kt(r).position==="fixed"||Ol(r,t)}function vu(e,t){let r=t.get(e);if(r)return r;let n=Wo(e,[],!1).filter(l=>oe(l)&&he(l)!=="body"),i=null,a=kt(e).position==="fixed",s=a?je(e):e;for(;oe(s)&&!to(s);){let l=kt(s),d=Vo(s);!d&&l.position==="fixed"&&(i=null),(a?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ur(s)&&!d&&Ol(e,s))?n=n.filter(h=>h!==s):i=l,s=je(s)}return t.set(e,n),n}function xu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?vu(t,this._c):[].concat(r),n],l=s[0],d=s.reduce((p,h)=>{let f=gl(t,h,i);return p.top=pr(f.top,p.top),p.right=la(f.right,p.right),p.bottom=la(f.bottom,p.bottom),p.left=pr(f.left,p.left),p},gl(t,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Su(e){return vl(e)}function Cu(e,t,r){let n=Zt(t),i=me(t),a=r==="fixed",s=ro(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=fe(0);if(n||!n&&!a)if((he(t)!=="body"||ur(i))&&(l=eo(t)),n){let p=ro(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else i&&(d.x=Cl(i));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function bl(e,t){return!Zt(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function El(e,t){let r=wt(e);if(!Zt(e))return r;let n=bl(e,t);for(;n&&hl(n)&&kt(n).position==="static";)n=bl(n,t);return n&&(he(n)==="html"||he(n)==="body"&&kt(n).position==="static"&&!Vo(n))?r:n||ml(e)||r}var Ou=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||El,a=this.getDimensions;return{reference:Cu(t,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Eu(e){return kt(e).direction==="rtl"}var hr={convertOffsetParentRelativeRectToViewportRelativeRect:hu,getDocumentElement:me,getClippingRect:xu,getOffsetParent:El,getElementRects:Ou,getClientRects:mu,getDimensions:Su,getScale:fr,isElement:oe,isRTL:Eu};var ca=(e,t,r)=>{let n=new Map,i={platform:hr,...r},a={...i.platform,_c:n};return pl(e,t,{...i,platform:a})};function pa(e){return wu(e)}function da(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function wu(e){for(let t=e;t;t=da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=da(e);t;t=da(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function oo(e,t,r){return ca(e,t,{platform:{...hr,getOffsetParent:n=>hr.getOffsetParent(n,pa)},middleware:[aa({crossAxis:!0}),Ho({allowedPlacements:[r]})]})}async function Au(e,t,r,n,i,a,s=4){return ca(e,t,{placement:r,strategy:i,platform:{...hr,getOffsetParent:l=>hr.getOffsetParent(l,pa)},middleware:[ia(s),Ho({allowedPlacements:n}),sa({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var ga={};Z(ga,{FtdsBase:()=>ao,toFtdsBase:()=>Go});var ya={};Z(ya,{FtLitElement:()=>W});var fa={};Z(fa,{ScopedRegistryLitElement:()=>no});var no=class extends ce{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return zr(n,t.elementStyles),n}};var ma={};Z(ma,{shadowQuerySelector:()=>ha,shadowQuerySelectorAll:()=>Ru});function ha(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Ru(e,t,...r){let n=[...e.querySelectorAll(t)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var io=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Tl,wl=Symbol("constructorPrototype"),Al=Symbol("constructorName"),Il=Symbol("exportpartsDebouncer"),Rl=Symbol("dynamicDependenciesLoaded"),W=class extends no{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tl]=new ft(5),this[Al]=this.constructor.name,this[wl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Al]&&Object.setPrototypeOf(this,this[wl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Rl]||(t[Rl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=ha(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Il].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...b).filter(d).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Tl=Il;io([x()],W.prototype,"exportpartsPrefix",void 0);io([zt([])],W.prototype,"exportpartsPrefixes",void 0);io([x()],W.prototype,"customStylesheet",void 0);io([x()],W.prototype,"elementToFocus",void 0);io([tt()],W.prototype,"useAdoptedStyleSheets",void 0);var _l=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Go(e){class t extends e{constructor(){super(...arguments),this.size=vt.medium,this.family=ue.neutral}getDesignSystemBaseClasses(){return{[Zi(this.family)]:!0,[qi(this.size)]:!0}}}return _l([x()],t.prototype,"size",void 0),_l([x()],t.prototype,"family",void 0),t}var ao=class extends Go(W){};var Nl={};var xa={};Z(xa,{highlightHtml:()=>va,highlightHtmlColorCssVariable:()=>Ll,highlightHtmlStyles:()=>Iu});var Ge=class e{constructor(t,r=!0,n=[],i=5e3){this.ctx=t,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(t,r){let n=typeof r=="string"?[r]:r,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(t,r,n=()=>{}){let i;try{let a=t.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(t){let r="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(t,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,n))}catch{n()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,n){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,n):this.getIframeContents(t,r,n):this.observeIframeLoad(t,r,n)}catch{n()}}waitForIframes(t,r){let n=0;this.forEachIframe(t,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(t,r,n,i=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,n(h)),d()},d)})}createIterator(t,r,n){return document.createNodeIterator(t,r,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,n){let i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),n;return r===null?n=t.nextNode():n=t.nextNode()&&t.nextNode(),{prevNode:r,node:n}}checkIframeFilter(t,r,n,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===n&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(t,r,n,i){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(t,r,n,i,a){let s=this.createIterator(r,t,i),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>d.push(v),i)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,t,n,i),a()}forEachNode(t,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var so=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){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},t)}get opt(){return this._opt}get iterator(){return new Ge(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=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!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return t.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],n=0;return t.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(t,r){let n,i,a=!1;return t&&typeof t.start<"u"?(n=parseInt(t.start,10),i=n+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:n,end:i,valid:a}}checkWhitespaceRanges(t,r,n){let i,a=!0,s=n.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,i=d+parseInt(t.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):n.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:i,valid:a}}getTextNodes(t){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:n})})}matchesExclude(t){return Ge.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,n){let i=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(n-r),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,r,n,i,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((v,b)=>{b>=l&&(t.nodes[b].start>0&&b!==l&&(t.nodes[b].start-=h),t.nodes[b].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),i(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(d[s],f),(f,m)=>{t.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(t,r,n,i){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{n(m,l)})}),i()})}unwrapMatches(t){let r=t.parentNode,n=document.createDocumentFragment();for(;t.firstChild;)n.appendChild(t.removeChild(t.firstChild));r.replaceChild(n,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(t),this.opt.done(n)})}mark(t,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,v)=>this.opt.filter(v,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(a[0])}markRanges(t,r){this.opt=r;let n=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(t){this.opt=t;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,n=>{this.unwrapMatches(n)},n=>{let i=Ge.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ba(e){let t=new so(e);return this.mark=(r,n)=>(t.mark(r,n),this),this.markRegExp=(r,n)=>(t.markRegExp(r,n),this),this.markRanges=(r,n)=>(t.markRanges(r,n),this),this.unmark=r=>(t.unmark(r),this),this}var Tu=ba,Ll=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Iu=L`
|
|
1
|
+
"use strict";(()=>{var qd=Object.create;var zn=Object.defineProperty;var Yd=Object.getOwnPropertyDescriptor;var Xd=Object.getOwnPropertyNames;var Jd=Object.getPrototypeOf,Qd=Object.prototype.hasOwnProperty;var tp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)zn(e,r,{get:t[r],enumerable:!0})},ep=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xd(t))!Qd.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=Yd(t,i))||n.enumerable});return e};var rp=(e,t,r)=>(r=e!=null?qd(Jd(e)):{},ep(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var mc=tp((Pe,hc)=>{var tn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,en=function(){function e(){this.fetch=!1,this.DOMException=tn.DOMException}return e.prototype=tn,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var C={next:function(){var k=y.shift();return{done:k===void 0,value:k}}};return i.iterable&&(C[Symbol.iterator]=function(){return C}),C}function f(y){this.map={},y instanceof f?y.forEach(function(C,k){this.append(k,C)},this):Array.isArray(y)?y.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(C){this.append(C,y[C])},this)}f.prototype.append=function(y,C){y=d(y),C=u(C);var k=this.map[y];this.map[y]=k?k+", "+C:C},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,C){this.map[d(y)]=u(C)},f.prototype.forEach=function(y,C){for(var k in this.map)this.map.hasOwnProperty(k)&&y.call(C,this.map[k],k,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(C,k){y.push(k)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(C){y.push(C)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(C,k){y.push([k,C])}),h(y)},i.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(C,k){y.onload=function(){C(y.result)},y.onerror=function(){k(y.error)}})}function b(y){var C=new FileReader,k=x(C);return C.readAsArrayBuffer(y),k}function O(y){var C=new FileReader,k=x(C),K=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=K?K[1]:"utf-8";return C.readAsText(y,Q),k}function _(y){for(var C=new Uint8Array(y),k=new Array(C.length),K=0;K<C.length;K++)k[K]=String.fromCharCode(C[K]);return k.join("")}function I(y){if(y.slice)return y.slice(0);var C=new Uint8Array(y.byteLength);return C.set(new Uint8Array(y)),C.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:i.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:i.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():i.arrayBuffer&&i.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(y){var C=y.toUpperCase();return w.indexOf(C)>-1?C:y}function A(y,C){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var k=C.body;if(y instanceof A){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,C.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!k&&y._bodyInit!=null&&(k=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new f(C.headers)),this.method=S(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in n){var j=new AbortController;return j.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var K=/([?&])_=[^&]*/;if(K.test(this.url))this.url=this.url.replace(K,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function M(y){var C=new FormData;return y.trim().split("&").forEach(function(k){if(k){var K=k.split("="),Q=K.shift().replace(/\+/g," "),j=K.join("=").replace(/\+/g," ");C.append(decodeURIComponent(Q),decodeURIComponent(j))}}),C}function z(y){var C=new f,k=y.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(K){return K.indexOf(`
|
|
2
|
+
`)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),j=Q.shift().trim();if(j){var Eo=Q.join(":").trim();try{C.append(j,Eo)}catch(Fn){console.warn("Response "+Fn.message)}}}),C}N.call(A.prototype);function G(y,C){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(y)}N.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},G.error=function(){var y=new G(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var V=[301,302,303,307,308];G.redirect=function(y,C){if(V.indexOf(C)===-1)throw new RangeError("Invalid status code");return new G(null,{status:C,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,k){this.message=C,this.name=k;var K=Error(C);this.stack=K.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(y,C){return new Promise(function(k,K){var Q=new A(y,C);if(Q.signal&&Q.signal.aborted)return K(new r.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function Eo(){j.abort()}j.onload=function(){var vt={statusText:j.statusText,headers:z(j.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(j.status<200||j.status>599)?vt.status=200:vt.status=j.status,vt.url="responseURL"in j?j.responseURL:vt.headers.get("X-Request-URL");var $e="response"in j?j.response:j.responseText;setTimeout(function(){k(new G($e,vt))},0)},j.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},j.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},j.onabort=function(){setTimeout(function(){K(new r.DOMException("Aborted","AbortError"))},0)};function Fn(vt){try{return vt===""&&n.location.href?n.location.href:vt}catch{return vt}}if(j.open(Q.method,Fn(Q.url),!0),Q.credentials==="include"?j.withCredentials=!0:Q.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&(i.blob?j.responseType="blob":i.arrayBuffer&&(j.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||n.Headers&&C.headers instanceof n.Headers)){var ks=[];Object.getOwnPropertyNames(C.headers).forEach(function(vt){ks.push(d(vt)),j.setRequestHeader(vt,u(C.headers[vt]))}),Q.headers.forEach(function(vt,$e){ks.indexOf($e)===-1&&j.setRequestHeader($e,vt)})}else Q.headers.forEach(function(vt,$e){j.setRequestHeader($e,vt)});Q.signal&&(Q.signal.addEventListener("abort",Eo),j.onreadystatechange=function(){j.readyState===4&&Q.signal.removeEventListener("abort",Eo)}),j.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return D.polyfill=!0,n.fetch||(n.fetch=D,n.Headers=f,n.Request=A,n.Response=G),r.Headers=f,r.Request=A,r.Response=G,r.fetch=D,r}({})})(en);en.fetch.ponyfill=!0;delete en.fetch.polyfill;var Sr=tn.fetch?tn:en;Pe=Sr.fetch;Pe.default=Sr.fetch;Pe.fetch=Sr.fetch;Pe.Headers=Sr.Headers;Pe.Request=Sr.Request;Pe.Response=Sr.Response;hc.exports=Pe});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(w,S){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=S.prototype.attributeChangedCallback,M=new Set(S.observedAttributes||[]);m(S,M,A);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(w,z),this._definitionsByClass.set(S,z);let G=r.call(n,w);G||(G=f(w),t.call(n,w,G)),this===window.customElements&&(s.set(S,z),z.standInClass=G);let V=this._awaitingUpgrade.get(w);if(V){this._awaitingUpgrade.delete(w);for(let y of V)a.delete(y),b(y,z,!0)}let D=this._whenDefinedPromises.get(w);return D!==void 0&&(D.resolve(S),this._whenDefinedPromises.delete(w)),S}upgrade(){_.push(this),n.upgrade.apply(n,arguments),_.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let S=this._getDefinition(w);if(S!==void 0)return Promise.resolve(S.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(M=>A.resolve=M),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,S,A){let M=this._awaitingUpgrade.get(S);M||this._awaitingUpgrade.set(S,M=new Set),A?M.add(w):M.delete(w)}};let d;window.HTMLElement=function(){let S=d;if(S)return d=void 0,S;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(e,[],A.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,A),S},window.HTMLElement.prototype=e.prototype;let u=w=>w===document||w instanceof ShadowRoot,h=w=>{let S=w.getRootNode();if(!u(S)){let A=_[_.length-1];if(A instanceof CustomElementRegistry)return A;S=A.getRootNode(),u(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let M=h(A)||window.customElements,z=M._getDefinition(w);return z?b(A,z):a.set(A,M),A}connectedCallback(){let A=i.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=i.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=i.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=i.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=i.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=i.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(w,S,A)=>{if(S.size===0||A===void 0)return;let M=w.prototype.setAttribute;M&&(w.prototype.setAttribute=function(V,D){let y=V.toLowerCase();if(S.has(y)){let C=this.getAttribute(y);M.call(this,y,D),A.call(this,y,C,D)}else M.call(this,y,D)});let z=w.prototype.removeAttribute;z&&(w.prototype.removeAttribute=function(V){let D=V.toLowerCase();if(S.has(D)){let y=this.getAttribute(D);z.call(this,D),A.call(this,D,y,null)}else z.call(this,D)});let G=w.prototype.toggleAttribute;G&&(w.prototype.toggleAttribute=function(V,D){let y=V.toLowerCase();if(S.has(y)){let C=this.getAttribute(y);G.call(this,y,D);let k=this.getAttribute(y);A.call(this,y,C,k)}else G.call(this,y,D)})},x=w=>{let S=Object.getPrototypeOf(w);if(S!==window.HTMLElement)return S===e?Object.setPrototypeOf(w,window.HTMLElement):x(S)},b=(w,S,A=!1)=>{Object.setPrototypeOf(w,S.elementClass.prototype),i.set(w,S),d=w;try{new S.elementClass}catch{x(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(M=>{w.hasAttribute(M)&&S.attributeChangedCallback.call(w,M,null,w.getAttribute(M))}),A&&S.connectedCallback&&w.isConnected&&S.connectedCallback.call(w)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let S=O.apply(this,arguments);return w.customElements&&(S.customElements=w.customElements),S};let _=[document],I=(w,S,A=void 0)=>{let M=(A?Object.getPrototypeOf(A):w.prototype)[S];w.prototype[S]=function(){_.push(this);let z=M.apply(A||this,arguments);return z!==void 0&&l.set(z,this),_.pop(),z}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let N=(w,S)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,S);Object.defineProperty(w.prototype,S,{...A,set(M){_.push(this),A.set.call(this,M),_.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,S=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...V){let D=S.call(this,...V);return w.set(D,this),D},A.forEach(V=>{let D=window.ElementInternals.prototype,y=D[V];D[V]=function(...C){let k=w.get(this);if(i.get(k).formAssociated===!0)return y?.call(this,...C);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class z{constructor(D){let y=new Map;D.forEach((C,k)=>{let K=C.getAttribute("name"),Q=y.get(K)||[];this[+k]=C,Q.push(C),y.set(K,Q)}),this.length=D.length,y.forEach((C,k)=>{C&&(C.length===1?this[k]=C[0]:this[k]=new M(C))})}namedItem(D){return this[D]}}let G=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let V=G.get.call(this,[]),D=[];for(let y of V){let C=i.get(y);(!C||C.formAssociated===!0)&&D.push(y)}return new z(D)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{t.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var ti={};Z(ti,{CSSResult:()=>rr,LitElement:()=>ce,ReactiveElement:()=>Qt,_$LE:()=>hp,_$LH:()=>Xn,adoptStyles:()=>zr,css:()=>L,defaultConverter:()=>or,getCompatibleStyle:()=>Ao,html:()=>$,isServer:()=>ih,mathml:()=>Yn,noChange:()=>Ct,notEqual:()=>Wr,nothing:()=>H,render:()=>Jn,supportsAdoptingStyleSheets:()=>Fr,svg:()=>qn,unsafeCSS:()=>Jt});var wo=globalThis,Fr=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hn=Symbol(),Ms=new WeakMap,rr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Hn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Fr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Ms.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ms.set(r,t))}return t}toString(){return this.cssText}},Jt=e=>new rr(typeof e=="string"?e:e+"",void 0,Hn),L=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]);return new rr(r,e,Hn)},zr=(e,t)=>{if(Fr)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=wo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Ao=Fr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Jt(r)})(e):e;var{is:op,defineProperty:np,getOwnPropertyDescriptor:ip,getOwnPropertyNames:ap,getOwnPropertySymbols:sp,getPrototypeOf:lp}=Object,Ro=globalThis,Ds=Ro.trustedTypes,cp=Ds?Ds.emptyScript:"",dp=Ro.reactiveElementPolyfillSupport,Hr=(e,t)=>e,or={toAttribute(e,t){switch(t){case Boolean:e=e?cp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Wr=(e,t)=>!op(e,t),$s={attribute:!0,type:String,converter:or,reflect:!1,useDefault:!1,hasChanged:Wr};Symbol.metadata??=Symbol("metadata"),Ro.litPropertyMetadata??=new WeakMap;var Qt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=$s){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&np(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:a}=ip(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$s}static _$Ei(){if(this.hasOwnProperty(Hr("elementProperties")))return;let t=lp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Hr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hr("properties"))){let r=this.properties,n=[...ap(r),...sp(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Ao(i))}else t!==void 0&&r.push(Ao(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:or).toAttribute(r,n.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:or;this._$Em=i,this[i]=s.fromAttribute(r,a.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let i=this.constructor,a=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??Wr)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),a!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Hr("elementProperties")]=new Map,Qt[Hr("finalized")]=new Map,dp?.({ReactiveElement:Qt}),(Ro.reactiveElementVersions??=[]).push("2.1.0");var Vn=globalThis,To=Vn.trustedTypes,Bs=To?To.createPolicy("lit-html",{createHTML:e=>e}):void 0,jn="$lit$",le=`lit$${Math.random().toFixed(9).slice(2)}$`,Gn="?"+le,pp=`<${Gn}>`,Fe=document,jr=()=>Fe.createComment(""),Gr=e=>e===null||typeof e!="object"&&typeof e!="function",Kn=Array.isArray,Vs=e=>Kn(e)||typeof e?.[Symbol.iterator]=="function",Wn=`[
|
|
3
|
+
\f\r]`,Vr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Us=/-->/g,Fs=/>/g,Be=RegExp(`>|${Wn}(?:([^\\s"'>=/]+)(${Wn}*=${Wn}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Hs=/"/g,js=/^(?:script|style|textarea|title)$/i,Zn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$=Zn(1),qn=Zn(2),Yn=Zn(3),Ct=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Ws=new WeakMap,Ue=Fe.createTreeWalker(Fe,129);function Gs(e,t){if(!Kn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bs!==void 0?Bs.createHTML(t):t}var Ks=(e,t)=>{let r=e.length-1,n=[],i,a=t===2?"<svg>":t===3?"<math>":"",s=Vr;for(let l=0;l<r;l++){let d=e[l],u,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Vr?h[1]==="!--"?s=Us:h[1]!==void 0?s=Fs:h[2]!==void 0?(js.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Be):h[3]!==void 0&&(s=Be):s===Be?h[0]===">"?(s=i??Vr,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Be:h[3]==='"'?Hs:zs):s===Hs||s===zs?s=Be:s===Us||s===Fs?s=Vr:(s=Be,i=void 0);let x=s===Be&&e[l+1].startsWith("/>")?" ":"";a+=s===Vr?d+pp:f>=0?(n.push(u),d.slice(0,f)+jn+d.slice(f)+le+x):d+le+(f===-2?l:x)}return[Gs(e,a+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Kr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[u,h]=Ks(t,r);if(this.el=e.createElement(u,n),Ue.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ue.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(jn)){let m=h[s++],x=i.getAttribute(f).split(le),b=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:b[2],strings:x,ctor:b[1]==="."?_o:b[1]==="?"?No:b[1]==="@"?Lo:He}),i.removeAttribute(f)}else f.startsWith(le)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(js.test(i.tagName)){let f=i.textContent.split(le),m=f.length-1;if(m>0){i.textContent=To?To.emptyScript:"";for(let x=0;x<m;x++)i.append(f[x],jr()),Ue.nextNode(),d.push({type:2,index:++a});i.append(f[m],jr())}}}else if(i.nodeType===8)if(i.data===Gn)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(le,f+1))!==-1;)d.push({type:7,index:a}),f+=le.length-1}a++}}static createElement(t,r){let n=Fe.createElement("template");return n.innerHTML=t,n}};function ze(e,t,r=e,n){if(t===Ct)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=Gr(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=ze(e,i._$AS(e,t.values),i,n)),t}var Io=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Fe).importNode(r,!0);Ue.currentNode=i;let a=Ue.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new nr(a,a.nextSibling,this,t):d.type===1?u=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(u=new Po(a,this,t)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(a=Ue.nextNode(),s++)}return Ue.currentNode=Fe,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},nr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ze(this,t,r),Gr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==Ct&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Vs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&Gr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Fe.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Kr.createElement(Gs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Io(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(t){let r=Ws.get(t.strings);return r===void 0&&Ws.set(t.strings,r=new Kr(t)),r}k(t){Kn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of t)i===r.length?r.push(n=new e(this.O(jr()),this.O(jr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},He=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)t=ze(this,t,r,0),s=!Gr(t)||t!==this._$AH&&t!==Ct,s&&(this._$AH=t);else{let l=t,d,u;for(t=a[0],d=0;d<a.length-1;d++)u=ze(this,l[n+d],r,d),u===Ct&&(u=this._$AH[d]),s||=!Gr(u)||u!==this._$AH[d],u===H?t=H:t!==H&&(t+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!i&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_o=class extends He{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},No=class extends He{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},Lo=class extends He{constructor(t,r,n,i,a){super(t,r,n,i,a),this.type=5}_$AI(t,r=this){if((t=ze(this,t,r,0)??H)===Ct)return;let n=this._$AH,i=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Po=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ze(this,t)}},Xn={M:jn,P:le,A:Gn,C:1,L:Ks,R:Io,D:Vs,V:ze,I:nr,H:He,N:No,U:Lo,B:_o,F:Po},up=Vn.litHtmlPolyfillSupport;up?.(Kr,nr),(Vn.litHtmlVersions??=[]).push("3.3.0");var Jn=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new nr(t.insertBefore(jr(),a),a,void 0,r??{})}return i._$AI(e),i};var Qn=globalThis,ce=class extends Qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Jn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ct}};ce._$litElement$=!0,ce.finalized=!0,Qn.litElementHydrateSupport?.({LitElement:ce});var fp=Qn.litElementPolyfillSupport;fp?.({LitElement:ce});var hp={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Qn.litElementVersions??=[]).push("4.2.0");var ih=!1;var oi={};Z(oi,{customElement:()=>mp,eventOptions:()=>ir,property:()=>v,query:()=>st,queryAll:()=>bp,queryAssignedElements:()=>ei,queryAssignedNodes:()=>ri,queryAsync:()=>xp,standardProperty:()=>Zs,state:()=>tt});var mp=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var yp={attribute:!0,type:String,converter:or,reflect:!1,hasChanged:Wr},Zs=(e=yp,t,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+n)};function v(e){return(t,r)=>typeof r=="object"?Zs(e,t,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(e,t,r)}function tt(e){return v({...e,state:!0,attribute:!1})}function ir(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var Gt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function st(e,t){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return Gt(r,n,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Gt(r,n,{get(){return a(this)}})}}var gp;function bp(e){return(t,r)=>Gt(t,r,{get(){return(this.renderRoot??(gp??=document.createDocumentFragment())).querySelectorAll(e)}})}function xp(e){return(t,r)=>Gt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function ei(e){return(t,r)=>{let{slot:n,selector:i}=e??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Gt(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function ri(e){return(t,r)=>{let{slot:n}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Gt(t,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}var ni={};Z(ni,{repeat:()=>Mo});var te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kt=e=>(...t)=>({_$litDirective$:e,values:t}),Ut=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:vp}=Xn;var Ys=e=>e.strings===void 0,qs=()=>document.createComment(""),ar=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=n.insertBefore(qs(),i),s=n.insertBefore(qs(),i);r=new vp(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||l){let d=r._$AA;for(;d!==a;){let u=d.nextSibling;n.insertBefore(d,i),d=u}}}return r},Oe=(e,t,r=e)=>(e._$AI(t,r),e),Sp={},Xs=(e,t=Sp)=>e._$AH=t,Js=e=>e._$AH,ko=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var Qs=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},Mo=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;r===void 0?r=t:t!==void 0&&(n=t);let i=[],a=[],s=0;for(let l of e)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=Js(e),{values:a,keys:s}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],u,h,f=0,m=i.length-1,x=0,b=a.length-1;for(;f<=m&&x<=b;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[x])d[x]=Oe(i[f],a[x]),f++,x++;else if(l[m]===s[b])d[b]=Oe(i[m],a[b]),m--,b--;else if(l[f]===s[b])d[b]=Oe(i[f],a[b]),ar(e,d[b+1],i[f]),f++,b--;else if(l[m]===s[x])d[x]=Oe(i[m],a[x]),ar(e,i[f],i[m]),m--,x++;else if(u===void 0&&(u=Qs(s,x,b),h=Qs(l,f,m)),u.has(l[f]))if(u.has(l[m])){let O=h.get(s[x]),_=O!==void 0?i[O]:null;if(_===null){let I=ar(e,i[f]);Oe(I,a[x]),d[x]=I}else d[x]=Oe(_,a[x]),ar(e,i[f],_),i[O]=null;x++}else ko(i[m]),m--;else ko(i[f]),f++;for(;x<=b;){let O=ar(e,d[b+1]);Oe(O,a[x]),d[x++]=O}for(;f<=m;){let O=i[f++];O!==null&&ko(O)}return this.ut=s,Xs(e,d),Ct}});var ii={};Z(ii,{classMap:()=>Ft});var Ft=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return Ct}});var ai={};Z(ai,{styleMap:()=>Op});var tl="important",Cp=" !"+tl,Op=Kt(class extends Ut{constructor(e){if(super(e),e.type!==te.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith(Cp);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?tl:""):r[n]=i}}return Ct}});var li={};Z(li,{UnsafeHTMLDirective:()=>sr,unsafeHTML:()=>si});var sr=class extends Ut{constructor(t){if(super(t),this.it=H,t.type!==te.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||t==null)return this._t=void 0,this.it=t;if(t===Ct)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};sr.directiveName="unsafeHTML",sr.resultType=1;var si=Kt(sr);var mi={};Z(mi,{CacheRegistry:()=>ee,ClearCacheEvent:()=>Zr});var di={};Z(di,{CancelablePromise:()=>Do,CanceledPromiseError:()=>de,cancelable:()=>ci});var de=class extends Error{constructor(t,r,n){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=n}},Do=class extends Promise{constructor(t){super((r,n)=>t(i=>{this.isCanceled?n(new de("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new de("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ci=e=>new Do((t,r)=>e.then(t).catch(r));var hi={};Z(hi,{FtNotificationEvent:()=>pi,PostResizeEvent:()=>fi,PreResizeEvent:()=>ui,WithEventBus:()=>pe,withEventBus:()=>$o});var pi=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},ui=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},fi=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function $o(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var pe=class extends $o(Object){};var Zr=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},ee=class extends pe{constructor(){super(...arguments),this.content={}}register(t,r,n=!1){var i;let a=this.content[t],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[t]={...a,loader:r,final:n,status:s}}registerFinal(t,r){this.register(t,r,!0)}clearAll(t=!0){return this.clearMatching(()=>!0,t)}clearMatching(t,r=!0){let n=Object.keys(this.content).filter(t).filter(i=>this.clear(i,!1)!=null);return r&&n.length>0&&this.dispatchEvent(new Zr(n)),n}clear(t,r=!0){if(this.content[t]&&!this.content[t].final)return this.forceClear(t),r&&this.dispatchEvent(new Zr([t])),t}forceClear(t){var r;let n=this.content[t];n&&(this.clearClearTimeout(t),(r=n.promise)===null||r===void 0||r.cancel(),this.content[t]={loader:n.loader,final:n.final,status:"REGISTERED"})}clearClearTimeout(t){var r,n,i;((r=this.content[t])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((n=this.content[t])===null||n===void 0?void 0:n.clearTimeout),(i=this.content[t])===null||i===void 0||delete i.clearTimeout)}set(t,r,n=!1){this.forceClear(t);let i=async()=>r,a="RESOLVED";this.content[t]={loader:i,final:n,status:a,value:r}}setFinal(t,r){return this.set(t,r,!0)}async get(t,r,n){if(!this.isRegistered(t)){if(!r)throw new Error("Unknown cache key "+t);this.register(t,r)}let i=this.content[t];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return r=r??i.loader,i.status="LOADING",i.promise=ci(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,n!=null&&(this.clearClearTimeout(t),i.clearTimeout=window.setTimeout(()=>this.clear(t),n)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(t){return this.content[t]!=null}getNow(t){var r;return(r=this.content[t])===null||r===void 0?void 0:r.value}has(t){var r,n;return((r=this.content[t])===null||r===void 0?void 0:r.status)!==void 0&&((n=this.content[t])===null||n===void 0?void 0:n.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(t=>{var r;return((r=this.content[t])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(t=>this.content[t].value)}keys(){return Object.keys(this.content)}};var gi={};Z(gi,{ClusteringHelper:()=>We,formatHierarchicalValues:()=>yi});function yi(e,t){return t&&t>1&&e.length>=t?`... > ${e[e.length-1]}`:e.join(" > ")}var We=class e{constructor(t,r,n,i){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(t){var r,n,i,a,s;let l=((a=(n=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&n!==void 0?n:(i=t.result)===null||i===void 0?void 0:i.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,n){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!i))if(i){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(yi(l)),s.push(yi(l,r))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>n?n(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,n="No value",i,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:t,label:u,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,x)=>x.findIndex(b=>b.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,n,i){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let n=this.allResults.filter(d=>{var u;return((u=e.extractResultMetadata({result:d,key:t}))===null||u===void 0?void 0:u.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of n){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var bi={};Z(bi,{Debouncer:()=>ft});var ft=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Oi={};Z(Oi,{customElement:()=>q,dateProperty:()=>Ip,isNumber:()=>nl,jsonProperty:()=>zt,numberProperty:()=>ol,optionalNumberProperty:()=>Tp});var Ci={};Z(Ci,{dateReviver:()=>Ep,deepCopy:()=>Xr,deepEqual:()=>Pt,delay:()=>Bo,eventPathContainsMatchingElement:()=>vi,flatDeep:()=>el,getComposedPathTo:()=>Si,hasChanged:()=>Ee,last:()=>Ap,minmax:()=>Yr,parseDate:()=>rl,randomId:()=>Rp,unslotText:()=>lr,waitFor:()=>qr,waitUntil:()=>xi});var Bo=e=>new Promise(t=>setTimeout(t,e));async function xi(e,t=10,r=2e4){await qr(async()=>await e()||void 0,t,r)}async function qr(e,t=10,r=2e4){let n=await e(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await Bo(t),n=await e(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function el(e,t){return e.flatMap(r=>[r,...el(t(r),t)])}function Ep(...e){return(t,r)=>e.includes(t)?rl(r):r}function rl(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,n,i)=>r+n+":"+i),new Date(e)}function wp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Pt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Pt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!Pt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Pt(e,t){try{return wp(e,t)}catch{return!1}}function Ee(e,t){return!Pt(e,t)}function vi(e,t,r=window.document.body){if(t.length>0){let n=e.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&t.some(a=>i.matches(a)))return!0}}return!1}function Yr(e,t,r){return Math.min(Math.max(e,t),r)}function Ap(e){return e[e.length-1]}function lr(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>lr(t)).join(""):e?.textContent||""}function Si(e){let t=[],r=n=>{n.stopPropagation(),t=n.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}function Xr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Rp(e,t){return(t??"")+(""+Math.floor(Math.random()*10**e)).padStart(e,"0")}var q=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function zt(e,t){let r=()=>JSON.parse(JSON.stringify(e));return v({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ee,...t??{}})}function Tp(e){return ol(e)}function ol(e){return v({type:Object,converter:{fromAttribute:t=>{if(t!=null)return nl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},useDefault:!0,...e??{}})}function nl(e){return!isNaN(parseFloat(e))}function Ip(e){return v({type:Object,converter:{fromAttribute:t=>{if(t==null)return;let r=new Date(Date.parse(t));if(!isNaN(r.valueOf()))return r},toAttribute:t=>t?.toISOString()},useDefault:!0,...e??{}})}var Ji={};Z(Ji,{designSystemVariables:()=>F});var Xi={};Z(Xi,{DesignSystemFamily:()=>ue,DesignSystemSize:()=>xt,FtCssVariableFactory:()=>o,badge:()=>Bp,banner:()=>$p,button:()=>g,chart:()=>tu,checkbox:()=>Lp,chip:()=>U,chipChoice:()=>Mp,collapsible:()=>Jp,comboboxMultiSelect:()=>Yp,comboboxSingleSelect:()=>qp,dateRangePicker:()=>su,drawer:()=>Vp,floatingMenu:()=>Zp,foundation:()=>c,link:()=>Dp,modal:()=>Wp,notice:()=>ru,notification:()=>nu,pageDesigner:()=>eu,pageFooter:()=>zp,pageHeader:()=>Fp,pageLayout:()=>Hp,popover:()=>Xp,radio:()=>Pp,reorderableList:()=>au,resolveFamilyClass:()=>qi,resolveSizeClass:()=>Yi,semantic:()=>p,setVariable:()=>E,switch_:()=>Qp,table:()=>kp,tabs:()=>jp,textArea:()=>Kp,textInput:()=>Gp,titleBreadcrumb:()=>Up,toggle:()=>ou,tooltip:()=>iu,treeList:()=>Np,typographies:()=>Jr,typographyBody1Medium:()=>Ii,typographyBody1Regular:()=>Ti,typographyBody1Semibold:()=>_i,typographyBody2Medium:()=>Li,typographyBody2MediumUnderline:()=>il,typographyBody2Regular:()=>Ni,typographyBody2Semibold:()=>Pi,typographyCaption1Bold:()=>Hi,typographyCaption1Medium:()=>Fi,typographyCaption1Semibold:()=>zi,typographyCaption2Bold:()=>ji,typographyCaption2Medium:()=>Wi,typographyCaption2Semibold:()=>Vi,typographyCaption3Bold:()=>Zi,typographyCaption3Medium:()=>Gi,typographyCaption3Semibold:()=>Ki,typographyDisplay:()=>Ei,typographyLabel1Bold:()=>Di,typographyLabel1Medium:()=>ki,typographyLabel1Semibold:()=>Mi,typographyLabel2Bold:()=>Ui,typographyLabel2Medium:()=>$i,typographyLabel2Semibold:()=>Bi,typographyTitle1:()=>wi,typographyTitle2:()=>Ai,typographyTitle3:()=>Ri,typographyVariants:()=>_p});var we=e=>typeof e=="string"?Jt(e):e,o=class{static create(t,r,n,i){let a=l=>we(l??i),s=L`var(${we(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>E(s,l??a(i)),s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,r,n,i){let a=l=>n.get(l??i),s=L`var(${we(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>E(s,l??a(i)),s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(t,r){let n=a=>t.defaultCssValue(a),i=L`var(${we(t.name)}, ${n(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=r,i.defaultCssValue=n,i.set=a=>t.set(a),i.get=a=>L`var(${we(t.name)}, ${n(a)})`,i.breadcrumb=()=>t.breadcrumb(),i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}};function E(e,t){return we(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),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"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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("--ft-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)")},Ei={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},wi={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},Ai={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},Ri={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},Ti={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},Ii={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},_i={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},Ni={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Li={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},il={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Pi={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},ki={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},Mi={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Di={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},$i={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Bi={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Ui={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Fi={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},zi={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Hi={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Wi={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Vi={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},ji={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Gi={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Ki={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Zi={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Jr={display:Ei,"title-1":wi,"title-2":Ai,"title-3":Ri,"body-1-regular":Ti,"body-1-medium":Ii,"body-1-semibold":_i,"body-2-regular":Ni,"body-2-medium":Li,"body-2-medium-underline":il,"body-2-semibold":Pi,"label-1-medium":ki,"label-1-semibold":Mi,"label-1-bold":Di,"label-2-medium":$i,"label-2-semibold":Bi,"label-2-bold":Ui,"caption-1-medium":Fi,"caption-1-semibold":zi,"caption-1-bold":Hi,"caption-2-medium":Wi,"caption-2-semibold":Vi,"caption-2-bold":ji,"caption-3-medium":Gi,"caption-3-semibold":Ki,"caption-3-bold":Zi},_p=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var p={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var g={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var Np={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ft-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ft-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ft-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ft-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ft-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ft-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ft-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ft-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Lp={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)};var Pp={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)};var kp={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var Mp={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var U={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var Dp={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var $p={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var Bp={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Up={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Fp={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var zp={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var Hp={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Wp={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Vp={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var jp={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var Gp={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Kp={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)};var Zp={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var qp={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Yp={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)};var Xp={backgroundColor:o.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var Jp={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Qp={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var tu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var eu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var ru={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var ou={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var nu={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var iu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var au={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var su={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var ue;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(ue||(ue={}));var xt;(function(e){e.large="large",e.medium="medium",e.small="small"})(xt||(xt={}));function qi(e){return`ftds--family-${e}`}function Yi(e){return`ftds--size-${e}`}var F={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)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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","","UNKNOWN","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 Qi={};Z(Qi,{DynamicImporter:()=>Uo,dynamicImporter:()=>lu});var Uo=class{async import(t){return import(t)}},lu=new Uo;var fa={};Z(fa,{computeOffsetAutoPosition:()=>Tu,computeOffsetPosition:()=>oo});var sl=["top","right","bottom","left"],al=["start","end"],ea=sl.reduce((e,t)=>e.concat(t,t+"-"+al[0],t+"-"+al[1]),[]),Fo=Math.min,Ae=Math.max;var cu={left:"right",right:"left",bottom:"top",top:"bottom"},du={start:"end",end:"start"};function ra(e,t,r){return Ae(e,Fo(t,r))}function cr(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function re(e){return e.split("-")[1]}function oa(e){return e==="x"?"y":"x"}function na(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Re(e))?"y":"x"}function ia(e){return oa(dr(e))}function ll(e,t,r){r===void 0&&(r=!1);let n=re(e),i=ia(e),a=na(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ta(s)),[s,ta(s)]}function cl(e){return e.replace(/start|end/g,t=>du[t])}function ta(e){return e.replace(/left|right|bottom|top/g,t=>cu[t])}function pu(e){return{top:0,right:0,bottom:0,left:0,...e}}function dl(e){return typeof e!="number"?pu(e):{top:e,right:e,bottom:e,left:e}}function Ve(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function pl(e,t,r){let{reference:n,floating:i}=e,a=dr(t),s=ia(t),l=na(s),d=Re(t),u=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,x;switch(d){case"top":x={x:h,y:n.y-i.height};break;case"bottom":x={x:h,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:f};break;case"left":x={x:n.x-i.width,y:f};break;default:x={x:n.x,y:n.y}}switch(re(t)){case"start":x[s]-=m*(r&&u?-1:1);break;case"end":x[s]+=m*(r&&u?-1:1);break}return x}var ul=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:f}=pl(u,n,d),m=n,x={},b=0;for(let O=0;O<l.length;O++){let{name:_,fn:I}=l[O],{x:N,y:w,data:S,reset:A}=await I({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:x,rects:u,platform:s,elements:{reference:e,floating:t}});h=N??h,f=w??f,x={...x,[_]:{...x[_],...S}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:f}=pl(u,m,d)),O=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:x}};async function zo(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:x=0}=cr(t,e),b=dl(x),_=l[m?f==="floating"?"reference":"floating":f],I=Ve(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:d})),N=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=Ve(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:w,strategy:d}):N);return{top:(I.top-A.top+b.top)/S.y,bottom:(A.bottom-I.bottom+b.bottom)/S.y,left:(I.left-A.left+b.left)/S.x,right:(A.right-I.right+b.right)/S.x}}function uu(e,t,r){return(e?[...r.filter(i=>re(i)===e),...r.filter(i=>re(i)!==e)]:r.filter(i=>Re(i)===i)).filter(i=>e?re(i)===e||(t?cl(i)!==i:!1):!0)}var Ho=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=ea,autoAlignment:x=!0,...b}=cr(e,t),O=f!==void 0||m===ea?uu(f||null,x,m):m,_=await zo(t,b),I=((r=s.autoPlacement)==null?void 0:r.index)||0,N=O[I];if(N==null)return{};let w=ll(N,a,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(l!==N)return{reset:{placement:O[0]}};let S=[_[Re(N)],_[w[0]],_[w[1]]],A=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:S}],M=O[I+1];if(M)return{data:{index:I+1,overflows:A},reset:{placement:M}};let z=A.map(D=>{let y=re(D.placement);return[D.placement,y&&h?D.overflows.slice(0,2).reduce((C,k)=>C+k,0):D.overflows[0],D.overflows]}).sort((D,y)=>D[1]-y[1]),V=((i=z.filter(D=>D[2].slice(0,re(D[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||z[0][0];return V!==l?{data:{index:I+1,overflows:A},reset:{placement:V}}:{}}}};async function fu(e,t){let{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Re(r),l=re(r),d=dr(r)==="y",u=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=cr(t,e),{mainAxis:m,crossAxis:x,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(x=l==="end"?b*-1:b),d?{x:x*h,y:m*u}:{x:m*u,y:x*h}}var aa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=t,d=await fu(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},sa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:I,y:N}=_;return{x:I,y:N}}},...d}=cr(e,t),u={x:r,y:n},h=await zo(t,d),f=dr(Re(i)),m=oa(f),x=u[m],b=u[f];if(a){let _=m==="y"?"top":"left",I=m==="y"?"bottom":"right",N=x+h[_],w=x-h[I];x=ra(N,x,w)}if(s){let _=f==="y"?"top":"left",I=f==="y"?"bottom":"right",N=b+h[_],w=b-h[I];b=ra(N,b,w)}let O=l.fn({...t,[m]:x,[f]:b});return{...O,data:{x:O.x-r,y:O.y-n,enabled:{[m]:a,[f]:s}}}}}};var la=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:i,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...u}=cr(e,t),h=await zo(t,u),f=Re(i),m=re(i),x=dr(i)==="y",{width:b,height:O}=a.floating,_,I;f==="top"||f==="bottom"?(_=f,I=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(I=f,_=m==="end"?"top":"bottom");let N=O-h.top-h.bottom,w=b-h.left-h.right,S=Fo(O-h[_],N),A=Fo(b-h[I],w),M=!t.middlewareData.shift,z=S,G=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(G=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(z=N),M&&!m){let D=Ae(h.left,0),y=Ae(h.right,0),C=Ae(h.top,0),k=Ae(h.bottom,0);x?G=b-2*(D!==0||y!==0?D+y:Ae(h.left,h.right)):z=O-2*(C!==0||k!==0?C+k:Ae(h.top,h.bottom))}await d({...t,availableWidth:G,availableHeight:z});let V=await s.getDimensions(l.floating);return b!==V.width||O!==V.height?{reset:{rects:!0}}:{}}}};var ca=Math.min,pr=Math.max,Qr=Math.round;var fe=e=>({x:e,y:e});function he(e){return hl(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(hl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hl(e){return e instanceof Node||e instanceof wt(e).Node}function oe(e){return e instanceof Element||e instanceof wt(e).Element}function Zt(e){return e instanceof HTMLElement||e instanceof wt(e).HTMLElement}function fl(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function ur(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function ml(e){return["table","td","th"].includes(he(e))}function Vo(e){let t=jo(),r=kt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function yl(e){let t=je(e);for(;Zt(t)&&!to(t);){if(Vo(t))return t;t=je(t)}return null}function jo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(he(e))}function kt(e){return wt(e).getComputedStyle(e)}function eo(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function je(e){if(he(e)==="html")return e;let t=e.assignedSlot||e.parentNode||fl(e)&&e.host||me(e);return fl(t)?t.host:t}function gl(e){let t=je(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&ur(t)?t:gl(t)}function Wo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=gl(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=wt(i);return a?t.concat(s,s.visualViewport||[],ur(i)?i:[],s.frameElement&&r?Wo(s.frameElement):[]):t.concat(i,Wo(i,[],r))}function vl(e){let t=kt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Zt(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Qr(r)!==a||Qr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function Sl(e){return oe(e)?e:e.contextElement}function fr(e){let t=Sl(e);if(!Zt(t))return fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=vl(t),s=(a?Qr(r.width):r.width)/n,l=(a?Qr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var hu=fe(0);function Cl(e){let t=wt(e);return!jo()||!t.visualViewport?hu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==wt(e)?!1:t}function ro(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=Sl(e),s=fe(1);t&&(n?oe(n)&&(s=fr(n)):s=fr(e));let l=mu(a,r,n)?Cl(a):fe(0),d=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let m=wt(a),x=n&&oe(n)?wt(n):n,b=m.frameElement;for(;b&&n&&x!==m;){let O=fr(b),_=b.getBoundingClientRect(),I=kt(b),N=_.left+(b.clientLeft+parseFloat(I.paddingLeft))*O.x,w=_.top+(b.clientTop+parseFloat(I.paddingTop))*O.y;d*=O.x,u*=O.y,h*=O.x,f*=O.y,d+=N,u+=w,b=wt(b).frameElement}}return Ve({width:h,height:f,x:d,y:u})}function yu(e){let{rect:t,offsetParent:r,strategy:n}=e,i=Zt(r),a=me(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=fe(1),d=fe(0);if((i||!i&&n!=="fixed")&&((he(r)!=="body"||ur(a))&&(s=eo(r)),Zt(r))){let u=ro(r);l=fr(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function gu(e){return Array.from(e.getClientRects())}function Ol(e){return ro(me(e)).left+eo(e).scrollLeft}function bu(e){let t=me(e),r=eo(e),n=e.ownerDocument.body,i=pr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=pr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Ol(e),l=-r.scrollTop;return kt(n).direction==="rtl"&&(s+=pr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function xu(e,t){let r=wt(e),n=me(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(i){a=i.width,s=i.height;let u=jo();(!u||u&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:l,y:d}}function vu(e,t){let r=ro(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Zt(e)?fr(e):fe(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=i*a.x,u=n*a.y;return{width:s,height:l,x:d,y:u}}function bl(e,t,r){let n;if(t==="viewport")n=xu(e,r);else if(t==="document")n=bu(me(e));else if(oe(t))n=vu(t,r);else{let i=Cl(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Ve(n)}function El(e,t){let r=je(e);return r===t||!oe(r)||to(r)?!1:kt(r).position==="fixed"||El(r,t)}function Su(e,t){let r=t.get(e);if(r)return r;let n=Wo(e,[],!1).filter(l=>oe(l)&&he(l)!=="body"),i=null,a=kt(e).position==="fixed",s=a?je(e):e;for(;oe(s)&&!to(s);){let l=kt(s),d=Vo(s);!d&&l.position==="fixed"&&(i=null),(a?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ur(s)&&!d&&El(e,s))?n=n.filter(h=>h!==s):i=l,s=je(s)}return t.set(e,n),n}function Cu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Su(t,this._c):[].concat(r),n],l=s[0],d=s.reduce((u,h)=>{let f=bl(t,h,i);return u.top=pr(f.top,u.top),u.right=ca(f.right,u.right),u.bottom=ca(f.bottom,u.bottom),u.left=pr(f.left,u.left),u},bl(t,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ou(e){return vl(e)}function Eu(e,t,r){let n=Zt(t),i=me(t),a=r==="fixed",s=ro(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=fe(0);if(n||!n&&!a)if((he(t)!=="body"||ur(i))&&(l=eo(t)),n){let u=ro(t,!0,a,t);d.x=u.x+t.clientLeft,d.y=u.y+t.clientTop}else i&&(d.x=Ol(i));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function xl(e,t){return!Zt(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function wl(e,t){let r=wt(e);if(!Zt(e))return r;let n=xl(e,t);for(;n&&ml(n)&&kt(n).position==="static";)n=xl(n,t);return n&&(he(n)==="html"||he(n)==="body"&&kt(n).position==="static"&&!Vo(n))?r:n||yl(e)||r}var wu=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||wl,a=this.getDimensions;return{reference:Eu(t,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Au(e){return kt(e).direction==="rtl"}var hr={convertOffsetParentRelativeRectToViewportRelativeRect:yu,getDocumentElement:me,getClippingRect:Cu,getOffsetParent:wl,getElementRects:wu,getClientRects:gu,getDimensions:Ou,getScale:fr,isElement:oe,isRTL:Au};var da=(e,t,r)=>{let n=new Map,i={platform:hr,...r},a={...i.platform,_c:n};return ul(e,t,{...i,platform:a})};function ua(e){return Ru(e)}function pa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Ru(e){for(let t=e;t;t=pa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=pa(e);t;t=pa(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function oo(e,t,r){return da(e,t,{platform:{...hr,getOffsetParent:n=>hr.getOffsetParent(n,ua)},middleware:[sa({crossAxis:!0}),Ho({allowedPlacements:[r]})]})}async function Tu(e,t,r,n,i,a,s=4){return da(e,t,{placement:r,strategy:i,platform:{...hr,getOffsetParent:l=>hr.getOffsetParent(l,ua)},middleware:[aa(s),Ho({allowedPlacements:n}),la({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var ba={};Z(ba,{FtdsBase:()=>ao,toFtdsBase:()=>Go});var ga={};Z(ga,{FtLitElement:()=>W});var ha={};Z(ha,{ScopedRegistryLitElement:()=>no});var no=class extends ce{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return zr(n,t.elementStyles),n}};var ya={};Z(ya,{shadowQuerySelector:()=>ma,shadowQuerySelectorAll:()=>Iu});function ma(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Iu(e,t,...r){let n=[...e.querySelectorAll(t)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var io=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Il,Al=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),_l=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),W=class extends no{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Il]=new ft(5),this[Rl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Tl]||(t[Tl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=ma(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[_l].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,l;let d=m=>m!=null&&m.trim().length>0,u=t.filter(d).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(d).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>u.map(x=>`${m}:${x}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Il=_l;io([v()],W.prototype,"exportpartsPrefix",void 0);io([zt([])],W.prototype,"exportpartsPrefixes",void 0);io([v()],W.prototype,"customStylesheet",void 0);io([v()],W.prototype,"elementToFocus",void 0);io([tt()],W.prototype,"useAdoptedStyleSheets",void 0);var Nl=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Go(e){class t extends e{constructor(){super(...arguments),this.size=xt.medium,this.family=ue.neutral}getDesignSystemBaseClasses(){return{[qi(this.family)]:!0,[Yi(this.size)]:!0}}}return Nl([v()],t.prototype,"size",void 0),Nl([v()],t.prototype,"family",void 0),t}var ao=class extends Go(W){};var Ll={};var Sa={};Z(Sa,{highlightHtml:()=>va,highlightHtmlColorCssVariable:()=>Pl,highlightHtmlStyles:()=>Nu});var Ge=class e{constructor(t,r=!0,n=[],i=5e3){this.ctx=t,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(t,r){let n=typeof r=="string"?[r]:r,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(t,r,n=()=>{}){let i;try{let a=t.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(t){let r="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(t,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,n))}catch{n()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,n){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,n):this.getIframeContents(t,r,n):this.observeIframeLoad(t,r,n)}catch{n()}}waitForIframes(t,r){let n=0;this.forEachIframe(t,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(t,r,n,i=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(u=>{e.matches(u,this.exclude)?d():this.onIframeReady(u,h=>{r(u)&&(l++,n(h)),d()},d)})}createIterator(t,r,n){return document.createNodeIterator(t,r,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,n){let i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),n;return r===null?n=t.nextNode():n=t.nextNode()&&t.nextNode(),{prevNode:r,node:n}}checkIframeFilter(t,r,n,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===n&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(t,r,n,i){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(t,r,n,i,a){let s=this.createIterator(r,t,i),l=[],d=[],u,h,f=()=>({prevNode:h,node:u}=this.getIteratorNode(s),u);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(u,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,x=>d.push(x),i)}),d.push(u);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,t,n,i),a()}forEachNode(t,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var so=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){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},t)}get opt(){return this._opt}get iterator(){return new Ge(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=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!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return t.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],n=0;return t.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(t,r){let n,i,a=!1;return t&&typeof t.start<"u"?(n=parseInt(t.start,10),i=n+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:n,end:i,valid:a}}checkWhitespaceRanges(t,r,n){let i,a=!0,s=n.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,i=d+parseInt(t.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):n.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:i,valid:a}}getTextNodes(t){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:n})})}matchesExclude(t){return Ge.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,n){let i=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(n-r),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,r,n,i,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let u=r-s.start,h=(n>s.end?s.end:n)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,h),t.value=f+m,t.nodes.forEach((x,b)=>{b>=l&&(t.nodes[b].start>0&&b!==l&&(t.nodes[b].start-=h),t.nodes[b].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=t.exec(d.textContent))!==null&&u[s]!=="";){if(!n(u[s],d))continue;let h=u.index;if(s!==0)for(let f=1;f<s;f++)h+=u[f].length;d=this.wrapRangeInTextNode(d,h,h+u[s].length),i(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let f=1;f<s;f++)u+=d[f].length;let h=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,h,f=>n(d[s],f),(f,m)=>{t.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(t,r,n,i){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:u,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,u,h,m=>r(m,l,a.value.substring(u,h),d),m=>{n(m,l)})}),i()})}unwrapMatches(t){let r=t.parentNode,n=document.createDocumentFragment();for(;t.firstChild;)n.appendChild(t.removeChild(t.firstChild));r.replaceChild(n,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(t),this.opt.done(n)})}mark(t,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=u=>{let h=new RegExp(this.createRegExp(u),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,x)=>this.opt.filter(x,u,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(n):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(a[0])}markRanges(t,r){this.opt=r;let n=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(t){this.opt=t;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,n=>{this.unwrapMatches(n)},n=>{let i=Ge.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function xa(e){let t=new so(e);return this.mark=(r,n)=>(t.mark(r,n),this),this.markRegExp=(r,n)=>(t.markRegExp(r,n),this),this.markRanges=(r,n)=>(t.markRanges(r,n),this),this.unmark=r=>(t.unmark(r),this),this}var _u=xa,Pl=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Nu=L`
|
|
6
6
|
.highlight-html-match {
|
|
7
|
-
background: ${
|
|
7
|
+
background: ${Pl};
|
|
8
8
|
}
|
|
9
|
-
`;function va(e,t,r){var n,i;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new
|
|
9
|
+
`;function va(e,t,r){var n,i;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new _u(e);if(s.unmark(),t&&t.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let h in r.attributes)u.setAttribute(h,r.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=t.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var Ca={};Z(Ca,{noTextInputDefaultClearButton:()=>Pu,noTextSelect:()=>ye,safariEllipsisFix:()=>lo,wordWrap:()=>Lu});var ye=L`
|
|
10
10
|
.ft-no-text-select {
|
|
11
11
|
-webkit-touch-callout: none;
|
|
12
12
|
-webkit-user-select: none;
|
|
@@ -15,7 +15,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
15
15
|
-ms-user-select: none;
|
|
16
16
|
user-select: none;
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,Lu=L`
|
|
19
19
|
.ft-word-wrap {
|
|
20
20
|
white-space: normal;
|
|
21
21
|
word-wrap: break-word;
|
|
@@ -38,14 +38,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
38
38
|
display: inline-block;
|
|
39
39
|
width: 0;
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`,Pu=L`
|
|
42
42
|
input::-webkit-search-cancel-button,
|
|
43
43
|
input::-webkit-search-decoration,
|
|
44
44
|
input::-webkit-search-results-button,
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var Pl={};var Ca={};Z(Ca,{ParametrizedLabelResolver:()=>co});var co=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var n,i;t=this.resolvePluralKey(t,r);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,r){for(let n of r)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let n=i=>r?.includes("date")?t.toLocaleDateString(i):r?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Za={};Z(Za,{FtCommandQueue:()=>po,FtLitElementRedux:()=>ge,FtReduxStore:()=>ve,ReduxWatcher:()=>Jo,clearAllStores:()=>mf,isFtReduxStore:()=>mr,redux:()=>ht,reduxEventListener:()=>Ea,reduxReactive:()=>Oa,watch:()=>yf,withRedux:()=>kl});var Oa=()=>(e,t)=>{var r;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(t)},ht=e=>{let t=e??{};return(r,n)=>{var i;let a={hasChanged:Ee,attribute:!1,...t};x(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},Ea=e=>(t,r)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,e)};var po=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function mr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var uo=Symbol("internalReduxEventsUnsubscribers"),Te=Symbol("internalStoresUnsubscribers"),Ke=Symbol("internalStores");function kl(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=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[Ke].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ke].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ke].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ke].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ke].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ke].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Te].has(s.store):this[Te].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Te].set(s,l.subscribe(()=>this.updateFromStores())),this[uo].set(s,[]),mr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[uo].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Te].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Te].has(s)&&this[Te].get(s)(),this[Te].delete(s),(l=this[uo].get(s))===null||l===void 0||l.forEach(d=>d()),this[uo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Te,r=Ke,n=uo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}var ge=class extends kl(W){};function Ht(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function be(e){return!!e&&!!e[ot]}function qt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Uu}(e)||Array.isArray(e)||!!e[zl]||!!(!((t=e.constructor)===null||t===void 0)&&t[zl])||Pa(e)||ka(e))}function Ze(e,t,r){r===void 0&&(r=!1),br(e)===0?(r?Object.keys:gr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function br(e){var t=e[ot];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Pa(e)?2:ka(e)?3:0}function yr(e,t){return br(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lu(e,t){return br(e)===2?e.get(t):e[t]}function Hl(e,t,r){var n=br(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Pa(e){return $u&&e instanceof Map}function ka(e){return Bu&&e instanceof Set}function Ie(e){return e.o||e.t}function Ma(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gl(e);delete t[ot];for(var r=gr(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Da(e,t){return t===void 0&&(t=!1),$a(e)||be(e)||!qt(e)||(br(e)>1&&(e.set=e.add=e.clear=e.delete=Pu),Object.freeze(e),t&&Ze(e,function(r,n){return Da(n,!0)},!0)),e}function Pu(){Ht(2)}function $a(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ne(e){var t=La[e];return t||Ht(18,e),t}function ku(e,t){La[e]||(La[e]=t)}function Ia(){return ho}function wa(e,t){t&&(ne("Patches"),e.u=[],e.s=[],e.v=t)}function Ko(e){_a(e),e.p.forEach(Mu),e.p=null}function _a(e){e===ho&&(ho=e.l)}function Ml(e){return ho={p:[],l:ho,h:e,m:!0,_:0}}function Mu(e){var t=e[ot];t.i===0||t.i===1?t.j():t.g=!0}function Aa(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ne("ES5").S(t,e,n),n?(r[ot].P&&(Ko(t),Ht(4)),qt(e)&&(e=Zo(t,e),t.l||qo(t,e)),t.u&&ne("Patches").M(r[ot].t,e,t.u,t.s)):e=Zo(t,r,[]),Ko(t),t.u&&t.v(t.u,t.s),e!==jl?e:void 0}function Zo(e,t,r){if($a(t))return t;var n=t[ot];if(!n)return Ze(t,function(l,d){return Dl(e,n,t,l,d,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ma(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ze(a,function(l,d){return Dl(e,n,i,l,d,r,s)}),qo(e,i,!1),r&&e.u&&ne("Patches").N(n,r,e.u,e.s)}return n.o}function Dl(e,t,r,n,i,a,s){if(be(i)){var l=Zo(e,i,a&&t&&t.i!==3&&!yr(t.R,n)?a.concat(n):void 0);if(Hl(r,n,l),!be(l))return;e.m=!1}else s&&r.add(i);if(qt(i)&&!$a(i)){if(!e.h.D&&e._<1)return;Zo(e,i),t&&t.A.l||qo(e,i)}}function qo(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Da(t,r)}function Ra(e,t){var r=e[ot];return(r?Ie(r):e)[t]}function $l(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _e(e){e.P||(e.P=!0,e.l&&_e(e.l))}function Ta(e){e.o||(e.o=Ma(e.t))}function Na(e,t,r){var n=Pa(t)?ne("MapSet").F(t,r):ka(t)?ne("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Ia(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=mo;s&&(d=[l],p=fo);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):ne("ES5").J(t,r);return(r?r.A:Ia()).p.push(n),n}function Du(e){return be(e)||Ht(22,e),function t(r){if(!qt(r))return r;var n,i=r[ot],a=br(r);if(i){if(!i.P&&(i.i<4||!ne("ES5").K(i)))return i.t;i.I=!0,n=Bl(r,a),i.I=!1}else n=Bl(r,a);return Ze(n,function(s,l){i&&Lu(i.t,s)===l||Hl(n,s,t(l))}),a===3?new Set(n):n}(e)}function Bl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ma(e)}function Vl(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[ot];return mo.get(p,s)},set:function(p){var h=this[ot];mo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ot];if(!d.P)switch(d.i){case 5:n(d)&&_e(d);break;case 4:r(d)&&_e(d)}}}function r(s){for(var l=s.t,d=s.k,p=gr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==ot){var m=l[f];if(m===void 0&&!yr(l,f))return!0;var v=d[f],b=v&&v[ot];if(b?b.t!==m:!Wl(v,m))return!0}}var O=!!l[ot];return p.length!==gr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ht(3,JSON.stringify(Ie(s)))}var a={};ku("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,e(b,!0));return v}var O=Gl(m);delete O[ot];for(var _=gr(O),I=0;I<_.length;I++){var N=_[I];O[N]=e(N,f||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:Ia(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ot,{value:h,writable:!0}),p},S:function(s,l,d){d?be(l)&&l[ot].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[ot];if(f){var m=f.t,v=f.k,b=f.R,O=f.i;if(O===4)Ze(v,function(S){S!==ot&&(m[S]!==void 0||yr(m,S)?b[S]||p(v[S]):(b[S]=!0,_e(f)))}),Ze(m,function(S){v[S]!==void 0||yr(v,S)||(b[S]=!1,_e(f))});else if(O===5){if(n(f)&&(_e(f),b.length=!0),v.length<m.length)for(var _=v.length;_<m.length;_++)b[_]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var N=Math.min(v.length,m.length),w=0;w<N;w++)v.hasOwnProperty(w)||(b[w]=!0),b[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Ul,ho,Ba=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$u=typeof Map<"u",Bu=typeof Set<"u",Fl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",jl=Ba?Symbol.for("immer-nothing"):((Ul={})["immer-nothing"]=!0,Ul),zl=Ba?Symbol.for("immer-draftable"):"__$immer_draftable",ot=Ba?Symbol.for("immer-state"):"__$immer_state";var Uu=""+Object.prototype.constructor,gr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(e){var t={};return gr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},La={},mo={get:function(e,t){if(t===ot)return e;var r=Ie(e);if(!yr(r,t))return function(i,a,s){var l,d=$l(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!qt(n)?n:n===Ra(e.t,t)?(Ta(e),e.o[t]=Na(e.A.h,n,e)):n},has:function(e,t){return t in Ie(e)},ownKeys:function(e){return Reflect.ownKeys(Ie(e))},set:function(e,t,r){var n=$l(Ie(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ra(Ie(e),t),a=i?.[ot];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wl(r,i)&&(r!==void 0||yr(e.t,t)))return!0;Ta(e),_e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ra(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ta(e),_e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ie(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ht(12)}},fo={};Ze(mo,function(e,t){fo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),fo.deleteProperty=function(e,t){return fo.set.call(this,e,t,void 0)},fo.set=function(e,t,r){return mo.set.call(this,e[0],t,r,e[0])};var Fu=function(){function e(r){var n=this;this.O=Fl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(O){var _=this;O===void 0&&(O=l);for(var I=arguments.length,N=Array(I>1?I-1:0),w=1;w<I;w++)N[w-1]=arguments[w];return d.produce(O,function(S){var A;return(A=a).call.apply(A,[_,S].concat(N))})}}var p;if(typeof a!="function"&&Ht(6),s!==void 0&&typeof s!="function"&&Ht(7),qt(i)){var h=Ml(n),f=Na(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ko(h):_a(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return wa(h,s),Aa(O,h)},function(O){throw Ko(h),O}):(wa(h,s),Aa(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===jl&&(p=void 0),n.D&&Da(p,!0),s){var v=[],b=[];ne("Patches").M(i,p,v,b),s(v,b)}return p}Ht(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return i.apply(void 0,[v].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){qt(r)||Ht(8),be(r)&&(r=Du(r));var n=Ml(this),i=Na(this,r,void 0);return i[ot].C=!0,_a(n),i},t.finishDraft=function(r,n){var i=r&&r[ot],a=i.A;return wa(a,n),Aa(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Fl&&Ht(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ne("Patches").$;return be(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Mt=new Fu,zu=Mt.produce,xv=Mt.produceWithPatches.bind(Mt),Sv=Mt.setAutoFreeze.bind(Mt),Cv=Mt.setUseProxies.bind(Mt),Ov=Mt.applyPatches.bind(Mt),Ev=Mt.createDraft.bind(Mt),wv=Mt.finishDraft.bind(Mt),Yo=zu;function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Kl(e,t){if(qe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zl(e){var t=Kl(e,"string");return qe(t)=="symbol"?t:t+""}function ql(e,t,r){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ua(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){ql(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Xl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xo={INIT:"@@redux/INIT"+Fa(),REPLACE:"@@redux/REPLACE"+Fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fa()}};function Hu(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function za(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ot(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ot(1));return r(za)(e,t)}if(typeof e!="function")throw new Error(Ot(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ot(3));return a}function f(O){if(typeof O!="function")throw new Error(Ot(4));if(d)throw new Error(Ot(5));var _=!0;return p(),l.push(O),function(){if(_){if(d)throw new Error(Ot(6));_=!1,p();var N=l.indexOf(O);l.splice(N,1),s=null}}}function m(O){if(!Hu(O))throw new Error(Ot(7));if(typeof O.type>"u")throw new Error(Ot(8));if(d)throw new Error(Ot(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var _=s=l,I=0;I<_.length;I++){var N=_[I];N()}return O}function v(O){if(typeof O!="function")throw new Error(Ot(10));i=O,m({type:Xo.REPLACE})}function b(){var O,_=f;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ot(11));function w(){N.next&&N.next(h())}w();var S=_(w);return{unsubscribe:S}}},O[Xl]=function(){return this},O}return m({type:Xo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:v},n[Xl]=b,n}function Wu(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Xo.INIT});if(typeof n>"u")throw new Error(Ot(12));if(typeof r(void 0,{type:Xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ot(13))})}function Jl(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,l;try{Wu(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,v={},b=0;b<a.length;b++){var O=a[b],_=r[O],I=p[O],N=_(I,h);if(typeof N>"u"){var w=h&&h.type;throw new Error(Ot(14))}v[O]=N,m=m||N!==I}return m=m||a.length!==Object.keys(p).length,m?v:p}}function vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Ql(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ot(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=vr.apply(void 0,l)(i.dispatch),Ua(Ua({},i),{},{dispatch:a})}}}function tc(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var ec=tc();ec.withExtraArgument=tc;var Ha=ec;var ac=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vu=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xr=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},ju=Object.defineProperty,Gu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,oc=function(e,t,r){return t in e?ju(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ne=function(e,t){for(var r in t||(t={}))Zu.call(t,r)&&oc(e,r,t[r]);if(rc)for(var n=0,i=rc(t);n<i.length;n++){var r=i[n];qu.call(t,r)&&oc(e,r,t[r])}return e},Wa=function(e,t){return Gu(e,Ku(t))},Yu=function(e,t,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Wv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ju(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Qu=function(e){ac(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,xr([void 0],r[0].concat(this)))):new(t.bind.apply(t,xr([void 0],r.concat(this))))},t}(Array),tf=function(e){ac(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,xr([void 0],r[0].concat(this)))):new(t.bind.apply(t,xr([void 0],r.concat(this))))},t}(Array);function Ga(e){return qt(e)?Yo(e,function(){}):e}function ef(e){return typeof e=="boolean"}function rf(){return function(t){return of(t)}}function of(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new Qu;if(r&&(ef(r)?l.push(Ha):l.push(Ha.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var Va=!0;function sc(e){var t=rf(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof i=="function")v=i;else if(Ju(i))v=Jl(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(t),!Va&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Va&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ql.apply(void 0,b),_=vr;d&&(_=Xu(Ne({trace:!Va},typeof d=="object"&&d)));var I=new tf(O),N=I;Array.isArray(m)?N=xr([O],m):typeof m=="function"&&(N=m(I));var w=_.apply(void 0,N);return za(v,h,w)}function Le(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ne(Ne({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function lc(e){var t={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function nf(e){return typeof e=="function"}function af(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?lc(t):[t,r,n],a=i[0],s=i[1],l=i[2],d;if(nf(e))d=function(){return Ga(e())};else{var p=Ga(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var v=xr([a[m.type]],s.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return v.filter(function(b){return!!b}).length===0&&(v=[l]),v.reduce(function(b,O){if(O)if(be(b)){var _=b,I=O(_,m);return I===void 0?b:I}else{if(qt(b))return Yo(b,function(N){return O(N,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},f)}return h.getInitialState=d,h}function sf(e,t){return e+"/"+t}function cc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ga(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=sf(t,h),v,b;"reducer"in f?(v=f.reducer,b=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=b?Le(m,b):Le(m)});function d(){var h=typeof e.extraReducers=="function"?lc(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],b=v===void 0?[]:v,O=h[2],_=O===void 0?void 0:O,I=Ne(Ne({},m),s);return af(r,function(N){for(var w in I)N.addCase(w,I[w]);for(var S=0,A=b;S<A.length;S++){var M=A[S];N.addMatcher(M.matcher,M.reducer)}_&&N.addDefaultCase(_)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=lf[Math.random()*64|0];return t},df=["name","message","stack","code"],ja=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),nc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),pf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=df;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},Kv=function(){function e(t,r,n){var i=Le(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:Wa(Ne({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Le(t+"/pending",function(h,f,m){return{payload:void 0,meta:Wa(Ne({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Le(t+"/rejected",function(h,f,m,v,b){return{payload:v,error:(n&&n.serializeError||pf)(h||"Rejected"),meta:Wa(Ne({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,v){var b=n?.idGenerator?n.idGenerator(h):cf(),O=new d,_,I=!1;function N(S){_=S,O.abort()}var w=function(){return Yu(this,null,function(){var S,A,M,z,G,V,D;return Vu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:v}),ff(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,G=new Promise(function(C,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:_||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([G,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:b,signal:O.signal,abort:N,rejectWithValue:function(C,k){return new ja(C,k)},fulfillWithValue:function(C,k){return new nc(C,k)}})).then(function(C){if(C instanceof ja)throw C;return C instanceof nc?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return M=y.sent(),[3,5];case 4:return V=y.sent(),M=V instanceof ja?s(null,b,h,V.payload,V.meta):s(V,b,h),[3,5];case 5:return D=n&&!n.dispatchConditionRejection&&s.match(M)&&M.meta.condition,D||f(M),[2,M]}})})}();return Object.assign(w,{abort:N,requestId:b,arg:h,unwrap:function(){return w.then(uf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function uf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ff(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var dc="listener",pc="completed",uc="cancelled",Zv="task-"+uc,qv="task-"+pc,Yv=dc+"-"+uc,Xv=dc+"-"+pc;var Ka="listenerMiddleware";var Jv=Le(Ka+"/add"),Qv=Le(Ka+"/removeAll"),tx=Le(Ka+"/remove");var ic,ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ic||(ic=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},hf=function(e){return function(t){setTimeout(t,e)}},rx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);Vl();window.ftReduxStores||(window.ftReduxStores={});var ve=class e extends pe{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(mr(a))return a;if(i==null)return;let s=cc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=sc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new e(s,l,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new po;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function mf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))mr(t)&&t.clear()}var Jo=class{constructor(t,r,n){this.store=t,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);Ee(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function yf(e,t,r){return new Jo(e,t,r).watch()}var Xa={};Z(Xa,{scrollHelper:()=>gf});var qa,Qo=new Map,Ya=class{lock(t,r){if(r){let n=Qo.get(r);if(n==null||n===t)return Qo.set(r,t),r}}release(t,r){r&&Qo.get(r)===t&&Qo.delete(r)}findFirstScrollableParent(t){var r;let n,i;for(let a of xi(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var n,i;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Yr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(qa=window.FluidTopicsScrollHelper)!==null&&qa!==void 0?qa:new Ya;var gf=window.FluidTopicsScrollHelper;var Qa={};Z(Qa,{SearchPlaceConverter:()=>Er,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Hc,serializeRequest:()=>Sf});var vf=ep(hc(),1);var mc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(mc||(mc={}));var yc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(yc||(yc={}));var gc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE"})(gc||(gc={}));var bc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE"})(bc||(bc={}));var vc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vc||(vc={}));var xc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(xc||(xc={}));var Sc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Sc||(Sc={}));var Cc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cc||(Cc={}));var Oc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Oc||(Oc={}));var Ec;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ec||(Ec={}));var wc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(wc||(wc={}));var Ac;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ac||(Ac={}));var Rc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Rc||(Rc={}));var Tc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Tc||(Tc={}));var Ic;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ic||(Ic={}));var _c;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(_c||(_c={}));var Ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ja||(Ja={}));var Mc=e=>Object.keys(Ja).includes(e);var Nc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Nc||(Nc={}));var rn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rn||(rn={}));var Lc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var Cr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Cr||(Cr={}));var Dc=e=>Object.keys(Cr).includes(e);var Or;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Or||(Or={}));var Pc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pc||(Pc={}));var kc;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(kc||(kc={}));var et;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(et||(et={}));var Ye;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ye||(Ye={}));var $c;(function(e){e.VALID="VALID",e.INVALID="INVALID"})($c||($c={}));var Bc;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Bc||(Bc={}));var Uc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Uc||(Uc={}));var bf={[et.PERSONAL_BOOK_SHARE_USER]:[et.PERSONAL_BOOK_USER],[et.HTML_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.PDF_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.KHUB_ADMIN]:[et.CONTENT_PUBLISHER],[et.ADMIN]:[et.KHUB_ADMIN,et.USERS_ADMIN,et.PORTAL_ADMIN],[et.GENERATIVE_AI_EXPORT_USER]:[et.GENERATIVE_AI_USER]};function Fc(e,t){return e===t||(bf[e]??[]).some(r=>Fc(r,t))}function xe(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Fc(n,t))}function xf(e){return`"${e}"`}function zc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function Sf(e,t){return new Er(e).serialize(t)}var Y;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(Y||(Y={}));var Cf=new Set(Object.values(Y));function Hc(e){return Cf.has(e)}var Er=class{constructor(t,r=20,n=!1,i="en-US"){this.baseUrl=t,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(t),i.toString()}toURLSearchParams(t,r=!1){var n,i,a,s,l,d,p,h,f,m,v;let b=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,t.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,t.query);let O=(a=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(O.length>0){let S=O.map(A=>{var M,z;let G=((z=(M=A.valueFilter)===null||M===void 0?void 0:M.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>xf(zc(V))).join("_");return`${A.key}~${G}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let _=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let S=_.map(A=>{var M;return`${A.key}~${(M=A.dateFilter)===null||M===void 0?void 0:M.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let I=(p=(d=t.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(I.length>0){let S=I.map(A=>{var M,z;return`${A.key}~${(M=A.rangeFilter)===null||M===void 0?void 0:M.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&b.append(Y.SCOPE,t.scope.toLowerCase()),t.sortId!=null&&b.append(Y.SORT,t.sortId),!((h=t.paging)===null||h===void 0)&&h.perPage&&((m=(f=t.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(t.paging.perPage));let N=(v=t.otherQueryParams)!==null&&v!==void 0?v:{};for(let S in N)b.append(S,N[S]);let w=new Array;return b.forEach((S,A)=>{w.push(this.encodeQueryString(A)+"="+this.encodeQueryString(S))}),encodeURI(w.join("&")).replace(/#/g,"%23")}encodeQueryString(t){return encodeURIComponent(t).replace(/%20/g,"+")}parse(t){var r;let n=t.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(t){var r,n,i,a,s,l;try{t=decodeURI(t).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(t),p=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((r=d.get(Y.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",v=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b={};for(let O of d.keys())Hc(O)||(b[O]=d.get(O));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Mc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Yr(1,isNaN(v)?this.defaultPerPage:v,1e3)},otherQueryParams:b}}parseCompatFilters(t){var r,n,i,a,s,l;let d=[];return t.has(Y.FILTERS)&&(d=this.parseValueFilters((r=t.get(Y.FILTERS))!==null&&r!==void 0?r:"")),(n=t.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(zc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Cr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(r,n);return t}superEscapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replace(i,r);return t}parseLegacyPeriodFilter(t){if(Dc(t))return[{key:"ft:lastEdition",dateFilter:{type:Cr[t]}}];if(t.startsWith("CUSTOM_")){let[r,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var rs={};Z(rs,{toFtFormComponent:()=>es});var ts=Symbol("elementInternals");function es(e){class t extends e{static get formAssociated(){return!0}get form(){return this[ts].form}constructor(...n){super(n),this[ts]=this.attachInternals()}setFormValue(n){this[ts].setFormValue(n)}}return t}var os={};Z(os,{DateFormatter:()=>Xe});var Xe=class{static format(t,r,n,i){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(n,i)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var is={};Z(is,{ALL_KEYS_VALUE:()=>ns,SameWindowStorageEvent:()=>wr});var ns="__all__",wr=class extends CustomEvent{constructor(t,r,n){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:n}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==ns}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new wr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new wr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new wr(ns))}});var ss={};Z(ss,{FocusMainContentEvent:()=>as});var as=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Wc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Of(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Ef(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",Of);document.addEventListener("click",Ef);var Vc=L`
|
|
48
|
+
`;var kl={};var Oa={};Z(Oa,{ParametrizedLabelResolver:()=>co});var co=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var n,i;t=this.resolvePluralKey(t,r);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,r){for(let n of r)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let n=i=>r?.includes("date")?t.toLocaleDateString(i):r?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var qa={};Z(qa,{FtCommandQueue:()=>po,FtLitElementRedux:()=>ge,FtReduxStore:()=>xe,ReduxWatcher:()=>Jo,clearAllStores:()=>gf,isFtReduxStore:()=>mr,redux:()=>ht,reduxEventListener:()=>wa,reduxReactive:()=>Ea,watch:()=>bf,withRedux:()=>Ml});var Ea=()=>(e,t)=>{var r;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(t)},ht=e=>{let t=e??{};return(r,n)=>{var i;let a={hasChanged:Ee,attribute:!1,...t};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},wa=e=>(t,r)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,e)};var po=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function mr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var uo=Symbol("internalReduxEventsUnsubscribers"),Te=Symbol("internalStoresUnsubscribers"),Ke=Symbol("internalStores");function Ml(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=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[Ke].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ke].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ke].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ke].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ke].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ke].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[Te].has(s.store):this[Te].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Te].set(s,l.subscribe(()=>this.updateFromStores())),this[uo].set(s,[]),mr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=m=>this[h](m);l.addEventListener(u.eventName,f),this[uo].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Te].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Te].has(s)&&this[Te].get(s)(),this[Te].delete(s),(l=this[uo].get(s))===null||l===void 0||l.forEach(d=>d()),this[uo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Te,r=Ke,n=uo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}var ge=class extends Ml(W){};function Ht(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function be(e){return!!e&&!!e[ot]}function qt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===zu}(e)||Array.isArray(e)||!!e[Hl]||!!(!((t=e.constructor)===null||t===void 0)&&t[Hl])||ka(e)||Ma(e))}function Ze(e,t,r){r===void 0&&(r=!1),br(e)===0?(r?Object.keys:gr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function br(e){var t=e[ot];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ka(e)?2:Ma(e)?3:0}function yr(e,t){return br(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ku(e,t){return br(e)===2?e.get(t):e[t]}function Wl(e,t,r){var n=br(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Vl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ka(e){return Uu&&e instanceof Map}function Ma(e){return Fu&&e instanceof Set}function Ie(e){return e.o||e.t}function Da(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kl(e);delete t[ot];for(var r=gr(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function $a(e,t){return t===void 0&&(t=!1),Ba(e)||be(e)||!qt(e)||(br(e)>1&&(e.set=e.add=e.clear=e.delete=Mu),Object.freeze(e),t&&Ze(e,function(r,n){return $a(n,!0)},!0)),e}function Mu(){Ht(2)}function Ba(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ne(e){var t=Pa[e];return t||Ht(18,e),t}function Du(e,t){Pa[e]||(Pa[e]=t)}function _a(){return ho}function Aa(e,t){t&&(ne("Patches"),e.u=[],e.s=[],e.v=t)}function Ko(e){Na(e),e.p.forEach($u),e.p=null}function Na(e){e===ho&&(ho=e.l)}function Dl(e){return ho={p:[],l:ho,h:e,m:!0,_:0}}function $u(e){var t=e[ot];t.i===0||t.i===1?t.j():t.g=!0}function Ra(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ne("ES5").S(t,e,n),n?(r[ot].P&&(Ko(t),Ht(4)),qt(e)&&(e=Zo(t,e),t.l||qo(t,e)),t.u&&ne("Patches").M(r[ot].t,e,t.u,t.s)):e=Zo(t,r,[]),Ko(t),t.u&&t.v(t.u,t.s),e!==Gl?e:void 0}function Zo(e,t,r){if(Ba(t))return t;var n=t[ot];if(!n)return Ze(t,function(l,d){return $l(e,n,t,l,d,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Da(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ze(a,function(l,d){return $l(e,n,i,l,d,r,s)}),qo(e,i,!1),r&&e.u&&ne("Patches").N(n,r,e.u,e.s)}return n.o}function $l(e,t,r,n,i,a,s){if(be(i)){var l=Zo(e,i,a&&t&&t.i!==3&&!yr(t.R,n)?a.concat(n):void 0);if(Wl(r,n,l),!be(l))return;e.m=!1}else s&&r.add(i);if(qt(i)&&!Ba(i)){if(!e.h.D&&e._<1)return;Zo(e,i),t&&t.A.l||qo(e,i)}}function qo(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&$a(t,r)}function Ta(e,t){var r=e[ot];return(r?Ie(r):e)[t]}function Bl(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _e(e){e.P||(e.P=!0,e.l&&_e(e.l))}function Ia(e){e.o||(e.o=Da(e.t))}function La(e,t,r){var n=ka(t)?ne("MapSet").F(t,r):Ma(t)?ne("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:_a(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=mo;s&&(d=[l],u=fo);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):ne("ES5").J(t,r);return(r?r.A:_a()).p.push(n),n}function Bu(e){return be(e)||Ht(22,e),function t(r){if(!qt(r))return r;var n,i=r[ot],a=br(r);if(i){if(!i.P&&(i.i<4||!ne("ES5").K(i)))return i.t;i.I=!0,n=Ul(r,a),i.I=!1}else n=Ul(r,a);return Ze(n,function(s,l){i&&ku(i.t,s)===l||Wl(n,s,t(l))}),a===3?new Set(n):n}(e)}function Ul(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Da(e)}function jl(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[ot];return mo.get(u,s)},set:function(u){var h=this[ot];mo.set(h,s,u)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ot];if(!d.P)switch(d.i){case 5:n(d)&&_e(d);break;case 4:r(d)&&_e(d)}}}function r(s){for(var l=s.t,d=s.k,u=gr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==ot){var m=l[f];if(m===void 0&&!yr(l,f))return!0;var x=d[f],b=x&&x[ot];if(b?b.t!==m:!Vl(x,m))return!0}}var O=!!l[ot];return u.length!==gr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Ht(3,JSON.stringify(Ie(s)))}var a={};Du("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var O=Kl(m);delete O[ot];for(var _=gr(O),I=0;I<_.length;I++){var N=_[I];O[N]=e(N,f||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:_a(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ot,{value:h,writable:!0}),u},S:function(s,l,d){d?be(l)&&l[ot].A===s&&t(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[ot];if(f){var m=f.t,x=f.k,b=f.R,O=f.i;if(O===4)Ze(x,function(S){S!==ot&&(m[S]!==void 0||yr(m,S)?b[S]||u(x[S]):(b[S]=!0,_e(f)))}),Ze(m,function(S){x[S]!==void 0||yr(x,S)||(b[S]=!1,_e(f))});else if(O===5){if(n(f)&&(_e(f),b.length=!0),x.length<m.length)for(var _=x.length;_<m.length;_++)b[_]=!1;else for(var I=m.length;I<x.length;I++)b[I]=!0;for(var N=Math.min(x.length,m.length),w=0;w<N;w++)x.hasOwnProperty(w)||(b[w]=!0),b[w]===void 0&&u(x[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Fl,ho,Ua=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Uu=typeof Map<"u",Fu=typeof Set<"u",zl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gl=Ua?Symbol.for("immer-nothing"):((Fl={})["immer-nothing"]=!0,Fl),Hl=Ua?Symbol.for("immer-draftable"):"__$immer_draftable",ot=Ua?Symbol.for("immer-state"):"__$immer_state";var zu=""+Object.prototype.constructor,gr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kl=Object.getOwnPropertyDescriptors||function(e){var t={};return gr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Pa={},mo={get:function(e,t){if(t===ot)return e;var r=Ie(e);if(!yr(r,t))return function(i,a,s){var l,d=Bl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!qt(n)?n:n===Ta(e.t,t)?(Ia(e),e.o[t]=La(e.A.h,n,e)):n},has:function(e,t){return t in Ie(e)},ownKeys:function(e){return Reflect.ownKeys(Ie(e))},set:function(e,t,r){var n=Bl(Ie(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ta(Ie(e),t),a=i?.[ot];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Vl(r,i)&&(r!==void 0||yr(e.t,t)))return!0;Ia(e),_e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ta(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ia(e),_e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ie(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ht(12)}},fo={};Ze(mo,function(e,t){fo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),fo.deleteProperty=function(e,t){return fo.set.call(this,e,t,void 0)},fo.set=function(e,t,r){return mo.set.call(this,e[0],t,r,e[0])};var Hu=function(){function e(r){var n=this;this.O=zl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(O){var _=this;O===void 0&&(O=l);for(var I=arguments.length,N=Array(I>1?I-1:0),w=1;w<I;w++)N[w-1]=arguments[w];return d.produce(O,function(S){var A;return(A=a).call.apply(A,[_,S].concat(N))})}}var u;if(typeof a!="function"&&Ht(6),s!==void 0&&typeof s!="function"&&Ht(7),qt(i)){var h=Dl(n),f=La(n,i,void 0),m=!0;try{u=a(f),m=!1}finally{m?Ko(h):Na(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Aa(h,s),Ra(O,h)},function(O){throw Ko(h),O}):(Aa(h,s),Ra(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Gl&&(u=void 0),n.D&&$a(u,!0),s){var x=[],b=[];ne("Patches").M(i,u,x,b),s(x,b)}return u}Ht(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){qt(r)||Ht(8),be(r)&&(r=Bu(r));var n=Dl(this),i=La(this,r,void 0);return i[ot].C=!0,Na(n),i},t.finishDraft=function(r,n){var i=r&&r[ot],a=i.A;return Aa(a,n),Ra(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!zl&&Ht(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ne("Patches").$;return be(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Mt=new Hu,Wu=Mt.produce,Cx=Mt.produceWithPatches.bind(Mt),Ox=Mt.setAutoFreeze.bind(Mt),Ex=Mt.setUseProxies.bind(Mt),wx=Mt.applyPatches.bind(Mt),Ax=Mt.createDraft.bind(Mt),Rx=Mt.finishDraft.bind(Mt),Yo=Wu;function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Zl(e,t){if(qe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ql(e){var t=Zl(e,"string");return qe(t)=="symbol"?t:t+""}function Yl(e,t,r){return(t=ql(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xl(Object(r),!0).forEach(function(n){Yl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Jl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),za=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xo={INIT:"@@redux/INIT"+za(),REPLACE:"@@redux/REPLACE"+za(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+za()}};function Vu(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ha(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ot(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ot(1));return r(Ha)(e,t)}if(typeof e!="function")throw new Error(Ot(2));var i=e,a=t,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ot(3));return a}function f(O){if(typeof O!="function")throw new Error(Ot(4));if(d)throw new Error(Ot(5));var _=!0;return u(),l.push(O),function(){if(_){if(d)throw new Error(Ot(6));_=!1,u();var N=l.indexOf(O);l.splice(N,1),s=null}}}function m(O){if(!Vu(O))throw new Error(Ot(7));if(typeof O.type>"u")throw new Error(Ot(8));if(d)throw new Error(Ot(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var _=s=l,I=0;I<_.length;I++){var N=_[I];N()}return O}function x(O){if(typeof O!="function")throw new Error(Ot(10));i=O,m({type:Xo.REPLACE})}function b(){var O,_=f;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ot(11));function w(){N.next&&N.next(h())}w();var S=_(w);return{unsubscribe:S}}},O[Jl]=function(){return this},O}return m({type:Xo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:x},n[Jl]=b,n}function ju(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Xo.INIT});if(typeof n>"u")throw new Error(Ot(12));if(typeof r(void 0,{type:Xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ot(13))})}function Ql(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,l;try{ju(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<a.length;b++){var O=a[b],_=r[O],I=u[O],N=_(I,h);if(typeof N>"u"){var w=h&&h.type;throw new Error(Ot(14))}x[O]=N,m=m||N!==I}return m=m||a.length!==Object.keys(u).length,m?x:u}}function xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function tc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ot(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=xr.apply(void 0,l)(i.dispatch),Fa(Fa({},i),{},{dispatch:a})}}}function ec(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var rc=ec();rc.withExtraArgument=ec;var Wa=rc;var sc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gu=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},vr=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ku=Object.defineProperty,Zu=Object.defineProperties,qu=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,nc=function(e,t,r){return t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ne=function(e,t){for(var r in t||(t={}))Yu.call(t,r)&&nc(e,r,t[r]);if(oc)for(var n=0,i=oc(t);n<i.length;n++){var r=i[n];Xu.call(t,r)&&nc(e,r,t[r])}return e},Va=function(e,t){return Zu(e,qu(t))},Ju=function(e,t,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(u){i(u)}},s=function(d){try{l(r.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Qu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xr:xr.apply(null,arguments)},jx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function tf(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var ef=function(e){sc(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,vr([void 0],r[0].concat(this)))):new(t.bind.apply(t,vr([void 0],r.concat(this))))},t}(Array),rf=function(e){sc(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,vr([void 0],r[0].concat(this)))):new(t.bind.apply(t,vr([void 0],r.concat(this))))},t}(Array);function Ka(e){return qt(e)?Yo(e,function(){}):e}function of(e){return typeof e=="boolean"}function nf(){return function(t){return af(t)}}function af(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new ef;if(r&&(of(r)?l.push(Wa):l.push(Wa.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var u}return l}var ja=!0;function lc(e){var t=nf(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,f=r.enhancers,m=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(tf(i))x=Ql(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(t),!ja&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ja&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=tc.apply(void 0,b),_=xr;d&&(_=Qu(Ne({trace:!ja},typeof d=="object"&&d)));var I=new rf(O),N=I;Array.isArray(m)?N=vr([O],m):typeof m=="function"&&(N=m(I));var w=_.apply(void 0,N);return Ha(x,h,w)}function Le(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ne(Ne({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function cc(e){var t={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function sf(e){return typeof e=="function"}function lf(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?cc(t):[t,r,n],a=i[0],s=i[1],l=i[2],d;if(sf(e))d=function(){return Ka(e())};else{var u=Ka(e);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var x=vr([a[m.type]],s.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,O){if(O)if(be(b)){var _=b,I=O(_,m);return I===void 0?b:I}else{if(qt(b))return Yo(b,function(N){return O(N,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},f)}return h.getInitialState=d,h}function cf(e,t){return e+"/"+t}function dc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ka(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=cf(t,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[m]=x,l[h]=b?Le(m,b):Le(m)});function d(){var h=typeof e.extraReducers=="function"?cc(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,O=h[2],_=O===void 0?void 0:O,I=Ne(Ne({},m),s);return lf(r,function(N){for(var w in I)N.addCase(w,I[w]);for(var S=0,A=b;S<A.length;S++){var M=A[S];N.addMatcher(M.matcher,M.reducer)}_&&N.addDefaultCase(_)})}var u;return{name:t,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=df[Math.random()*64|0];return t},uf=["name","message","stack","code"],Ga=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ic=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ff=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=uf;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},qx=function(){function e(t,r,n){var i=Le(t+"/fulfilled",function(h,f,m,x){return{payload:h,meta:Va(Ne({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Le(t+"/pending",function(h,f,m){return{payload:void 0,meta:Va(Ne({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Le(t+"/rejected",function(h,f,m,x,b){return{payload:x,error:(n&&n.serializeError||ff)(h||"Rejected"),meta:Va(Ne({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(h):pf(),O=new d,_,I=!1;function N(S){_=S,O.abort()}var w=function(){return Ju(this,null,function(){var S,A,M,z,G,V,D;return Gu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:x}),mf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,G=new Promise(function(C,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:_||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:m,extra:x}))),[4,Promise.race([G,Promise.resolve(r(h,{dispatch:f,getState:m,extra:x,requestId:b,signal:O.signal,abort:N,rejectWithValue:function(C,k){return new Ga(C,k)},fulfillWithValue:function(C,k){return new ic(C,k)}})).then(function(C){if(C instanceof Ga)throw C;return C instanceof ic?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return M=y.sent(),[3,5];case 4:return V=y.sent(),M=V instanceof Ga?s(null,b,h,V.payload,V.meta):s(V,b,h),[3,5];case 5:return D=n&&!n.dispatchConditionRejection&&s.match(M)&&M.meta.condition,D||f(M),[2,M]}})})}();return Object.assign(w,{abort:N,requestId:b,arg:h,unwrap:function(){return w.then(hf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function hf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var pc="listener",uc="completed",fc="cancelled",Yx="task-"+fc,Xx="task-"+uc,Jx=pc+"-"+fc,Qx=pc+"-"+uc;var Za="listenerMiddleware";var tv=Le(Za+"/add"),ev=Le(Za+"/removeAll"),rv=Le(Za+"/remove");var ac,ov=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ac||(ac=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yf=function(e){return function(t){setTimeout(t,e)}},nv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yf(10);jl();window.ftReduxStores||(window.ftReduxStores={});var xe=class e extends pe{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(mr(a))return a;if(i==null)return;let s=dc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=lc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new e(s,l,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new po;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function gf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))mr(t)&&t.clear()}var Jo=class{constructor(t,r,n){this.store=t,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);Ee(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function bf(e,t,r){return new Jo(e,t,r).watch()}var Ja={};Z(Ja,{scrollHelper:()=>xf});var Ya,Qo=new Map,Xa=class{lock(t,r){if(r){let n=Qo.get(r);if(n==null||n===t)return Qo.set(r,t),r}}release(t,r){r&&Qo.get(r)===t&&Qo.delete(r)}findFirstScrollableParent(t){var r;let n,i;for(let a of Si(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var n,i;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Yr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ya=window.FluidTopicsScrollHelper)!==null&&Ya!==void 0?Ya:new Xa;var xf=window.FluidTopicsScrollHelper;var ts={};Z(ts,{SearchPlaceConverter:()=>Er,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Wc,serializeRequest:()=>Of});var Sf=rp(mc(),1);var yc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(yc||(yc={}));var gc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(gc||(gc={}));var bc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE"})(bc||(bc={}));var xc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE"})(xc||(xc={}));var vc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vc||(vc={}));var Sc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Sc||(Sc={}));var Cc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Cc||(Cc={}));var Oc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Oc||(Oc={}));var Ec;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Ec||(Ec={}));var wc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(wc||(wc={}));var Ac;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ac||(Ac={}));var Rc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Rc||(Rc={}));var Tc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Tc||(Tc={}));var Ic;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ic||(Ic={}));var _c;(function(e){e.ASC="ASC",e.DESC="DESC"})(_c||(_c={}));var Nc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Nc||(Nc={}));var Qa;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Qa||(Qa={}));var Dc=e=>Object.keys(Qa).includes(e);var Lc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var rn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rn||(rn={}));var Pc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Pc||(Pc={}));var Cr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Cr||(Cr={}));var $c=e=>Object.keys(Cr).includes(e);var Or;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Or||(Or={}));var kc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(kc||(kc={}));var Mc;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Mc||(Mc={}));var et;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(et||(et={}));var Ye;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ye||(Ye={}));var Bc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Bc||(Bc={}));var Uc;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Uc||(Uc={}));var Fc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Fc||(Fc={}));var vf={[et.PERSONAL_BOOK_SHARE_USER]:[et.PERSONAL_BOOK_USER],[et.HTML_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.PDF_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.KHUB_ADMIN]:[et.CONTENT_PUBLISHER],[et.ADMIN]:[et.KHUB_ADMIN,et.USERS_ADMIN,et.PORTAL_ADMIN],[et.GENERATIVE_AI_EXPORT_USER]:[et.GENERATIVE_AI_USER]};function zc(e,t){return e===t||(vf[e]??[]).some(r=>zc(r,t))}function ve(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>zc(n,t))}function Cf(e){return`"${e}"`}function Hc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function Of(e,t){return new Er(e).serialize(t)}var Y;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(Y||(Y={}));var Ef=new Set(Object.values(Y));function Wc(e){return Ef.has(e)}var Er=class{constructor(t,r=20,n=!1,i="en-US"){this.baseUrl=t,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(t),i.toString()}toURLSearchParams(t,r=!1){var n,i,a,s,l,d,u,h,f,m,x;let b=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,t.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,t.query);let O=(a=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(O.length>0){let S=O.map(A=>{var M,z;let G=((z=(M=A.valueFilter)===null||M===void 0?void 0:M.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>Cf(Hc(V))).join("_");return`${A.key}~${G}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let _=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let S=_.map(A=>{var M;return`${A.key}~${(M=A.dateFilter)===null||M===void 0?void 0:M.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let I=(u=(d=t.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(I.length>0){let S=I.map(A=>{var M,z;return`${A.key}~${(M=A.rangeFilter)===null||M===void 0?void 0:M.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&b.append(Y.SCOPE,t.scope.toLowerCase()),t.sortId!=null&&b.append(Y.SORT,t.sortId),!((h=t.paging)===null||h===void 0)&&h.perPage&&((m=(f=t.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(t.paging.perPage));let N=(x=t.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in N)b.append(S,N[S]);let w=new Array;return b.forEach((S,A)=>{w.push(this.encodeQueryString(A)+"="+this.encodeQueryString(S))}),encodeURI(w.join("&")).replace(/#/g,"%23")}encodeQueryString(t){return encodeURIComponent(t).replace(/%20/g,"+")}parse(t){var r;let n=t.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(t){var r,n,i,a,s,l;try{t=decodeURI(t).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(t),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((r=d.get(Y.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b={};for(let O of d.keys())Wc(O)||(b[O]=d.get(O));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Dc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Yr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:b}}parseCompatFilters(t){var r,n,i,a,s,l;let d=[];return t.has(Y.FILTERS)&&(d=this.parseValueFilters((r=t.get(Y.FILTERS))!==null&&r!==void 0?r:"")),(n=t.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Hc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Cr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(r,n);return t}superEscapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replace(i,r);return t}parseLegacyPeriodFilter(t){if($c(t))return[{key:"ft:lastEdition",dateFilter:{type:Cr[t]}}];if(t.startsWith("CUSTOM_")){let[r,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var os={};Z(os,{toFtFormComponent:()=>rs});var es=Symbol("elementInternals");function rs(e){class t extends e{static get formAssociated(){return!0}get form(){return this[es].form}constructor(...n){super(n),this[es]=this.attachInternals()}setFormValue(n){this[es].setFormValue(n)}}return t}var ns={};Z(ns,{DateFormatter:()=>Xe});var Xe=class{static format(t,r,n,i){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(n,i)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var as={};Z(as,{ALL_KEYS_VALUE:()=>is,SameWindowStorageEvent:()=>wr});var is="__all__",wr=class extends CustomEvent{constructor(t,r,n){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:n}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==is}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new wr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new wr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new wr(is))}});var ls={};Z(ls,{FocusMainContentEvent:()=>ss});var ss=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Vc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function wf(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Af(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",wf);document.addEventListener("click",Af);var jc=L`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var
|
|
72
|
+
`;var Gc;(function(e){e.blur="blur",e.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",e.input="input"})(Gc||(Gc={}));var Kc;(function(e){e.default="default",e.warning="warning",e.error="error"})(Kc||(Kc={}));var yo=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),yo(n,t);return!0},on=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},Zc=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),If(t)}};function Rf(e){this._$AN!==void 0?(on(this),this._$AM=e,Zc(this)):this._$AM=e}function Tf(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let a=r;a<n.length;a++)yo(n[a],!1),on(n[a]);else n!=null&&(yo(n,!1),on(n));else yo(this,e)}var If=e=>{e.type==te.CHILD&&(e._$AP??=Tf,e._$AQ??=Rf)},nn=class extends Ut{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),Zc(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(yo(this,t),on(this))}setValue(t){if(Ys(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var qc;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(qc||(qc={}));var _f={sm:640,md:768,lg:1024,xl:1280},cs=class extends nn{constructor(t){super(t),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(t,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(t,r,n){let i=this.resolveThreshold(t),a=n??(()=>H);return this.size>i?r():a()}resolveThreshold(t){return typeof t=="number"?t:_f[t]}},a0=Kt(cs);var ds,ps,us,fs,go=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((us=(ps=(ds=window.safari)===null||ds===void 0?void 0:ds.pushNotification)===null||ps===void 0?void 0:ps.toString())!==null&&us!==void 0?us:"")==="[object SafariRemoteNotification]",Nf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(fs=window.ftGlobals)!==null&&fs!==void 0?fs:{lit:ti,litDecorators:oi,litRepeat:ni,litClassMap:ii,litStyleMap:ai,litUnsafeHTML:li,wcUtils:{...mi,...di,...gi,...ns,...bi,...Oi,...Ji,...hi,...fa,...ls,...Vc,...Ja,...Xi,...ba,...os,...ga,...Ll,...Ci,...Sa,...Qi,...Ca,...jc,...kl,...Oa,...qa,...as,...ha,...ya,...ts,isSafari:go,isTouchScreen:Nf,setVariable:E}};var K0={},Yc=L`
|
|
73
73
|
:host {
|
|
74
74
|
display: inline-block;
|
|
75
75
|
}
|
|
@@ -89,7 +89,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
89
89
|
all: unset;
|
|
90
90
|
position: relative;
|
|
91
91
|
}
|
|
92
|
-
`;var Je;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Je||(Je={}));var Se;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Se||(Se={}));var
|
|
92
|
+
`;var Je;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Je||(Je={}));var Se;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Se||(Se={}));var Lf=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ms=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},hs=Symbol("registerInterval");function Pf(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[hs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hs]):this.dispatchEvent(new ms)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=hs,Lf([tt()],r.prototype,"stateManager",void 0),r}var an=class extends Pf(ge){};var Jc=Symbol.for(""),kf=e=>{if(e?.r===Jc)return e?._$litStatic$},ys=e=>({_$litStatic$:e,r:Jc});var Xc=new Map,gs=e=>(t,...r)=>{let n=r.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=t[u];u<n&&(a=r[u],(i=kf(a))!==void 0);)d+=i+t[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(t[n]),h){let f=s.join("$$lit$$");(t=Xc.get(f))===void 0&&(s.raw=s,Xc.set(f,t=s)),r=l}return e(t,...r)},bs=gs($),eS=gs(qn),rS=gs(Yn);var Yt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Yt||(Yt={}));function Qc(e,t){let r=Jr[e];return L`
|
|
93
93
|
${t?Jt(t):L`.ft-typography--${Jt(e)}`} {
|
|
94
94
|
font-family: ${r.fontFamily};
|
|
95
95
|
font-size: ${r.fontSize};
|
|
@@ -99,7 +99,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
99
99
|
text-decoration: ${r.textDecoration};
|
|
100
100
|
text-transform: ${r.textCase};
|
|
101
101
|
}
|
|
102
|
-
`}var
|
|
102
|
+
`}var td=o.extend("--ft-typography-font-family","",F.titleFont),Ce=o.extend("--ft-typography-font-family","",F.contentFont),B={fontFamily:Ce,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")},Ar={fontFamily:o.extend("--ft-typography-title-font-family","",td),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",td),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Ce),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Ir={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Ce),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},_r={fontFamily:o.extend("--ft-typography-body1-font-family","",Ce),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Wt={fontFamily:o.extend("--ft-typography-body2-font-family","",Ce),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Nr={fontFamily:o.extend("--ft-typography-caption-font-family","",Ce),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Lr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Ce),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Pr={fontFamily:o.extend("--ft-typography-overline-font-family","",Ce),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},ie={fontFamily:o.extend("--ft-typography-button-font-family","",Ce),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},ed=L`
|
|
103
103
|
.ft-typography--title {
|
|
104
104
|
font-family: ${Ar.fontFamily};
|
|
105
105
|
font-size: ${Ar.fontSize};
|
|
@@ -108,7 +108,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
108
108
|
line-height: ${Ar.lineHeight};
|
|
109
109
|
text-transform: ${Ar.textTransform};
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,rd=L`
|
|
112
112
|
.ft-typography--title-dense {
|
|
113
113
|
font-family: ${Rr.fontFamily};
|
|
114
114
|
font-size: ${Rr.fontSize};
|
|
@@ -117,7 +117,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
117
117
|
line-height: ${Rr.lineHeight};
|
|
118
118
|
text-transform: ${Rr.textTransform};
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,od=L`
|
|
121
121
|
.ft-typography--subtitle1 {
|
|
122
122
|
font-family: ${Tr.fontFamily};
|
|
123
123
|
font-size: ${Tr.fontSize};
|
|
@@ -126,7 +126,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
126
126
|
line-height: ${Tr.lineHeight};
|
|
127
127
|
text-transform: ${Tr.textTransform};
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,nd=L`
|
|
130
130
|
.ft-typography--subtitle2 {
|
|
131
131
|
font-family: ${Ir.fontFamily};
|
|
132
132
|
font-size: ${Ir.fontSize};
|
|
@@ -136,7 +136,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
136
136
|
text-transform: ${Ir.textTransform};
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
`,
|
|
139
|
+
`,id=L`
|
|
140
140
|
.ft-typography--body1 {
|
|
141
141
|
font-family: ${_r.fontFamily};
|
|
142
142
|
font-size: ${_r.fontSize};
|
|
@@ -145,7 +145,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
145
145
|
line-height: ${_r.lineHeight};
|
|
146
146
|
text-transform: ${_r.textTransform};
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,ad=L`
|
|
149
149
|
.ft-typography--body2 {
|
|
150
150
|
font-family: ${Wt.fontFamily};
|
|
151
151
|
font-size: ${Wt.fontSize};
|
|
@@ -154,7 +154,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
154
154
|
line-height: ${Wt.lineHeight};
|
|
155
155
|
text-transform: ${Wt.textTransform};
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,sd=L`
|
|
158
158
|
.ft-typography--caption {
|
|
159
159
|
font-family: ${Nr.fontFamily};
|
|
160
160
|
font-size: ${Nr.fontSize};
|
|
@@ -163,7 +163,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
163
163
|
line-height: ${Nr.lineHeight};
|
|
164
164
|
text-transform: ${Nr.textTransform};
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,ld=L`
|
|
167
167
|
.ft-typography--breadcrumb {
|
|
168
168
|
font-family: ${Lr.fontFamily};
|
|
169
169
|
font-size: ${Lr.fontSize};
|
|
@@ -172,7 +172,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
172
172
|
line-height: ${Lr.lineHeight};
|
|
173
173
|
text-transform: ${Lr.textTransform};
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,cd=L`
|
|
176
176
|
.ft-typography--overline {
|
|
177
177
|
font-family: ${Pr.fontFamily};
|
|
178
178
|
font-size: ${Pr.fontSize};
|
|
@@ -181,7 +181,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
181
181
|
line-height: ${Pr.lineHeight};
|
|
182
182
|
text-transform: ${Pr.textTransform};
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,dd=L`
|
|
185
185
|
.ft-typography--button {
|
|
186
186
|
font-family: ${ie.fontFamily};
|
|
187
187
|
font-size: ${ie.fontSize};
|
|
@@ -190,19 +190,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
190
190
|
line-height: ${ie.lineHeight};
|
|
191
191
|
text-transform: ${ie.textTransform};
|
|
192
192
|
}
|
|
193
|
-
`,
|
|
193
|
+
`,pd=L`
|
|
194
194
|
.ft-typography {
|
|
195
195
|
vertical-align: inherit;
|
|
196
196
|
}
|
|
197
|
-
`,
|
|
198
|
-
<${
|
|
197
|
+
`,ud=[Object.keys(Jr).map(e=>Qc(e))];var fd=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},mt=class extends W{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?bs`
|
|
198
|
+
<${ys(this.element)}
|
|
199
199
|
part="text"
|
|
200
200
|
class="ft-typography ft-typography--${this.variant}">
|
|
201
201
|
<slot></slot>
|
|
202
|
-
</${
|
|
203
|
-
`:
|
|
202
|
+
</${ys(this.element)}>
|
|
203
|
+
`:bs`
|
|
204
204
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
205
|
-
`}};mt.styles=[
|
|
205
|
+
`}};mt.styles=[ed,rd,od,nd,id,ad,sd,ld,cd,dd,pd,...ud];fd([v()],mt.prototype,"element",void 0);fd([v()],mt.prototype,"variant",void 0);q("ft-typography")(mt);var kr={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"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(F.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},hd=L`
|
|
206
206
|
.ft-tooltip--container {
|
|
207
207
|
display: block;
|
|
208
208
|
}
|
|
@@ -249,7 +249,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
249
249
|
</div>
|
|
250
250
|
</div>
|
|
251
251
|
</div>
|
|
252
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text=t,await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",oo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};nt.elementDefinitions={"ft-typography":mt};nt.styles=
|
|
252
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text=t,await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",oo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};nt.elementDefinitions={"ft-typography":mt};nt.styles=hd;At([v()],nt.prototype,"text",void 0);At([v({type:Boolean})],nt.prototype,"manual",void 0);At([v({type:Boolean})],nt.prototype,"inline",void 0);At([v({type:Number})],nt.prototype,"delay",void 0);At([v()],nt.prototype,"position",void 0);At([ri()],nt.prototype,"slotNodes",void 0);At([st(".ft-tooltip--container")],nt.prototype,"container",void 0);At([st(".ft-tooltip")],nt.prototype,"tooltip",void 0);At([st(".ft-tooltip--content")],nt.prototype,"tooltipContent",void 0);At([tt()],nt.prototype,"visible",void 0);At([ir({passive:!0})],nt.prototype,"onTouch",null);At([ir({passive:!0})],nt.prototype,"onHover",null);At([ir({passive:!0})],nt.prototype,"onOut",null);At([ir({passive:!0})],nt.prototype,"onClick",null);q("ft-tooltip")(nt);var md=o.extend("--ft-ripple-color","",F.colorContent),R={color:md,backgroundColor:o.extend("--ft-ripple-background-color","",md),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},yd=o.extend("--ft-ripple-color","",F.colorPrimary),gd={color:yd,backgroundColor:o.extend("--ft-ripple-background-color","",yd)},bd=o.extend("--ft-ripple-color","",F.colorSecondary),xd={color:bd,backgroundColor:o.extend("--ft-ripple-background-color","",bd)},vd=L`
|
|
253
253
|
:host {
|
|
254
254
|
display: contents;
|
|
255
255
|
}
|
|
@@ -304,19 +304,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
307
|
-
background-color: ${
|
|
307
|
+
background-color: ${xd.backgroundColor};
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
311
|
-
background-color: ${
|
|
311
|
+
background-color: ${xd.color};
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
315
|
-
background-color: ${
|
|
315
|
+
background-color: ${gd.backgroundColor};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
319
|
-
background-color: ${
|
|
319
|
+
background-color: ${gd.color};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
.ft-ripple .ft-ripple--background {
|
|
@@ -372,7 +372,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
372
372
|
<div class="ft-ripple--background"></div>
|
|
373
373
|
<div class="ft-ripple--effect"></div>
|
|
374
374
|
</div>
|
|
375
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.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()}};X.elementDefinitions={};X.styles=vd;Rt([x({type:Boolean})],X.prototype,"primary",void 0);Rt([x({type:Boolean})],X.prototype,"secondary",void 0);Rt([x({type:Boolean})],X.prototype,"unbounded",void 0);Rt([x({type:Boolean})],X.prototype,"activated",void 0);Rt([x({type:Boolean})],X.prototype,"selected",void 0);Rt([x({type:Boolean})],X.prototype,"disabled",void 0);Rt([tt()],X.prototype,"hovered",void 0);Rt([tt()],X.prototype,"focused",void 0);Rt([tt()],X.prototype,"pressed",void 0);Rt([tt()],X.prototype,"rippling",void 0);Rt([tt()],X.prototype,"originX",void 0);Rt([tt()],X.prototype,"originY",void 0);Rt([st(".ft-ripple")],X.prototype,"ripple",void 0);Rt([st(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);q("ft-ripple")(X);var Mr;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK=""})(Mr||(Mr={}));var T;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(T||(T={}));var RC=new Map([...["abw"].map(e=>[e,T.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,T.AUDIO]),...["avi"].map(e=>[e,T.AVI]),...["chm","xhs"].map(e=>[e,T.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,T.CODE]),...["csv"].map(e=>[e,T.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,T.DITA]),...["epub"].map(e=>[e,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,T.EXCEL]),...["flac"].map(e=>[e,T.FLAC]),...["gif"].map(e=>[e,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,T.GZIP]),...["html","htm","xhtml"].map(e=>[e,T.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,T.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,T.JPEG]),...["json"].map(e=>[e,T.JSON]),...["m4a","m4p"].map(e=>[e,T.M4A]),...["mov","qt"].map(e=>[e,T.MOV]),...["mp3"].map(e=>[e,T.MP3]),...["mp4","m4v"].map(e=>[e,T.MP4]),...["ogg","oga"].map(e=>[e,T.OGG]),...["pdf","ps"].map(e=>[e,T.PDF]),...["png"].map(e=>[e,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,T.POWERPOINT]),...["rar"].map(e=>[e,T.RAR]),...["stp"].map(e=>[e,T.STP]),...["txt","rtf","md","mdown"].map(e=>[e,T.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,T.VIDEO]),...["wav"].map(e=>[e,T.WAV]),...["wma"].map(e=>[e,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,T.WORD]),...["xml","xsl","rdf"].map(e=>[e,T.XML]),...["yaml","yml","x-yaml"].map(e=>[e,T.YAML]),...["zip"].map(e=>[e,T.ZIP])]);var TC={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var pt={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")},xd=[L`
|
|
375
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.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()}};X.elementDefinitions={};X.styles=vd;Rt([v({type:Boolean})],X.prototype,"primary",void 0);Rt([v({type:Boolean})],X.prototype,"secondary",void 0);Rt([v({type:Boolean})],X.prototype,"unbounded",void 0);Rt([v({type:Boolean})],X.prototype,"activated",void 0);Rt([v({type:Boolean})],X.prototype,"selected",void 0);Rt([v({type:Boolean})],X.prototype,"disabled",void 0);Rt([tt()],X.prototype,"hovered",void 0);Rt([tt()],X.prototype,"focused",void 0);Rt([tt()],X.prototype,"pressed",void 0);Rt([tt()],X.prototype,"rippling",void 0);Rt([tt()],X.prototype,"originX",void 0);Rt([tt()],X.prototype,"originY",void 0);Rt([st(".ft-ripple")],X.prototype,"ripple",void 0);Rt([st(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);q("ft-ripple")(X);var Mr;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK=""})(Mr||(Mr={}));var T;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(T||(T={}));var IC=new Map([...["abw"].map(e=>[e,T.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,T.AUDIO]),...["avi"].map(e=>[e,T.AVI]),...["chm","xhs"].map(e=>[e,T.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,T.CODE]),...["csv"].map(e=>[e,T.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,T.DITA]),...["epub"].map(e=>[e,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,T.EXCEL]),...["flac"].map(e=>[e,T.FLAC]),...["gif"].map(e=>[e,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,T.GZIP]),...["html","htm","xhtml"].map(e=>[e,T.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,T.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,T.JPEG]),...["json"].map(e=>[e,T.JSON]),...["m4a","m4p"].map(e=>[e,T.M4A]),...["mov","qt"].map(e=>[e,T.MOV]),...["mp3"].map(e=>[e,T.MP3]),...["mp4","m4v"].map(e=>[e,T.MP4]),...["ogg","oga"].map(e=>[e,T.OGG]),...["pdf","ps"].map(e=>[e,T.PDF]),...["png"].map(e=>[e,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,T.POWERPOINT]),...["rar"].map(e=>[e,T.RAR]),...["stp"].map(e=>[e,T.STP]),...["txt","rtf","md","mdown"].map(e=>[e,T.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,T.VIDEO]),...["wav"].map(e=>[e,T.WAV]),...["wma"].map(e=>[e,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,T.WORD]),...["xml","xsl","rdf"].map(e=>[e,T.XML]),...["yaml","yml","x-yaml"].map(e=>[e,T.YAML]),...["zip"].map(e=>[e,T.ZIP])]);var _C={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var pt={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")},Sd=[L`
|
|
376
376
|
:host, i.ft-icon {
|
|
377
377
|
display: inline-flex;
|
|
378
378
|
align-items: center;
|
|
@@ -422,10 +422,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
422
422
|
}
|
|
423
423
|
`,ye];var Tt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Tt||(Tt={}));var bo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},yt=class extends W{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=H}render(){let t=this.variant&&Object.values(Tt).includes(this.variant)?this.variant:Tt.fluid_topics,r=t!==Tt.material||!!this.value;return $`
|
|
424
424
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
425
|
-
${
|
|
425
|
+
${si(this.resolvedIcon)}
|
|
426
426
|
<slot ?hidden=${r}></slot>
|
|
427
427
|
</i>
|
|
428
|
-
`}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case Tt.file_format:this.resolvedIcon=(t=T[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Tt.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(r=Mr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};yt.elementDefinitions={};yt.styles=
|
|
428
|
+
`}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case Tt.file_format:this.resolvedIcon=(t=T[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Tt.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(r=Mr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};yt.elementDefinitions={};yt.styles=Sd;bo([v()],yt.prototype,"variant",void 0);bo([v()],yt.prototype,"value",void 0);bo([v({reflect:!0,attribute:"aria-hidden"})],yt.prototype,"ariaHidden",void 0);bo([tt()],yt.prototype,"resolvedIcon",void 0);bo([st("slot")],yt.prototype,"slottedContent",void 0);q("ft-icon")(yt);var it={color:o.extend("--ft-loader-color","",F.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Cd=L`
|
|
429
429
|
:host {
|
|
430
430
|
line-height: 0;
|
|
431
431
|
}
|
|
@@ -494,7 +494,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
494
494
|
transform: translate(calc(0.35 * ${it.size}), 0);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
`;var
|
|
497
|
+
`;var Od=o.extend("--ft-button-color","",F.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",F.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",F.borderRadiusL),color:Od,fontSize:o.extend("--ft-button-font-size","",ie.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Od),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(F.colorOpacityDisabled,"Design system")},Ed=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",F.colorOnPrimary)),xs={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",F.colorPrimary)),color:Ed,rippleColor:o.extend("--ft-button-primary-ripple-color","",Ed)},ae={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",F.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")},wd=[L`
|
|
498
498
|
:host {
|
|
499
499
|
display: inline-block;
|
|
500
500
|
max-width: 100%;
|
|
@@ -580,9 +580,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.ft-button.ft-button--primary {
|
|
583
|
-
background-color: ${
|
|
584
|
-
--button-internal-color: ${
|
|
585
|
-
${E(R.color,
|
|
583
|
+
background-color: ${xs.backgroundColor};
|
|
584
|
+
--button-internal-color: ${xs.color};
|
|
585
|
+
${E(R.color,xs.rippleColor)};
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
.ft-button:focus {
|
|
@@ -638,7 +638,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
638
638
|
<div></div>
|
|
639
639
|
<div></div>
|
|
640
640
|
</div>
|
|
641
|
-
`}};Qe.styles=
|
|
641
|
+
`}};Qe.styles=Cd;q("ft-loader")(Qe);var St=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},at=class extends rs(W){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i=$`
|
|
642
642
|
<ft-ripple part="ripple"
|
|
643
643
|
?disabled=${this.isDisabled()}
|
|
644
644
|
?activated=${this.activated}
|
|
@@ -678,7 +678,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
678
678
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
679
679
|
`:$`
|
|
680
680
|
<slot part="icon" name="icon"></slot>
|
|
681
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return lr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};at.elementDefinitions={"ft-ripple":X,"ft-tooltip":nt,"ft-typography":mt,"ft-icon":yt,"ft-loader":Qe};St([
|
|
681
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return lr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};at.elementDefinitions={"ft-ripple":X,"ft-tooltip":nt,"ft-typography":mt,"ft-icon":yt,"ft-loader":Qe};St([v()],at.prototype,"href",void 0);St([v()],at.prototype,"target",void 0);St([v()],at.prototype,"type",void 0);St([v({type:Boolean})],at.prototype,"disabled",void 0);St([v()],at.prototype,"label",void 0);St([v()],at.prototype,"icon",void 0);St([v()],at.prototype,"iconVariant",void 0);St([v({type:Boolean})],at.prototype,"trailingIcon",void 0);St([v({type:Boolean})],at.prototype,"loading",void 0);St([v({attribute:"aria-label"})],at.prototype,"ariaLabel",void 0);St([v()],at.prototype,"tooltipPosition",void 0);St([v({type:Boolean})],at.prototype,"hideTooltip",void 0);St([v({type:Boolean})],at.prototype,"forceTooltip",void 0);St([v({type:Boolean})],at.prototype,"activated",void 0);St([st(".ft-button")],at.prototype,"button",void 0);St([st(".ft-button--label slot")],at.prototype,"slottedContent",void 0);St([st("[part=tooltip]")],at.prototype,"tooltip",void 0);var sn=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Dt=class extends at{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return"button"}};Dt.styles=[lo,wd];sn([v({type:Boolean})],Dt.prototype,"primary",void 0);sn([v({type:Boolean})],Dt.prototype,"outlined",void 0);sn([v({type:Boolean})],Dt.prototype,"dense",void 0);sn([v({type:Boolean})],Dt.prototype,"round",void 0);var vs={...g,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},Ad=[L`
|
|
682
682
|
:host {
|
|
683
683
|
display: inline-block;
|
|
684
684
|
max-width: 100%;
|
|
@@ -1148,7 +1148,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1148
1148
|
.ftds--size-small.ft-button--icon-only {
|
|
1149
1149
|
width: ${g.smallIconOnlyWidth};
|
|
1150
1150
|
}
|
|
1151
|
-
`,ye];var ln=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},$t=class extends Go(at){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ue.brand,this.iconVariant=Tt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case
|
|
1151
|
+
`,ye];var ln=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},$t=class extends Go(at){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ue.brand,this.iconVariant=Tt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case xt.large:return Yt.body2medium;case xt.medium:return Yt.caption1medium;case xt.small:return Yt.caption2medium}}};$t.styles=[lo,Ad];ln([v({type:Boolean})],$t.prototype,"primary",void 0);ln([v({type:Boolean})],$t.prototype,"secondary",void 0);ln([v({type:Boolean})],$t.prototype,"tertiary",void 0);ln([v({type:Boolean})],$t.prototype,"round",void 0);q("ft-button")(Dt);q("ftds-button")($t);var Rd=o.extend("--ft-chip-color","",F.colorOnSurface),It={backgroundColor:o.extend("--ft-chip-background-color","",F.colorSurface),color:Rd,fontSize:o.extend("--ft-chip-font-size","",Wt.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",Wt.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","",Rd),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","",F.colorOutline),opacityDisabled:o.external(F.colorOpacityDisabled,"Design system")},Td=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",F.colorOnPrimary)),Ss={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",F.colorPrimary)),color:Td,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Td)},Id={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},_d=[ye,L`
|
|
1152
1152
|
:host {
|
|
1153
1153
|
display: inline-block;
|
|
1154
1154
|
max-width: 100%;
|
|
@@ -1188,8 +1188,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1188
1188
|
|
|
1189
1189
|
.ft-chip--dense {
|
|
1190
1190
|
--chip-internal-icon-padding: 3px;
|
|
1191
|
-
--chip-internal-vertical-padding: ${
|
|
1192
|
-
--chip-internal-horizontal-padding: ${
|
|
1191
|
+
--chip-internal-vertical-padding: ${Id.verticalPadding};
|
|
1192
|
+
--chip-internal-horizontal-padding: ${Id.horizontalPadding};
|
|
1193
1193
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
@@ -1207,9 +1207,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1207
1207
|
.ft-chip--highlighted {
|
|
1208
1208
|
border: none;
|
|
1209
1209
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1210
|
-
background-color: ${
|
|
1211
|
-
${E(R.color,
|
|
1212
|
-
color: ${
|
|
1210
|
+
background-color: ${Ss.backgroundColor};
|
|
1211
|
+
${E(R.color,Ss.rippleColor)};
|
|
1212
|
+
color: ${Ss.color};
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
1215
|
.ft-chip--clickable {
|
|
@@ -1315,7 +1315,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1315
1315
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1316
1316
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
1317
1317
|
</div>
|
|
1318
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new cn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new cn))}getLabel(){return this.label||this.textContent}get textContent(){return lr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ct.elementDefinitions={"ft-ripple":X,"ft-typography":mt,"ft-icon":yt,"ft-button":Dt};ct.styles=
|
|
1318
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new cn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new cn))}getLabel(){return this.label||this.textContent}get textContent(){return lr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ct.elementDefinitions={"ft-ripple":X,"ft-typography":mt,"ft-icon":yt,"ft-button":Dt};ct.styles=_d;_t([v({type:Boolean})],ct.prototype,"highlighted",void 0);_t([v({type:Boolean})],ct.prototype,"removable",void 0);_t([v({type:Boolean})],ct.prototype,"disabled",void 0);_t([v({type:Boolean})],ct.prototype,"clickable",void 0);_t([v({type:Boolean})],ct.prototype,"iconClickable",void 0);_t([v({type:Boolean})],ct.prototype,"dense",void 0);_t([v({type:Boolean})],ct.prototype,"multiLine",void 0);_t([v()],ct.prototype,"label",void 0);_t([v()],ct.prototype,"iconLabel",void 0);_t([v({type:Boolean})],ct.prototype,"hideIconTooltip",void 0);_t([v()],ct.prototype,"icon",void 0);_t([v()],ct.prototype,"iconVariant",void 0);_t([v({type:Boolean})],ct.prototype,"trailingIcon",void 0);_t([st("ft-typography slot")],ct.prototype,"slottedContent",void 0);var Nd=[L`
|
|
1319
1319
|
:host {
|
|
1320
1320
|
display: inline-block;
|
|
1321
1321
|
max-width: 100%;
|
|
@@ -1482,7 +1482,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1482
1482
|
.ftds--family-error .ftds-chip--icon-container {
|
|
1483
1483
|
color: ${U.errorIconColor};
|
|
1484
1484
|
}
|
|
1485
|
-
`];var Dr=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},
|
|
1485
|
+
`];var Dr=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Cs=class extends CustomEvent{constructor(){super("remove")}},Vt=class extends ao{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let t={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return $`
|
|
1486
1486
|
<div class="${Ft(t)}"
|
|
1487
1487
|
aria-label="${this.getLabel()}"
|
|
1488
1488
|
part="chip">
|
|
@@ -1508,7 +1508,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1508
1508
|
></ftds-button>
|
|
1509
1509
|
`:this.withAction?$`
|
|
1510
1510
|
<slot name="action"></slot>
|
|
1511
|
-
`:H}resolveButtonSize(){switch(this.size){case
|
|
1511
|
+
`:H}resolveButtonSize(){switch(this.size){case xt.large:return xt.medium;case xt.medium:case xt.small:return xt.small}}getLabel(){return this.label||this.textContent}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Cs)}typographyVariant(){switch(this.size){case xt.large:return Yt.body2medium;case xt.medium:case xt.small:return Yt.caption1medium}}};Vt.elementDefinitions={"ft-typography":mt,"ft-icon":yt,"ftds-button":$t};Vt.styles=Nd;Dr([v({type:Boolean})],Vt.prototype,"withAction",void 0);Dr([v({type:Boolean})],Vt.prototype,"removable",void 0);Dr([v()],Vt.prototype,"removeButtonLabel",void 0);Dr([v()],Vt.prototype,"label",void 0);Dr([v()],Vt.prototype,"icon",void 0);Dr([st("ft-typography slot")],Vt.prototype,"slottedContent",void 0);q("ft-chip")(ct);q("ftds-chip")(Vt);var ke={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",F.colorOnSurfaceHigh),colorSurface:o.external(F.colorSurface,"Design system"),menuElevation:o.external(F.elevation02,"Design system"),borderRadiusS:o.external(F.borderRadiusS,"Design system")},dn=L`
|
|
1512
1512
|
.ft-floating-menu {
|
|
1513
1513
|
color: ${ke.textColor};
|
|
1514
1514
|
display: contents;
|
|
@@ -1539,7 +1539,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1539
1539
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
1540
1540
|
display: block;
|
|
1541
1541
|
}
|
|
1542
|
-
`;var
|
|
1542
|
+
`;var Mf={iconColor:o.extend("--ft-floating-menu-icon-color","",F.colorOnSurfaceMedium)},Ld=L`
|
|
1543
1543
|
.ft-floating-menu-item {
|
|
1544
1544
|
cursor: pointer;
|
|
1545
1545
|
display: flex;
|
|
@@ -1554,7 +1554,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
.ft-floating-menu-item ft-icon {
|
|
1557
|
-
color: ${
|
|
1557
|
+
color: ${Mf.iconColor};
|
|
1558
1558
|
margin-left: 0;
|
|
1559
1559
|
flex-shrink: 0;
|
|
1560
1560
|
flex-grow: 0;
|
|
@@ -1582,7 +1582,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1582
1582
|
<slot></slot>
|
|
1583
1583
|
</ft-typography>
|
|
1584
1584
|
</div>
|
|
1585
|
-
`}onClick(t){this.dispatchEvent(new pn(this.value))}onKeyDown(t){(t.key=="Enter"||t.key==" ")&&(t.preventDefault(),this.dispatchEvent(new pn(this.value)))}};Nt.elementDefinitions={"ft-icon":yt,"ft-ripple":X,"ft-typography":mt};Nt.styles=
|
|
1585
|
+
`}onClick(t){this.dispatchEvent(new pn(this.value))}onKeyDown(t){(t.key=="Enter"||t.key==" ")&&(t.preventDefault(),this.dispatchEvent(new pn(this.value)))}};Nt.elementDefinitions={"ft-icon":yt,"ft-ripple":X,"ft-typography":mt};Nt.styles=Ld;un([v()],Nt.prototype,"iconVariant",void 0);un([v()],Nt.prototype,"icon",void 0);un([v()],Nt.prototype,"value",void 0);un([v({type:Boolean})],Nt.prototype,"notFocusable",void 0);var ut=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},fn=class extends CustomEvent{constructor(t){super("change",{detail:{open:t}})}};var hn=class extends CustomEvent{constructor(t){super("select",{detail:t})}},J=class extends W{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Tt.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}updated(t){super.updated(t),t.has("menuOpen")&&this.dispatchEvent(new fn(this.menuOpen))}render(){let t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return $`
|
|
1586
1586
|
<div part="container" class="${Ft(t)}">
|
|
1587
1587
|
<slot name="toggle"
|
|
1588
1588
|
part="toggle"
|
|
@@ -1609,7 +1609,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1609
1609
|
<div id="ft-floating-menu-options"
|
|
1610
1610
|
class="ft-floating-menu--options"
|
|
1611
1611
|
part="options"
|
|
1612
|
-
@ft-floating-menu-item-select
|
|
1612
|
+
@ft-floating-menu-item-select=${this.onItemSelect}>
|
|
1613
1613
|
<slot id="ft-floating-menu-content"
|
|
1614
1614
|
@click=${this.onContentClick}
|
|
1615
1615
|
@close-ft-floating-menu=${this.onCloseEvent}
|
|
@@ -1617,12 +1617,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1617
1617
|
</div>
|
|
1618
1618
|
</div>
|
|
1619
1619
|
</div>
|
|
1620
|
-
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new
|
|
1620
|
+
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new hn(t.detail)),this.closeMenu()}onContentClick(t){vi(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:n}=await oo(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${n}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}};J.elementDefinitions={"ft-floating-menu-item":Nt};ut([tt()],J.prototype,"menuOpen",void 0);ut([tt()],J.prototype,"forceMenuOpen",void 0);ut([st(".ft-floating-menu")],J.prototype,"container",void 0);ut([st(".ft-floating-menu--wrapper")],J.prototype,"menuWrapper",void 0);ut([st("#actions-button")],J.prototype,"actionButton",void 0);ut([ei({slot:"toggle"})],J.prototype,"customToggle",void 0);ut([v({type:Boolean})],J.prototype,"primary",void 0);ut([v({type:Boolean})],J.prototype,"secondary",void 0);ut([v({type:Boolean})],J.prototype,"tertiary",void 0);ut([v({type:Boolean})],J.prototype,"neutral",void 0);ut([v({type:Boolean})],J.prototype,"small",void 0);ut([v()],J.prototype,"label",void 0);ut([v()],J.prototype,"tooltipPosition",void 0);ut([v()],J.prototype,"iconVariant",void 0);ut([v()],J.prototype,"icon",void 0);ut([v()],J.prototype,"text",void 0);ut([v()],J.prototype,"horizontalAlignment",void 0);ut([v()],J.prototype,"verticalAlignment",void 0);ut([v({type:Boolean})],J.prototype,"disabled",void 0);ut([zt([])],J.prototype,"closeMenuMatchers",void 0);var Me=class extends J{};Me.elementDefinitions={"ft-or-ftds-button":Dt};Me.styles=dn;var Pd=L`
|
|
1621
1621
|
.ft-floating-menu--wrapper {
|
|
1622
1622
|
position: fixed;
|
|
1623
1623
|
z-index: 10;
|
|
1624
1624
|
}
|
|
1625
|
-
`;var $r=class extends J{};$r.elementDefinitions={"ft-or-ftds-button":$t};$r.styles=[dn,
|
|
1625
|
+
`;var $r=class extends J{};$r.elementDefinitions={"ft-or-ftds-button":$t};$r.styles=[dn,Pd];var Df={color:o.extend("--ft-floating-menu-label-color","",F.colorOnSurfaceMedium)},kd=L`
|
|
1626
1626
|
.ft-floating-menu-label {
|
|
1627
1627
|
padding: 4px 8px;
|
|
1628
1628
|
}
|
|
@@ -1633,7 +1633,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1633
1633
|
width: max-content;
|
|
1634
1634
|
text-overflow: ellipsis;
|
|
1635
1635
|
overflow: hidden;
|
|
1636
|
-
color: ${
|
|
1636
|
+
color: ${Df.color}
|
|
1637
1637
|
}
|
|
1638
1638
|
`;var De=class extends W{render(){return $`
|
|
1639
1639
|
<div class="ft-floating-menu-label">
|
|
@@ -1641,23 +1641,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1641
1641
|
<slot></slot>
|
|
1642
1642
|
</ft-typography>
|
|
1643
1643
|
</div>
|
|
1644
|
-
`}};De.elementDefinitions={"ft-typography":mt};De.styles=
|
|
1645
|
-
`;var Os="ft-app-info",se=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};se.eventName="authentication-change";var Df={session:(e,t)=>{Pt(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>P.dispatchEvent(new se(t.payload)),0))}},P=ve.get({name:Os,reducers:Df,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var tr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=P.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=P.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var hn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:tr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):tr.await()}};var Bt=class extends hn{constructor(t=!0,r){var n;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 i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new ee,this.cache=t?i.commonCache:new ee}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var mn=class extends Bt{async listMyBookmarks(){let t=P.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Es=class{addCommand(t,r=!1){P.commands.add(t,r)}consumeCommand(t){return P.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Es;var Md,Br=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},$f=Symbol("clearAfterUnitTest"),yn=class extends $o(Bt){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Md]=()=>{this.defaultMessages={},this.cache=new ee,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=P.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};Pt(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new co((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof de)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Br({loadedContexts:t})),this.dispatchEvent(new Br({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Br({loadedContexts:[t]})),this.dispatchEvent(new Br({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>Bo(0).then(()=>n()).catch(()=>null)))}};Md=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ur=window.FluidTopicsI18nService,gn=window.FluidTopicsCustomI18nService;var ws=class{highlightHtml(t,r,n){va(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ws;var bn=class extends Bt{async listMySearches(){let{session:t}=P.getState();return xe(t,et.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var As=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return Xe.format(t,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new As;var vo=class{static get(t,r){var n,i;let a=P.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Er(a.baseUrl,t??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Rs=class{urlToSearchRequest(t){return vo.get().parse(t)}searchRequestToUrl(t){return vo.get().serialize(t)}};window.FluidTopicsUrlService=new Rs;var er=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};er.eventName="change";var Ts=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Dd=new Ts;var vn=class e extends pe{static build(){return new e(window.history,Dd,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Pt(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new er(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(er.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(er.eventName,t)}currentItem(){return Xr(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Xr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return Xr(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,a=t+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=vn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var $d=P;function Bd(e,t){var r;return $d.getState().authenticationRequired&&!(!((r=$d.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(t):e()}var gt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},rt=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>tr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ee,this.cleanSessionDebouncer=new ft,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return $`
|
|
1644
|
+
`}};De.elementDefinitions={"ft-typography":mt};De.styles=kd;q("ft-floating-menu")(Me);q("ftds-floating-menu")($r);q("ft-floating-menu-item")(Nt);q("ft-floating-menu-label")(De);function $f(e){var t,r,n,i,a;return((i=(r=(t=e.map)===null||t===void 0?void 0:t.openMode)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.openMode)===rn.EXTERNAL}function Os(e){var t,r,n,i,a;if($f(e))return(i=(r=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.originUrl;switch(e.type){case Or.MAP:return e.map.readerUrl;case Or.DOCUMENT:return e.document.viewerUrl;case Or.TOPIC:return e.topic.readerUrl}return""}var Md=L`
|
|
1645
|
+
`;var Es="ft-app-info",se=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};se.eventName="authentication-change";var Bf={session:(e,t)=>{Pt(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>P.dispatchEvent(new se(t.payload)),0))}},P=xe.get({name:Es,reducers:Bf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var tr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=P.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=P.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var mn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:tr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):tr.await()}};var Bt=class extends mn{constructor(t=!0,r){var n;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 i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new ee,this.cache=t?i.commonCache:new ee}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var yn=class extends Bt{async listMyBookmarks(){let t=P.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ws=class{addCommand(t,r=!1){P.commands.add(t,r)}consumeCommand(t){return P.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ws;var Dd,Br=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Uf=Symbol("clearAfterUnitTest"),gn=class extends $o(Bt){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Dd]=()=>{this.defaultMessages={},this.cache=new ee,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=P.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};Pt(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new co((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof de)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Br({loadedContexts:t})),this.dispatchEvent(new Br({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Br({loadedContexts:[t]})),this.dispatchEvent(new Br({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>Bo(0).then(()=>n()).catch(()=>null)))}};Dd=Uf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends gn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends gn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ur=window.FluidTopicsI18nService,bn=window.FluidTopicsCustomI18nService;var As=class{highlightHtml(t,r,n){va(t,r,n)}};window.FluidTopicsHighlightHtmlService=new As;var xn=class extends Bt{async listMySearches(){let{session:t}=P.getState();return ve(t,et.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Rs=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return Xe.format(t,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Rs;var xo=class{static get(t,r){var n,i;let a=P.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Er(a.baseUrl,t??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Ts=class{urlToSearchRequest(t){return xo.get().parse(t)}searchRequestToUrl(t){return xo.get().serialize(t)}};window.FluidTopicsUrlService=new Ts;var er=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};er.eventName="change";var Is=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},$d=new Is;var vn=class e extends pe{static build(){return new e(window.history,$d,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Pt(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new er(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(er.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(er.eventName,t)}currentItem(){return Xr(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Xr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return Xr(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,a=t+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=vn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Bd=P;function Ud(e,t){var r;return Bd.getState().authenticationRequired&&!(!((r=Bd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(t):e()}var gt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},rt=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>tr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ee,this.cleanSessionDebouncer=new ft,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return $`
|
|
1646
1646
|
<slot></slot>
|
|
1647
|
-
`}connectedCallback(){super.connectedCallback(),P.addEventListener(se.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(se.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var r,n,i,a,s,l,d;super.update(t),t.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&P.actions.noCustom(this.noCustom),t.has("editorMode")&&P.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&P.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Ur.addContext(p)),t.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&P.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Bd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};rt.elementDefinitions={};rt.styles=kd;gt([x()],rt.prototype,"baseUrl",void 0);gt([x()],rt.prototype,"apiIntegrationIdentifier",void 0);gt([x()],rt.prototype,"apiIntegrationAppVersion",void 0);gt([x()],rt.prototype,"uiLocale",void 0);gt([zt(null)],rt.prototype,"availableUiLocales",void 0);gt([zt(null)],rt.prototype,"metadataConfiguration",void 0);gt([x({type:Boolean})],rt.prototype,"editorMode",void 0);gt([x({type:Boolean})],rt.prototype,"noCustom",void 0);gt([x({type:Boolean})],rt.prototype,"openExternalDocumentInNewTab",void 0);gt([x({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],rt.prototype,"noCustomComponent",void 0);gt([x({type:Boolean})],rt.prototype,"withManualResources",void 0);gt([x({type:Boolean})],rt.prototype,"navigatorOnline",void 0);gt([x({type:Boolean})],rt.prototype,"forcedOffline",void 0);gt([x({type:Object})],rt.prototype,"apiProvider",void 0);gt([x({type:Boolean})],rt.prototype,"authenticationRequired",void 0);gt([zt([])],rt.prototype,"messageContexts",void 0);gt([zt(void 0)],rt.prototype,"session",void 0);gt([tt()],rt.prototype,"localesConfiguration",void 0);gt([tt()],rt.prototype,"availableContentLocales",void 0);var xn=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Ud(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Xe.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return xn([x({type:Boolean})],t.prototype,"useLongDateFormat",void 0),xn([x({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),xn([ht({store:P.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),xn([ht({store:P.name})],t.prototype,"uiLocale",void 0),t}var Sn=class extends Bt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=P.getState().session;return!!t?.sessionAuthenticated}};var Bf="ft-user-assets",Uf={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ye).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}}},jt=ve.get({name:Bf,reducers:Uf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ye).map(e=>[e,void 0])),bookmarkByMap:{}}}}),Is=class{constructor(t=new Sn){this.assetCountsService=t,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mn,this.savedSearchesService=new bn,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=P.getState();Pt((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){jt.actions.clearAssetCount(),jt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();jt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&jt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&jt.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(jt.getState().assetCounts.bookmarkByMap).length!==0;t===Ye.BOOKMARKS&&r&&jt.actions.clearBookmarkCountByMap(),jt.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;jt.actions.bookmarks(r)}}},_s=new Is;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=_s);q("ft-app-context")(rt);function Fd(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Ff=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},zd=Symbol("i18nAttributes"),Hd=Symbol("i18nListAttributes"),So=Symbol("i18nProperties"),Cn=Symbol("i18nContexts"),xo=Symbol("i18nUnsubs");function En(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?gn:Ur}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}customI18n(a,s){if(Fd(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[zd])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[Hd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(v=>p(h,f,v))})}updateI18nProperties(a){var s;(s=this[So])===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[Cn].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[Cn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Cn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[xo].forEach(a=>a()),this[xo].clear()}}return t=Cn,r=xo,Ff([x({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Wd=class extends En(W){},On=class extends En(ge){};var Vd=L`
|
|
1648
|
-
`;var Co=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Xt=class extends
|
|
1647
|
+
`}connectedCallback(){super.connectedCallback(),P.addEventListener(se.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(se.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var r,n,i,a,s,l,d;super.update(t),t.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&P.actions.noCustom(this.noCustom),t.has("editorMode")&&P.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&P.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Ur.addContext(u)),t.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&P.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Ud(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};rt.elementDefinitions={};rt.styles=Md;gt([v()],rt.prototype,"baseUrl",void 0);gt([v()],rt.prototype,"apiIntegrationIdentifier",void 0);gt([v()],rt.prototype,"apiIntegrationAppVersion",void 0);gt([v()],rt.prototype,"uiLocale",void 0);gt([zt(null)],rt.prototype,"availableUiLocales",void 0);gt([zt(null)],rt.prototype,"metadataConfiguration",void 0);gt([v({type:Boolean})],rt.prototype,"editorMode",void 0);gt([v({type:Boolean})],rt.prototype,"noCustom",void 0);gt([v({type:Boolean})],rt.prototype,"openExternalDocumentInNewTab",void 0);gt([v({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],rt.prototype,"noCustomComponent",void 0);gt([v({type:Boolean})],rt.prototype,"withManualResources",void 0);gt([v({type:Boolean})],rt.prototype,"navigatorOnline",void 0);gt([v({type:Boolean})],rt.prototype,"forcedOffline",void 0);gt([v({type:Object})],rt.prototype,"apiProvider",void 0);gt([v({type:Boolean})],rt.prototype,"authenticationRequired",void 0);gt([zt([])],rt.prototype,"messageContexts",void 0);gt([zt(void 0)],rt.prototype,"session",void 0);gt([tt()],rt.prototype,"localesConfiguration",void 0);gt([tt()],rt.prototype,"availableContentLocales",void 0);var Sn=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Fd(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Xe.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([v({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Sn([v({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Sn([ht({store:P.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Sn([ht({store:P.name})],t.prototype,"uiLocale",void 0),t}var Cn=class extends Bt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=P.getState().session;return!!t?.sessionAuthenticated}};var Ff="ft-user-assets",zf={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ye).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}}},jt=xe.get({name:Ff,reducers:zf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ye).map(e=>[e,void 0])),bookmarkByMap:{}}}}),_s=class{constructor(t=new Cn){this.assetCountsService=t,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yn,this.savedSearchesService=new xn,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=P.getState();Pt((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){jt.actions.clearAssetCount(),jt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();jt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&jt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&jt.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(jt.getState().assetCounts.bookmarkByMap).length!==0;t===Ye.BOOKMARKS&&r&&jt.actions.clearBookmarkCountByMap(),jt.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;jt.actions.bookmarks(r)}}},Ns=new _s;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ns);q("ft-app-context")(rt);function zd(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Hf=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Hd=Symbol("i18nAttributes"),Wd=Symbol("i18nListAttributes"),So=Symbol("i18nProperties"),On=Symbol("i18nContexts"),vo=Symbol("i18nUnsubs");function wn(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?bn:Ur}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}customI18n(a,s){if(zd(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=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[Hd])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[Wd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[So])===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[On].set(d,{isCustomContext:l}),this[vo].has(d)||this[vo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[On].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[On].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vo].forEach(a=>a()),this[vo].clear()}}return t=On,r=vo,Hf([v({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Vd=class extends wn(W){},En=class extends wn(ge){};var jd=L`
|
|
1648
|
+
`;var Co=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Xt=class extends En{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:$`
|
|
1649
1649
|
<span class="ft-i18n">
|
|
1650
1650
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1651
1651
|
</span>
|
|
1652
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Xt.elementDefinitions={};Xt.styles=Vd;Co([ht()],Xt.prototype,"editorMode",void 0);Co([x()],Xt.prototype,"context",void 0);Co([x()],Xt.prototype,"key",void 0);Co([zt([])],Xt.prototype,"args",void 0);Co([x()],Xt.prototype,"defaultMessage",void 0);var wn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?gn:Ur}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i})}};var jd=(e,t)=>(r,n)=>{var i,a;r.constructor.createProperty(n,t??{attribute:!1,type:String});let s={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[So]=(a=r[So])!==null&&a!==void 0?a:new Map,r[So].set(n,s)};q("ft-i18n")(Xt);var Ns=wn.build("designedReaderMapMetadata");var zf={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let r in t.payload)e.topicsRating[r]=t.payload[r]}},Gd=e=>ve.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:zf});var Ls=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(t,r,n){return t.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,n)),i.tocId==null?this.extractPagesToc(i.children,r,n):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(t,r,n){return t.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],r+1,i.tocId),f=this.convertNodes(i.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,n){return t.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:r,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,r+1,i.tocId),[l]})}buildPage(t,r){var n,i,a,s,l,d;let p={number:this.pages.length+1,title:(n=t.title)!==null&&n!==void 0?n:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(i=t.tocId)!==null&&i!==void 0?i:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{h(m,f[v])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},An=class{convertPaginatedToc(t,r){return new Ls(t,r).build()}};var Rn=class extends Bt{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,n){super(!1,r),this.converter=t,this._mapId=n,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return xe((r=(t=P.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(t=>t!=="configuration")}makeCacheKey(t,r){return t+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,r){return(await this.getEnrichedToc(r)).nodeByTocId[t]}getTocNodeNow(t,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[t]}getTocNodeNowByUrl(t,r){var n,i;let a=this.getMapNow(r);return a?.prettyUrl==t||`${a?.id}/root`===t?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t,r){let n=await this.getEnrichedToc(r);return n.pages[t-1]||n.pages[0]}async getPageByTocId(t,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[t]||n.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(t,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,n){return this.cache.get("topic-relatives-"+[t,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,n))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,r,n){let i=this.getNavigationData(t,r,n),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(t,r,n,i){var a,s;t=t||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[t],p=l?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(t,r,n,i){return await this.getEnrichedToc(i),this.getNavigationData(t,r,n,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(i=>i.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,n){return this.makeRateTopicRequest(t,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=P.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,n){return this.makeTopicFeedbackRequest(t,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,r){let n=this.getTocNodeNow(t,r),i=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],a=this.getTocNodeNow(n.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(t,{session:r}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Se.FEEDBACK:return xe(r??[],et.FEEDBACK_USER);case Se.RATING:return xe(r??[],et.RATING_USER);case Se.PRINT:return xe(r??[],et.PRINT_USER);case Se.BOOKMARK:return!!r?.sessionAuthenticated;case Se.COLLECTIONS:return xe(r??[],et.COLLECTION_USER);case Se.PERSONAL_BOOKS:return xe(r??[],et.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Tn=class e extends Rn{static async build(t){return new e(new An,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,r){let n=await this.api.getMap(t,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,r){return await this.getMap(r),this.api.getPages(t,this.fingerprint,r)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(t,r,n){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,n){return this.api.rateTopic(this.mapId,t,r,n)}makeTopicFeedbackRequest(t,r,n){return this.api.sendTopicFeedback(this.mapId,t,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var In=class e{static build(t,r){return new e(Gd(t.trim()||"context"),r??Tn.build)}loaded(){return bi(()=>this._loaded)}constructor(t,r,n){this.store=t,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ft(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return qr(()=>this.service)}async navigateToTopic(t,r,n){await this.loaded();let i=await this.awaitService(),a=await(n!=null?i.getPage(n,this.getTranslationSettings()):i.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,r){var n,i,a;let s=(n=t==="root"?void 0:t)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(s)?s:(a=(i=r.topics[0])!==null&&i!==void 0?i:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let n=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var r,n,i,a,s;try{t&&this.setTranslationLoading(!0);let l=d=>{throw t&&this.setTranslationError(!0),d};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(t).then(d=>this.store.actions.map(d)).catch(l),(n=this.service)===null||n===void 0?void 0:n.getToc(t).then(d=>this.store.actions.toc(d)).catch(l),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(t).then(d=>this.store.actions.pagesToc(d)).catch(l),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(d=>this.store.actions.paginationConfiguration(d)).catch(l),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(t).then(d=>this.setTranslationError(d))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(l){this.errorHandler&&!(l instanceof de)&&this.errorHandler(l)}}loadConfiguration(){var t;return(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var t;return(t=this.service)===null||t===void 0||t.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var t,r;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n).then(i=>{let a=i.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Je.clusteringHelperCreated))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let i=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=P.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new We(n,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,n,i;await this.loaded();let a=await qr(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((i=(n=(r=d?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(t=r.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(t));n&&this.store.actions.setTopicsRating({[t]:n})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,r,n){return this.service.getAccurateNavigationData(t,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(t){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var r,n;let i=this.getTranslationSettings();return i?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(t,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(t)}getTocNode(t){return this.service.getTocNode(t,this.getTranslationSettings())}getPage(t){return this.service.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Je.mapAttachmentsUpdate))}};var Kd=L`
|
|
1653
|
-
`;var
|
|
1652
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Xt.elementDefinitions={};Xt.styles=jd;Co([ht()],Xt.prototype,"editorMode",void 0);Co([v()],Xt.prototype,"context",void 0);Co([v()],Xt.prototype,"key",void 0);Co([zt([])],Xt.prototype,"args",void 0);Co([v()],Xt.prototype,"defaultMessage",void 0);var An=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?bn:Ur}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i})}};var Gd=(e,t)=>(r,n)=>{var i,a;r.constructor.createProperty(n,t??{attribute:!1,type:String});let s={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[So]=(a=r[So])!==null&&a!==void 0?a:new Map,r[So].set(n,s)};q("ft-i18n")(Xt);var Ls=An.build("designedReaderMapMetadata");var Wf={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let r in t.payload)e.topicsRating[r]=t.payload[r]}},Kd=e=>xe.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:Wf});var Ps=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(t,r,n){return t.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,n)),i.tocId==null?this.extractPagesToc(i.children,r,n):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(t,r,n){return t.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:n,children:[]};this.register(u);let h=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],r+1,i.tocId),f=this.convertNodes(i.children,r+1,u.tocId);return u.children=[...h,...f],[u]})}convertSectionNodes(t,r,n){return t.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:r,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,r+1,i.tocId),[l]})}buildPage(t,r){var n,i,a,s,l,d;let u={number:this.pages.length+1,title:(n=t.title)!==null&&n!==void 0?n:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(i=t.tocId)!==null&&i!==void 0?i:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,x)=>(x?u.topics:u.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((m,x)=>{h(m,f[x])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),u.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),u}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Rn=class{convertPaginatedToc(t,r){return new Ps(t,r).build()}};var Tn=class extends Bt{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,n){super(!1,r),this.converter=t,this._mapId=n,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return ve((r=(t=P.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(t=>t!=="configuration")}makeCacheKey(t,r){return t+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,r){return(await this.getEnrichedToc(r)).nodeByTocId[t]}getTocNodeNow(t,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[t]}getTocNodeNowByUrl(t,r){var n,i;let a=this.getMapNow(r);return a?.prettyUrl==t||`${a?.id}/root`===t?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t,r){let n=await this.getEnrichedToc(r);return n.pages[t-1]||n.pages[0]}async getPageByTocId(t,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[t]||n.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(t,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,n){return this.cache.get("topic-relatives-"+[t,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,n))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,r,n){let i=this.getNavigationData(t,r,n),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(t,r,n,i){var a,s;t=t||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[t],u=l?.nodeByTocId[t],h=u?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=u?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:u?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(t,r,n,i){return await this.getEnrichedToc(i),this.getNavigationData(t,r,n,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(i=>i.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,n){return this.makeRateTopicRequest(t,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=P.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,n){return this.makeTopicFeedbackRequest(t,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,r){let n=this.getTocNodeNow(t,r),i=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],a=this.getTocNodeNow(n.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(t,{session:r}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Se.FEEDBACK:return ve(r??[],et.FEEDBACK_USER);case Se.RATING:return ve(r??[],et.RATING_USER);case Se.PRINT:return ve(r??[],et.PRINT_USER);case Se.BOOKMARK:return!!r?.sessionAuthenticated;case Se.COLLECTIONS:return ve(r??[],et.COLLECTION_USER);case Se.PERSONAL_BOOKS:return ve(r??[],et.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var In=class e extends Tn{static async build(t){return new e(new Rn,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,r){let n=await this.api.getMap(t,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,r){return await this.getMap(r),this.api.getPages(t,this.fingerprint,r)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(t,r,n){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,n){return this.api.rateTopic(this.mapId,t,r,n)}makeTopicFeedbackRequest(t,r,n){return this.api.sendTopicFeedback(this.mapId,t,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var _n=class e{static build(t,r){return new e(Kd(t.trim()||"context"),r??In.build)}loaded(){return xi(()=>this._loaded)}constructor(t,r,n){this.store=t,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ft(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return qr(()=>this.service)}async navigateToTopic(t,r,n){await this.loaded();let i=await this.awaitService(),a=await(n!=null?i.getPage(n,this.getTranslationSettings()):i.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,r){var n,i,a;let s=(n=t==="root"?void 0:t)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(s)?s:(a=(i=r.topics[0])!==null&&i!==void 0?i:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let n=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var r,n,i,a,s;try{t&&this.setTranslationLoading(!0);let l=d=>{throw t&&this.setTranslationError(!0),d};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(t).then(d=>this.store.actions.map(d)).catch(l),(n=this.service)===null||n===void 0?void 0:n.getToc(t).then(d=>this.store.actions.toc(d)).catch(l),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(t).then(d=>this.store.actions.pagesToc(d)).catch(l),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(d=>this.store.actions.paginationConfiguration(d)).catch(l),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(t).then(d=>this.setTranslationError(d))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(l){this.errorHandler&&!(l instanceof de)&&this.errorHandler(l)}}loadConfiguration(){var t;return(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var t;return(t=this.service)===null||t===void 0||t.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var t,r;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n).then(i=>{let a=i.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Je.clusteringHelperCreated))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let i=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=P.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new We(n,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,n,i;await this.loaded();let a=await qr(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((i=(n=(r=d?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let u=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(t=r.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(t));n&&this.store.actions.setTopicsRating({[t]:n})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,r,n){return this.service.getAccurateNavigationData(t,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(t){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var r,n;let i=this.getTranslationSettings();return i?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(t,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(t)}getTocNode(t){return this.service.getTocNode(t,this.getTranslationSettings())}getPage(t){return this.service.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Je.mapAttachmentsUpdate))}};var Zd=L`
|
|
1653
|
+
`;var Nn=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},Ln=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Pn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},kn=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Mn=class extends Event{constructor(){super("ft-reader-map-not-found")}},Dn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},$n=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Bn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Un=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Lt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Vf=e=>t=>+(t??"NaN")>0?+t:e,bt=class extends ge{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new ft(5),this.navigationDebouncer=new ft(10),this.mapLoadedEventDebouncer=new ft(50),this.addStore(P)}render(){return $`
|
|
1654
1654
|
${this.importStyleIfNeeded()}
|
|
1655
1655
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1656
1656
|
`}importStyleIfNeeded(){var t,r;let n=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?H:$`
|
|
1657
1657
|
<style>
|
|
1658
1658
|
@import "${n}"
|
|
1659
1659
|
</style>
|
|
1660
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1660
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=_n.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Un(this.stateManager)}),P.addEventListener(se.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),P.addEventListener(se.eventName,this.updateConfiguration)}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new Pn(a))))}(t.has("visibleTopics")||t.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Ln(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Bn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new Dn):r.status===403?this.dispatchEvent(new $n):r.status===404?this.dispatchEvent(new Mn):this.dispatchEvent(new kn(t))}reloadBookmarks(){Ns.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Nn(this.map,this.toc))})}};bt.styles=Zd;Lt([ht({store:P.name})],bt.prototype,"baseUrl",void 0);Lt([ht({store:P.name})],bt.prototype,"session",void 0);Lt([v()],bt.prototype,"mapId",void 0);Lt([v()],bt.prototype,"tocId",void 0);Lt([v()],bt.prototype,"section",void 0);Lt([v()],bt.prototype,"topicPivot",void 0);Lt([v()],bt.prototype,"searchInDocumentQuery",void 0);Lt([v({type:Number,converter:{fromAttribute:Vf()}})],bt.prototype,"page",void 0);Lt([ht({store:"reader"})],bt.prototype,"map",void 0);Lt([ht({store:"reader"})],bt.prototype,"toc",void 0);Lt([ht({store:"reader"})],bt.prototype,"visibleTopics",void 0);Lt([ht({store:"reader"})],bt.prototype,"currentPage",void 0);Lt([ht({store:"reader"})],bt.prototype,"scrollTarget",void 0);Lt([v({attribute:!1})],bt.prototype,"readerServiceProvider",void 0);q("ft-reader-context")(bt);var Oo=class{constructor(t){this.contentLocales=t}localize(t){var r,n;return t?.key!=="ft:locale"?t:{...t,displayValue:(r=this.findLocaleValue(t))!==null&&r!==void 0?r:t.displayValue,displayTooltipValue:(n=this.findLocaleValue(t))!==null&&n!==void 0?n:t.displayTooltipValue}}findLocaleValue(t){var r;return(r=this.contentLocales.find(n=>n.lang===t.value))===null||r===void 0?void 0:r.label}};var Et=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},dt=class extends Fd(wn(an)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Ls)}setReaderStateManager(t){super.setReaderStateManager(t),this.key&&this.useForSwitchingToRelatives&&t.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var t,r,n,i;this.useForSwitchingToRelatives&&this.key?this.relatives=(i=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((n=this.map)===null||n===void 0?void 0:n.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&i!==void 0?i:[]:this.relatives=[]}render(){return $`
|
|
1661
1661
|
${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
|
|
1662
1662
|
${this.hideIfEmpty()}
|
|
1663
1663
|
`}renderSwitchToRelatives(){return $`
|
|
@@ -1668,10 +1668,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1668
1668
|
${Mo(this.relatives,t=>t.metadata.value,t=>this.renderRelativeItem(t.result,t.metadata))}
|
|
1669
1669
|
</ft-floating-menu>
|
|
1670
1670
|
</div>
|
|
1671
|
-
`}renderChip(t=!1){var r,n,i,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((n=this.flatMetadata)===null||n===void 0?void 0:n.displayValue),
|
|
1671
|
+
`}renderChip(t=!1){var r,n,i,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((n=this.flatMetadata)===null||n===void 0?void 0:n.displayValue),u=`${this.metadataLabel}: ${(a=(i=this.flatMetadata)===null||i===void 0?void 0:i.displayTooltipValue)!==null&&a!==void 0?a:this.noValueMessage}`,h=$`
|
|
1672
1672
|
<ft-chip part="chip"
|
|
1673
1673
|
exportpartsPrefix="chip"
|
|
1674
|
-
label="${
|
|
1674
|
+
label="${u}"
|
|
1675
1675
|
slot="${d&&t?"toggle":""}"
|
|
1676
1676
|
trailingIcon icon="${t?"thin_arrow":""}"
|
|
1677
1677
|
?clickable=${t}
|
|
@@ -1686,12 +1686,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1686
1686
|
<ft-tooltip part="tooltip"
|
|
1687
1687
|
slot="${t?"toggle":""}"
|
|
1688
1688
|
class="${this.multiLine?"ft-reader-metadata-multi-line":""}"
|
|
1689
|
-
text="${
|
|
1689
|
+
text="${u}">
|
|
1690
1690
|
${h}
|
|
1691
1691
|
</ft-tooltip>
|
|
1692
1692
|
`}get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}renderRelativeItem(t,r){var n,i;let a=this.translateValues&&(i=new Oo((n=this.availableContentLocales)!==null&&n!==void 0?n:[]).localize(r))!==null&&i!==void 0?i:r;return $`
|
|
1693
1693
|
<a part="relative-item-link"
|
|
1694
|
-
href="${
|
|
1694
|
+
href="${Os(t)}"
|
|
1695
1695
|
@click=${s=>this.addTopicPivotParam(s,t)}>
|
|
1696
1696
|
<ft-ripple part="relative-item-ripple"></ft-ripple>
|
|
1697
1697
|
<ft-floating-menu-item part="relative-item" value="${a.value}" notFocusable>
|
|
@@ -1706,7 +1706,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1706
1706
|
display: none !important;
|
|
1707
1707
|
}
|
|
1708
1708
|
</style>
|
|
1709
|
-
`:H}addTopicPivotParam(t,r){let n=this.stateManager.store.getState().visibleTopics[0];if(n&&r.type=="MAP"){t.stopPropagation(),t.preventDefault();let i=this.service.getTocNodeNow(n);this.service.getTopicInfo(i).then(a=>{let s=a?.metadata.find(
|
|
1709
|
+
`:H}addTopicPivotParam(t,r){let n=this.stateManager.store.getState().visibleTopics[0];if(n&&r.type=="MAP"){t.stopPropagation(),t.preventDefault();let i=this.service.getTocNodeNow(n);this.service.getTopicInfo(i).then(a=>{let s=a?.metadata.find(u=>u.key==this.relativeTopicPivotMetadata),l=new URL(Os(r));s&&s.values.forEach(u=>l.searchParams.append("topicPivot",u));let d=document.createElement("a");d.href=l.toString(),(t.ctrlKey||t.metaKey)&&(d.target="_blank"),this.append(d),d.click()})}}willUpdate(t){var r,n,i,a,s;super.willUpdate(t),t.has("key")&&this.useForSwitchingToRelatives&&(t.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(t.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),t.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(i=this.stateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key):(a=this.stateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(t.has("translateValues")||t.has("metadata")||t.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(t))&&(this.flatMetadata=this.metadata?We.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Oo((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}get metadataLabel(){var t,r,n,i,a,s;return this.metadata?this.metadata.label:(s=(i=(n=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&i!==void 0?i:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}};dt.elementDefinitions={"ft-chip":ct,"ft-floating-menu":Me,"ft-floating-menu-item":Nt,"ft-floating-menu-label":De,"ft-ripple":X,"ft-tooltip":nt};dt.styles=Yc;Et([v(),Ea()],dt.prototype,"key",void 0);Et([v({type:Boolean})],dt.prototype,"multiLine",void 0);Et([v({type:Boolean})],dt.prototype,"useForSwitchingToRelatives",void 0);Et([v({type:Boolean})],dt.prototype,"displayLabel",void 0);Et([v({type:Number})],dt.prototype,"hierarchicalValueTruncatingLevel",void 0);Et([v({type:Boolean})],dt.prototype,"forceTooltip",void 0);Et([v({attribute:!1})],dt.prototype,"editorMode",void 0);Et([v({type:Boolean})],dt.prototype,"translateValues",void 0);Et([ht({store:"reader",selector:(e,t)=>{var r,n;return(n=(r=e.map)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.find(i=>i.key===t.key)}})],dt.prototype,"metadata",void 0);Et([tt()],dt.prototype,"flatMetadata",void 0);Et([ht({store:"reader"})],dt.prototype,"map",void 0);Et([ht({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata}})],dt.prototype,"relativeTopicPivotMetadata",void 0);Et([tt()],dt.prototype,"relatives",void 0);Et([ht({store:Es})],dt.prototype,"availableContentLocales",void 0);Et([Gd(Ls.properties.itemWithNoValueForSwitchToRelatives())],dt.prototype,"noValueMessage",void 0);Et([wa({eventName:Je.clusteringHelperCreated})],dt.prototype,"updateRelatives",null);q("ft-reader-metadata")(dt);})();
|
|
1710
1710
|
/*! Bundled license information:
|
|
1711
1711
|
|
|
1712
1712
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|