@fluid-topics/ft-reader-metadata 2.2.36 → 2.2.38
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.
- package/build/ft-reader-metadata.light.js +65 -64
- package/build/ft-reader-metadata.min.js +148 -147
- package/package.json +13 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var Ep=Object.defineProperty;var U=(t,e)=>{for(var r in e)Ep(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(b,y){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=y.prototype.attributeChangedCallback,A=new Set(y.observedAttributes||[]);m(y,A,v);let M={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:A};this._definitionsByTag.set(b,M),this._definitionsByClass.set(y,M);let V=r.call(o,b);V||(V=h(b),e.call(o,b,V)),this===window.customElements&&(s.set(y,M),M.standInClass=V);let oe=this._awaitingUpgrade.get(b);if(oe){this._awaitingUpgrade.delete(b);for(let $ of oe)a.delete($),S($,M,!0)}let L=this._whenDefinedPromises.get(b);return L!==void 0&&(L.resolve(y),this._whenDefinedPromises.delete(b)),y}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let y=this._getDefinition(b);if(y!==void 0)return Promise.resolve(y.elementClass);let v=this._whenDefinedPromises.get(b);return v===void 0&&(v={},v.promise=new Promise(A=>v.resolve=A),this._whenDefinedPromises.set(b,v)),v.promise}_upgradeWhenDefined(b,y,v){let A=this._awaitingUpgrade.get(y);A||this._awaitingUpgrade.set(y,A=new Set),v?A.add(b):A.delete(b)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let v=s.get(this.constructor);if(!v)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],v.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,v),y},window.HTMLElement.prototype=t.prototype;let p=b=>b===document||b instanceof ShadowRoot,f=b=>{let y=b.getRootNode();if(!p(y)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;y=v.getRootNode(),p(y)||(y=c.get(y)?.getRootNode()||document)}return y.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let A=f(v)||window.customElements,M=A._getDefinition(b);return M?S(v,M):a.set(v,A),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let v=i.get(this);v&&v.formAssociated&&v?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let v=i.get(this);v?.formAssociated&&v?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let v=i.get(this);v?.formAssociated&&v?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let v=i.get(this);v?.formAssociated&&v?.formStateRestoreCallback?.apply(this,arguments)}},m=(b,y,v)=>{if(y.size===0||v===void 0)return;let A=b.prototype.setAttribute;A&&(b.prototype.setAttribute=function(oe,L){let $=oe.toLowerCase();if(y.has($)){let ce=this.getAttribute($);A.call(this,$,L),v.call(this,$,ce,L)}else A.call(this,$,L)});let M=b.prototype.removeAttribute;M&&(b.prototype.removeAttribute=function(oe){let L=oe.toLowerCase();if(y.has(L)){let $=this.getAttribute(L);M.call(this,L),v.call(this,L,$,null)}else M.call(this,L)});let V=b.prototype.toggleAttribute;V&&(b.prototype.toggleAttribute=function(oe,L){let $=oe.toLowerCase();if(y.has($)){let ce=this.getAttribute($);V.call(this,$,L);let tt=this.getAttribute($);v.call(this,$,ce,tt)}else V.call(this,$,L)})},x=b=>{let y=Object.getPrototypeOf(b);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(b,window.HTMLElement):x(y)},S=(b,y,v=!1)=>{Object.setPrototypeOf(b,y.elementClass.prototype),i.set(b,y),d=b;try{new y.elementClass}catch{x(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(A=>{b.hasAttribute(A)&&y.attributeChangedCallback.call(b,A,null,b.getAttribute(A))}),v&&y.connectedCallback&&b.isConnected&&y.connectedCallback.call(b)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let y=w.apply(this,arguments);return b.customElements&&(y.customElements=b.customElements),y};let E=[document],R=(b,y,v=void 0)=>{let A=(v?Object.getPrototypeOf(v):b.prototype)[y];b.prototype[y]=function(){E.push(this);let M=A.apply(v||this,arguments);return M!==void 0&&c.set(M,this),E.pop(),M}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");let P=(b,y)=>{let v=Object.getOwnPropertyDescriptor(b.prototype,y);Object.defineProperty(b.prototype,y,{...v,set(A){E.push(this),v.set.call(this,A),E.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,y=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...oe){let L=y.call(this,...oe);return b.set(L,this),L},v.forEach(oe=>{let L=window.ElementInternals.prototype,$=L[oe];L[oe]=function(...ce){let tt=b.get(this);if(i.get(tt).formAssociated===!0)return $?.call(this,...ce);throw new DOMException(`Failed to execute ${$} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class A extends Array{constructor(L){super(...L),this._elements=L}get value(){return this._elements.find(L=>L.checked===!0)?.value||""}}class M{constructor(L){let $=new Map;L.forEach((ce,tt)=>{let wi=ce.getAttribute("name"),lc=$.get(wi)||[];this[+tt]=ce,lc.push(ce),$.set(wi,lc)}),this.length=L.length,$.forEach((ce,tt)=>{ce&&(ce.length===1?this[tt]=ce[0]:this[tt]=new A(ce))})}namedItem(L){return this[L]}}let V=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let oe=V.get.call(this,[]),L=[];for(let $ of oe){let ce=i.get($);(!ce||ce.formAssociated===!0)&&L.push($)}return new M(L)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},i):console.info(r,o,i,s)}}}var Ui={};U(Ui,{CSSResult:()=>xr,LitElement:()=>ht,ReactiveElement:()=>Be,_$LE:()=>Np,_$LH:()=>Mi,adoptStyles:()=>Yr,css:()=>T,defaultConverter:()=>vr,getCompatibleStyle:()=>Go,html:()=>I,isServer:()=>fg,mathml:()=>Ni,noChange:()=>le,notEqual:()=>Xr,nothing:()=>D,render:()=>Di,supportsAdoptingStyleSheets:()=>Zr,svg:()=>ki,unsafeCSS:()=>Dt});var Wo=globalThis,Zr=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol(),dc=new WeakMap,xr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ai)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Zr&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=dc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&dc.set(r,e))}return e}toString(){return this.cssText}},Dt=t=>new xr(typeof t=="string"?t:t+"",void 0,Ai),T=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[a+1],t[0]);return new xr(r,t,Ai)},Yr=(t,e)=>{if(Zr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),i=Wo.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}},Go=Zr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Dt(r)})(t):t;var{is:Cp,defineProperty:Op,getOwnPropertyDescriptor:wp,getOwnPropertyNames:Ap,getOwnPropertySymbols:Rp,getPrototypeOf:Tp}=Object,jo=globalThis,uc=jo.trustedTypes,_p=uc?uc.emptyScript:"",Ip=jo.reactiveElementPolyfillSupport,Qr=(t,e)=>t,vr={toAttribute(t,e){switch(e){case Boolean:t=t?_p:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Xr=(t,e)=>!Cp(t,e),pc={attribute:!0,type:String,converter:vr,reflect:!1,useDefault:!1,hasChanged:Xr};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var Be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=pc){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Op(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){let{get:i,set:a}=wp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let c=i?.call(this);a?.call(this,s),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pc}static _$Ei(){if(this.hasOwnProperty(Qr("elementProperties")))return;let e=Tp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Qr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qr("properties"))){let r=this.properties,o=[...Ap(r),...Rp(r)];for(let i of o)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,i]of r)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let i=this._$Eu(r,o);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)r.unshift(Go(i))}else e!==void 0&&r.push(Go(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:vr).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:vr;this._$Em=i;let c=s.fromAttribute(r,a.type);this[i]=c??this._$Ej?.get(i)??c,this._$Em=null}}requestUpdate(e,r,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Xr)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,c=this[i];s!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,a,c)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Be.elementStyles=[],Be.shadowRootOptions={mode:"open"},Be[Qr("elementProperties")]=new Map,Be[Qr("finalized")]=new Map,Ip?.({ReactiveElement:Be}),(jo.reactiveElementVersions??=[]).push("2.1.2");var Ti=globalThis,fc=t=>t,Ko=Ti.trustedTypes,hc=Ko?Ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,_i="$lit$",ft=`lit$${Math.random().toFixed(9).slice(2)}$`,Ii="?"+ft,Lp=`<${Ii}>`,Bt=document,eo=()=>Bt.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",Li=Array.isArray,vc=t=>Li(t)||typeof t?.[Symbol.iterator]=="function",Ri=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),yc=/'/g,bc=/"/g,Sc=/^(?:script|style|textarea|title)$/i,Pi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),I=Pi(1),ki=Pi(2),Ni=Pi(3),le=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),xc=new WeakMap,Ut=Bt.createTreeWalker(Bt,129);function Ec(t,e){if(!Li(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hc!==void 0?hc.createHTML(e):e}var Cc=(t,e)=>{let r=t.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Jr;for(let c=0;c<r;c++){let d=t[c],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===Jr?f[1]==="!--"?s=mc:f[1]!==void 0?s=gc:f[2]!==void 0?(Sc.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=Ft):f[3]!==void 0&&(s=Ft):s===Ft?f[0]===">"?(s=i??Jr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Ft:f[3]==='"'?bc:yc):s===bc||s===yc?s=Ft:s===mc||s===gc?s=Jr:(s=Ft,i=void 0);let x=s===Ft&&t[c+1].startsWith("/>")?" ":"";a+=s===Jr?d+Lp:h>=0?(o.push(p),d.slice(0,h)+_i+d.slice(h)+ft+x):d+ft+(h===-2?c:x)}return[Ec(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},ro=class t{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,d=this.parts,[p,f]=Cc(e,r);if(this.el=t.createElement(p,o),Ut.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Ut.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(_i)){let m=f[s++],x=i.getAttribute(h).split(ft),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Zo:S[1]==="?"?Yo:S[1]==="@"?Qo:Ht}),i.removeAttribute(h)}else h.startsWith(ft)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(Sc.test(i.tagName)){let h=i.textContent.split(ft),m=h.length-1;if(m>0){i.textContent=Ko?Ko.emptyScript:"";for(let x=0;x<m;x++)i.append(h[x],eo()),Ut.nextNode(),d.push({type:2,index:++a});i.append(h[m],eo())}}}else if(i.nodeType===8)if(i.data===Ii)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(ft,h+1))!==-1;)d.push({type:7,index:a}),h+=ft.length-1}a++}}static createElement(e,r){let o=Bt.createElement("template");return o.innerHTML=e,o}};function $t(t,e,r=t,o){if(e===le)return e;let i=o!==void 0?r._$Co?.[o]:r._$Cl,a=to(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=i:r._$Cl=i),i!==void 0&&(e=$t(t,i._$AS(t,e.values),i,o)),e}var qo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,i=(e?.creationScope??Bt).importNode(r,!0);Ut.currentNode=i;let a=Ut.nextNode(),s=0,c=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Sr(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Xo(a,this,e)),this._$AV.push(p),d=o[++c]}s!==d?.index&&(a=Ut.nextNode(),s++)}return Ut.currentNode=Bt,i}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Sr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=$t(this,e,r),to(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==D&&to(this._$AH)?this._$AA.nextSibling.data=e:this.T(Bt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=ro.createElement(Ec(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new qo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=xc.get(e.strings);return r===void 0&&xc.set(e.strings,r=new ro(e)),r}k(e){Li(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,i=0;for(let a of e)i===r.length?r.push(o=new t(this.O(eo()),this.O(eo()),this,this.options)):o=r[i],o._$AI(a),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=fc(e).nextSibling;fc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,r=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=$t(this,e,r,0),s=!to(e)||e!==this._$AH&&e!==le,s&&(this._$AH=e);else{let c=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=$t(this,c[o+d],r,d),p===le&&(p=this._$AH[d]),s||=!to(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zo=class extends Ht{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},Yo=class extends Ht{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},Qo=class extends Ht{constructor(e,r,o,i,a){super(e,r,o,i,a),this.type=5}_$AI(e,r=this){if((e=$t(this,e,r,0)??D)===le)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xo=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){$t(this,e)}},Mi={M:_i,P:ft,A:Ii,C:1,L:Cc,R:qo,D:vc,V:$t,I:Sr,H:Ht,N:Yo,U:Qo,B:Zo,F:Xo},Pp=Ti.litHtmlPolyfillSupport;Pp?.(ro,Sr),(Ti.litHtmlVersions??=[]).push("3.3.3");var Di=(t,e,r)=>{let o=r?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=r?.renderBefore??null;o._$litPart$=i=new Sr(e.insertBefore(eo(),a),a,void 0,r??{})}return i._$AI(t),i};var Fi=globalThis,ht=class extends Be{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Di(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return le}};ht._$litElement$=!0,ht.finalized=!0,Fi.litElementHydrateSupport?.({LitElement:ht});var kp=Fi.litElementPolyfillSupport;kp?.({LitElement:ht});var Np={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Fi.litElementVersions??=[]).push("4.2.2");var fg=!1;var Hi={};U(Hi,{customElement:()=>Mp,eventOptions:()=>Fp,property:()=>g,query:()=>ee,queryAll:()=>Bp,queryAssignedElements:()=>Bi,queryAssignedNodes:()=>$i,queryAsync:()=>$p,standardProperty:()=>Oc,state:()=>F});var Mp=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Dp={attribute:!0,type:String,converter:vr,reflect:!1,hasChanged:Xr},Oc=(t=Dp,e,r)=>{let{kind:o,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(c){let d=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,d,t,!0,c)},init(c){return c!==void 0&&this.C(s,void 0,t,c),c}}}if(o==="setter"){let{name:s}=r;return function(c){let d=this[s];e.call(this,c),this.requestUpdate(s,d,t,!0,c)}}throw Error("Unsupported decorator location: "+o)};function g(t){return(e,r)=>typeof r=="object"?Oc(t,e,r):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function F(t){return g({...t,state:!0,attribute:!1})}function Fp(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var je=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function ee(t,e){return(r,o,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:c}=typeof o=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return je(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return je(r,o,{get(){return a(this)}})}}var Up;function Bp(t){return(e,r)=>je(e,r,{get(){return(this.renderRoot??(Up??=document.createDocumentFragment())).querySelectorAll(t)}})}function $p(t){return(e,r)=>je(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Bi(t){return(e,r)=>{let{slot:o,selector:i}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return je(e,r,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(t)??[];return i===void 0?c:c.filter(d=>d.matches(i))}})}}function $i(t){return(e,r)=>{let{slot:o}=t??{},i="slot"+(o?`[name=${o}]`:":not([name])");return je(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var Vi={};U(Vi,{repeat:()=>Cr});var rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=t=>(...e)=>({_$litDirective$:t,values:e}),$e=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Hp}=Mi,wc=t=>t;var Rc=t=>t.strings===void 0,Ac=()=>document.createComment(""),Er=(t,e,r)=>{let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(Ac(),i),s=o.insertBefore(Ac(),i);r=new Hp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,c=s!==t;if(c){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||c){let d=r._$AA;for(;d!==a;){let p=wc(d).nextSibling;wc(o).insertBefore(d,i),d=p}}}return r},Ot=(t,e,r=t)=>(t._$AI(e,r),t),Vp={},Tc=(t,e=Vp)=>t._$AH=e,_c=t=>t._$AH,Jo=t=>{t._$AR(),t._$AA.remove()};var Ic=(t,e,r)=>{let o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},Cr=Ie(class extends $e{constructor(t){if(super(t),t.type!==rt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let c of t)i[s]=o?o(c,s):s,a[s]=r(c,s),s++;return{values:a,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let i=_c(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(i))return this.ut=s,a;let c=this.ut??=[],d=[],p,f,h=0,m=i.length-1,x=0,S=a.length-1;for(;h<=m&&x<=S;)if(i[h]===null)h++;else if(i[m]===null)m--;else if(c[h]===s[x])d[x]=Ot(i[h],a[x]),h++,x++;else if(c[m]===s[S])d[S]=Ot(i[m],a[S]),m--,S--;else if(c[h]===s[S])d[S]=Ot(i[h],a[S]),Er(t,d[S+1],i[h]),h++,S--;else if(c[m]===s[x])d[x]=Ot(i[m],a[x]),Er(t,i[h],i[m]),m--,x++;else if(p===void 0&&(p=Ic(s,x,S),f=Ic(c,h,m)),p.has(c[h]))if(p.has(c[m])){let w=f.get(s[x]),E=w!==void 0?i[w]:null;if(E===null){let R=Er(t,i[h]);Ot(R,a[x]),d[x]=R}else d[x]=Ot(E,a[x]),Er(t,i[h],E),i[w]=null;x++}else Jo(i[m]),m--;else Jo(i[h]),h++;for(;x<=S;){let w=Er(t,d[S+1]);Ot(w,a[x]),d[x++]=w}for(;h<=m;){let w=i[h++];w!==null&&Jo(w)}return this.ut=s,Tc(t,d),le}});var zi={};U(zi,{classMap:()=>Le});var Le=Ie(class extends $e{constructor(t){if(super(t),t.type!==rt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return le}});var Wi={};U(Wi,{styleMap:()=>Wp});var Lc="important",zp=" !"+Lc,Wp=Ie(class extends $e{constructor(t){if(super(t),t.type!==rt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(zp);o.includes("-")||a?r.setProperty(o,a?i.slice(0,-11):i,a?Lc:""):r[o]=i}}return le}});var ji={};U(ji,{UnsafeHTMLDirective:()=>Or,unsafeHTML:()=>Gi});var Or=class extends $e{constructor(e){if(super(e),this.it=D,e.type!==rt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Or.directiveName="unsafeHTML",Or.resultType=1;var Gi=Ie(Or);var Ki={};U(Ki,{splitBreadcrumbForMenu:()=>Gp});function Gp(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(r,1),i=t.slice(o*-1);return e+o>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-i.length),afterMenu:i}}var na={};U(na,{CacheRegistry:()=>nt,ClearCacheEvent:()=>so});var qi={};U(qi,{CancelablePromise:()=>en,CanceledPromiseError:()=>Pe,cancelable:()=>wr});var Pe=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},en=class extends Promise{constructor(e){super((r,o)=>e(i=>{this.isCanceled?o(new Pe("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?o(new Pe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},wr=t=>new en((e,r)=>t.then(e).catch(r));var oa={};U(oa,{FtContextRegistrationEvent:()=>Vt,FtNotificationEvent:()=>ao,PostResizeEvent:()=>ra,PreResizeEvent:()=>ta,WithEventBus:()=>gt,withEventBus:()=>nn});var ea={};U(ea,{AbstractRegistry:()=>Ar,applyMixinOnce:()=>ae,customElements:()=>q,dateReviver:()=>Zp,deepCopy:()=>ke,deepEqual:()=>he,delay:()=>rn,eventPathContainsMatchingElement:()=>io,everyDeep:()=>qp,flatDeep:()=>kc,forEachDeep:()=>Nc,getComposedPathTo:()=>Qi,groupBy:()=>Xp,hasChanged:()=>He,ignoreComposingEvents:()=>Ji,last:()=>Qp,minmax:()=>mt,parseDate:()=>Dc,randomId:()=>Xi,someDeep:()=>Mc,unslotText:()=>on,waitFor:()=>no,waitUntil:()=>Yi});var Zi={};U(Zi,{customElement:()=>oo,dateProperty:()=>Kp,isNumber:()=>Pc,jsonProperty:()=>de,jsonPropertyConverter:()=>tn,numberProperty:()=>ot,optionalNumberProperty:()=>jp});var oo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},tn=t=>({fromAttribute:e=>{if(e==null)return ke(t);try{return JSON.parse(e)}catch{return ke(t)}},toAttribute:e=>JSON.stringify(e)});function de(t,e){return g({type:Object,converter:tn(t),hasChanged:He,...e??{}})}function jp(t){return ot(t)}function ot(t){return g({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let i=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Pc(e)?mt(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Pc(t){return!isNaN(parseFloat(t))}function Kp(t){return g({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var rn=t=>new Promise(e=>setTimeout(e,t));async function Yi(t,e=10,r=2e4){await no(async()=>await t()||void 0,e,r)}async function no(t,e=10,r=2e4){let o=await t(),i=performance.now(),a=i;for(;o==null&&(!r||a-i<r);)await rn(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function kc(t,e){return t.flatMap(r=>[r,...kc(e(r),e)])}function Nc(t,e,r){let o=(i,a)=>{var s;for(let c=0;c<i.length;c++){let d=i[c];if(!(((s=r(d,c,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Mc(t,e,r){let o=!1;return Nc(t,e,(i,a,s,c)=>(o=!!r(i,a,s,c),!o)),o}function qp(t,e,r){return!Mc(t,e,(o,i,a,s)=>!r(o,i,a,s))}function Zp(...t){return(e,r)=>t.includes(e)?Dc(r):r}function Dc(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,i)=>r+o+":"+i),new Date(t)}function Yp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!he(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!he(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null),a=i(t);if(r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!he(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return Yp(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function io(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let i of o){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function mt(t,e,r){return Math.min(Math.max(t,e),r)}function Qp(t){return t[t.length-1]}function on(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>on(e)).join(""):t?.textContent||""}function Qi(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function ke(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Xi(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ae(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let i=e(o);return i[t]=!0,i}}function Ji(){return function(t,e,r){let o=r.value;r.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function q(t){for(let[e,r]of Object.entries(t))oo(e)(r)}function Xp(t,e){var r,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[o=i(s)])!==null&&r!==void 0?r:a[o]=[]).push(s);return a}var Ar=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var ao=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ta=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ra=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},nn=ae(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,i){this.eventBus.addEventListener(r,o,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,i){this.eventBus.removeEventListener(r,o,i)}}}),gt=class extends nn(Object){},Vt=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var so=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},nt=class extends gt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new so(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new so([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,i;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let i=async()=>r,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let i=this.content[e];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=wr(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var da={};U(da,{ClusteringHelper:()=>Tt,formatHierarchicalValues:()=>la});var ca={};U(ca,{accessBreadcrumb:()=>sf,accessResult:()=>Rt,accessResultId:()=>af,accessResultUrl:()=>co,enrichReaderUrl:()=>sa});var aa={};U(aa,{SearchPlaceConverter:()=>Ke,SearchPlaceQueryParams:()=>N,isSearchPlaceQueryParams:()=>xl,serializeRequest:()=>of});var Jp=t=>typeof t=="object"&&t!=null;var ef=t=>typeof t=="number",an=t=>typeof t=="string",ia=t=>Jp(t)&&an(t.endpoint)&&an(t.method)&&an(t.statusText)&&an(t.body)&&ef(t.status),Fc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Fc||(Fc={}));var Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Bc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var wt;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(wt||(wt={}));var $c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})($c||($c={}));var Hc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Hc||(Hc={}));var sn;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sn||(sn={}));var zt;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(zt||(zt={}));var Vc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Vc||(Vc={}));var zc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(zc||(zc={}));var Wc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Wc||(Wc={}));var Gc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Gc||(Gc={}));var jc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(jc||(jc={}));var Kc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Kc||(Kc={}));var qc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(qc||(qc={}));var Zc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Zc||(Zc={}));var Yc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Yc||(Yc={}));var At;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(At||(At={}));var Qc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Qc||(Qc={}));var Xc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xc||(Xc={}));var Wt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wt||(Wt={}));var ol=t=>Object.keys(Wt).includes(t);var Jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var cn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cn||(cn={}));var el;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(el||(el={}));var Rr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rr||(Rr={}));var nl=t=>Object.keys(Rr).includes(t);var it;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(it||(it={}));var Tr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Tr||(Tr={}));var tl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tl||(tl={}));var W;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(W||(W={}));var Ve;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ve||(Ve={}));var rl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(rl||(rl={}));var il;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(il||(il={}));var al;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(al||(al={}));var sl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(sl||(sl={}));var cl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(cl||(cl={}));var ll;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ll||(ll={}));var dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(dl||(dl={}));var ul;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ul||(ul={}));var pl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(pl||(pl={}));var fl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(fl||(fl={}));var hl;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(hl||(hl={}));var ml;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ml||(ml={}));var tf={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function gl(t,e){return t===e||(tf[t]??[]).some(r=>gl(r,e))}function ze(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>gl(o,e))}function yl(t,...e){return t==null?!1:e.some(r=>ze(t,r))}function rf(t){return`"${t}"`}function bl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function of(t,e){return new Ke(t).serialize(e)}var N;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(N||(N={}));var nf=new Set(Object.values(N));function xl(t){return nf.has(t)}var Ke=class t{constructor(e,r=20,o=!1,i="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,c,d,p,f,h;let m=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&m.append(N.LOCALE,e.contentLocale):m.append(N.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&m.append(N.QUERY,e.query);let x=t.serializeValueFilters(e.metadataFilters);x&&m.append(N.VALUE_FILTERS,x);let S=t.serializeNegativeValueFilters(e.metadataFilters);S&&m.append(N.NEGATIVE_VALUE_FILTERS,S);let w=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let b=w.map(y=>{var v;return`${y.key}~${(v=y.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");m.append(N.DATE_FILTERS,b)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let b=E.map(y=>{var v,A;return`${y.key}~${(v=y.rangeFilter)===null||v===void 0?void 0:v.from}_${(A=y.rangeFilter)===null||A===void 0?void 0:A.to}`}).join("*");m.append(N.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(N.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&m.append(N.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&m.append(N.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(c=e.paging)===null||c===void 0?void 0:c.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&m.append(N.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&m.append(N.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let R=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let b in R)m.append(b,R[b]);let P=new Array;return m.forEach((b,y)=>{P.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI(P.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,c,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let p=new URLSearchParams(e),f=(o=p.get(N.LOCALE))!==null&&o!==void 0?o:void 0,h=((i=p.get(N.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),m=(r=p.get(N.SORT))===null||r===void 0?void 0:r.toLowerCase(),x=(a=p.get(N.SCOPE))!==null&&a!==void 0?a:"default",S=+((s=p.get(N.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),w=p.get(N.KEYWORD_MATCH),E=w?w.toUpperCase()===At.MANDATORY?At.MANDATORY:At.OPTIONAL:void 0,R={};for(let P of p.keys())xl(P)||(R[P]=p.get(P));return f==="all"?f=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!f||this.availableContentLocales.length>0&&!this.availableContentLocales.some(P=>P.lang===f))&&(f=this.defaultContentLocale),{contentLocale:f,query:(c=p.get(N.QUERY))!==null&&c!==void 0?c:"",scope:(d=this.scopeMapping[x])!==null&&d!==void 0?d:"DEFAULT",virtualField:ol(h)?h:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:mt(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:E,otherQueryParams:R}}parseCompatFilters(e){var r,o,i,a,s,c,d;let p=[];return e.has(N.FILTERS)&&(p=t.parseValueFilters((r=e.get(N.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(N.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(N.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(N.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(N.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((c=e.get(N.DATE_FILTERS))!==null&&c!==void 0?c:""),...this.parseRangeFilters((d=e.get(N.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(bl).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Rr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}static superEscapeFilters(e){for(let[r,o,i]of t.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[r,o,i]of t.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(nl(e))return[{key:"ft:lastEdition",dateFilter:{type:Rr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var r,o;let i=((o=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&o!==void 0?o:[]).map(a=>t.escapeFilters(a)).map(a=>rf(bl(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var r;let o=(r=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let o=(r=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[N.LOCALE,N.FILTERS,N.VALUE_FILTERS,N.NEGATIVE_VALUE_FILTERS,N.DATE_FILTERS,N.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(N.LOCALE),r!==void 0&&o.searchParams.append(N.LOCALE,r),o.toString()}};Ke.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Rt(t){var e,r,o,i;return(i=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&i!==void 0?i:t?.htmlPackagePage}function af(t){var e,r,o,i,a,s,c,d,p;return(p=(d=(c=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&c!==void 0?c:(o=t?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=t?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function co(t,e){var r,o,i,a,s,c,d,p,f;return(f=(p=(d=(c=sa((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&c!==void 0?c:sa((o=t?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=t?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function sf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function sa(t,e){if(e&&t){let r=URL.parse(t),o=Ke.serializeValueFilters(e);if(o&&r?.searchParams.append(N.VALUE_FILTERS,o),r)return r.toString()}return t}function la(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var Tt=class t{constructor(e,r,o,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,r,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let i=(o=(r=Rt(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(c=>{a.push(la(c)),s.push(la(c,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(c=>o?o(c):c).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",i,a){var s,c;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(c=d?.label)!==null&&c!==void 0?c:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,m,x)=>x.findIndex(S=>S.value===h.value)===m).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,m)=>this.compareMetadata(h.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,o,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,i,{numeric:!0});return c?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,c=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>c&&(c=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(i=>i.key===o.key&&i.value===o.value)).length}};var ua={};U(ua,{Debouncer:()=>te});var te=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(c){i(c);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 ma={};U(ma,{designSystemVariables:()=>k});var ha={};U(ha,{DesignSystemFamily:()=>lo,DesignSystemSize:()=>uo,FtCssVariableFactory:()=>n,badge:()=>Of,banner:()=>Cf,button:()=>df,card:()=>pf,chart:()=>$f,checkbox:()=>gf,chip:()=>vf,chipChoice:()=>xf,chipGroup:()=>Sf,collapsible:()=>Uf,combobox:()=>Df,dateRangePicker:()=>Gf,drawer:()=>Lf,eventCard:()=>ff,floatingMenu:()=>Mf,foundation:()=>l,link:()=>Ef,modal:()=>_f,notice:()=>Vf,notification:()=>zf,pageDesigner:()=>Hf,pageFooter:()=>Rf,pageHeader:()=>Af,pageLayout:()=>Tf,popover:()=>Ff,radio:()=>yf,reorderableList:()=>If,resolveFamilyClass:()=>pa,resolveSizeClass:()=>fa,semantic:()=>u,setVariable:()=>G,switch_:()=>Bf,table:()=>bf,tabs:()=>Pf,textArea:()=>Nf,textInput:()=>kf,titleBreadcrumb:()=>wf,toc:()=>mf,toggle:()=>uf,tooltip:()=>Wf,treeList:()=>hf,typographies:()=>cf,typographyBody1Medium:()=>wl,typographyBody1Regular:()=>Ol,typographyBody1Semibold:()=>Al,typographyBody2Medium:()=>Tl,typographyBody2MediumUnderline:()=>_l,typographyBody2Regular:()=>Rl,typographyBody2Semibold:()=>Il,typographyCaption1Medium:()=>Ll,typographyCaption1Semibold:()=>Pl,typographyCaption2Bold:()=>Ml,typographyCaption2Medium:()=>kl,typographyCaption2Semibold:()=>Nl,typographyDisplay:()=>vl,typographyTitle1:()=>Sl,typographyTitle2:()=>El,typographyTitle3:()=>Cl,typographyVariants:()=>lf});var _t=t=>typeof t=="string"?Dt(t):t,n=class{static create(e,r,o,i){let a=c=>_t(c??i),s=T`var(${_t(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=c=>G(s,c??a(i)),s.get=c=>T`var(${_t(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,o,i){let a=c=>o.get(c??i),s=T`var(${_t(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=c=>G(s,c??a(i)),s.get=c=>T`var(${_t(e)}, ${a(c)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),i=T`var(${_t(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>T`var(${_t(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function G(t,e){return _t(`${t.name}: ${e}`)}var l={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:n.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:n.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:n.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:n.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:n.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:n.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:n.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:n.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},vl={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Sl={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},El={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Cl={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Ol={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},wl={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Al={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Rl={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Tl={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},_l={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Il={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ll={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Pl={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},kl={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Ml={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},cf={display:vl,"title-1":Sl,"title-2":El,"title-3":Cl,"body-1-regular":Ol,"body-1-medium":wl,"body-1-semibold":Al,"body-2-regular":Rl,"body-2-medium":Tl,"body-2-medium-underline":_l,"body-2-semibold":Il,"caption-1-medium":Ll,"caption-1-semibold":Pl,"caption-2-medium":kl,"caption-2-semibold":Nl,"caption-2-bold":Ml},lf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
-
Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",l.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",l.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",l.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var df={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:n.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:n.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var uf={iconSize:n.extend("--ftds-toggle-icon-size","",l.iconSize1),offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",l.spacing3),width:n.create("--ftds-toggle-width","","SIZE","36px"),height:n.create("--ftds-toggle-height","","SIZE","20px")};var pf={borderRadius:n.extend("--ftds-card-border-radius","",l.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",l.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",l.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",l.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",l.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",l.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",l.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",l.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",l.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",l.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",l.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",l.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",l.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",l.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",l.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",l.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",l.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",l.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",l.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",l.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",l.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",l.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",l.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var ff={borderRadius:n.extend("--ftds-event-card-border-radius","",l.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",l.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",l.iconSize3),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",l.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",l.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var hf={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",l.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",l.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var mf={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",l.spacing2),offsetTop:n.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:n.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:n.extend("--ftds-toc-item-horizontal-padding","",l.spacing4),itemVerticalPadding:n.extend("--ftds-toc-item-vertical-padding","",l.spacing3),itemBorderRadius:n.extend("--ftds-toc-item-border-radius","",l.borderRadiusS),itemBorderWidth:n.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:n.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:n.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:n.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:n.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:n.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",l.opacity8),itemInactiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",l.opacity8),itemActiveLabelColor:n.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:n.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:n.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:n.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:n.extend("--ftds-toc-item-active-default-state-layer-opacity","",l.opacity8),itemActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-active-hover-state-layer-opacity","",l.opacity16),itemActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-active-focus-state-layer-opacity","",l.opacity16),itemChildActiveLabelColor:n.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:n.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:n.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",l.opacity8),itemChildActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",l.opacity8)};var gf={iconSize:n.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",l.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",l.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",l.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",l.spacing3)};var yf={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var bf={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var xf={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var vf={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var Sf={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",l.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",l.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",l.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",l.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",l.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",l.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",l.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",l.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Ef={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",l.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",l.spacing1)};var Cf={iconSize:n.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var Of={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var wf={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Af={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",l.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Rf={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var Tf={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var _f={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",l.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",l.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:n.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",l.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var If={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",l.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",l.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",l.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Lf={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:n.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var Pf={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",l.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",l.iconSize2)};var kf={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperVerticalGap:n.extend("--ftds-text-input-helper-vertical-gap","",l.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var Nf={fieldPaddingLeft:n.extend("--ftds-text-area-field-padding-left","",l.spacing4),fieldPaddingRight:n.extend("--ftds-text-area-field-padding-right","",l.spacing6),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:n.extend("--ftds-text-area-resize-bottom","",l.spacing05),resizeRight:n.extend("--ftds-text-area-resize-right","",l.spacing05)};var Mf={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",l.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",l.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",l.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",l.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",l.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",l.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",l.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",l.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",l.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",l.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",l.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",l.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",l.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",l.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",l.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",l.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",l.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",l.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",l.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",l.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",l.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",l.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",l.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",l.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",l.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",l.opacity24)};var Df={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",l.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",l.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",l.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",l.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",l.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",l.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",l.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",l.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",l.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Ff={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",l.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",l.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",l.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",l.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",l.spacing3)};var Uf={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Bf={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var $f={color1Light:n.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",l.colorBrand200)};var Hf={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Vf={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:n.extend("--ftds-notice-gap","",l.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var zf={iconSize:n.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",l.spacing8)};var Wf={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",l.spacing05)};var Gf={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var lo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(lo||(lo={}));var uo;(function(t){t.large="large",t.medium="medium",t.small="small"})(uo||(uo={}));function pa(t){return`ftds--family-${t}`}function fa(t){return`ftds--size-${t}`}var k={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:n.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:n.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:n.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:n.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:n.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:n.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:n.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:n.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:n.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ga={};U(ga,{DynamicImporter:()=>ln,dynamicImporter:()=>jf});var ln=class{async import(e){if(e)return import(e)}},jf=new ln;var Ta={};U(Ta,{computeOffsetAutoPosition:()=>gh,computeOffsetPosition:()=>yo});var Fl=["top","right","bottom","left"],Dl=["start","end"],ba=Fl.reduce((t,e)=>t.concat(e,e+"-"+Dl[0],e+"-"+Dl[1]),[]),Gt=Math.min,at=Math.max,po=Math.round;var st=t=>({x:t,y:t}),Kf={left:"right",right:"left",bottom:"top",top:"bottom"};function Ul(t,e,r){return at(t,Gt(e,r))}function _r(t,e){return typeof t=="function"?t(e):t}function jt(t){return t.split("-")[0]}function ct(t){return t.split("-")[1]}function xa(t){return t==="x"?"y":"x"}function va(t){return t==="y"?"height":"width"}function Ir(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Sa(t){return xa(Ir(t))}function Bl(t,e,r){r===void 0&&(r=!1);let o=ct(t),i=Sa(t),a=va(i),s=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ya(s)),[s,ya(s)]}function $l(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ya(t){let e=jt(t);return Kf[e]+t.slice(e.length)}function qf(t){var e,r,o,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(i=t.left)!=null?i:0}}function Hl(t){return typeof t!="number"?qf(t):{top:t,right:t,bottom:t,left:t}}function Kt(t){let{x:e,y:r,width:o,height:i}=t;return{width:o,height:i,top:r,left:e,right:e+o,bottom:r+i,x:e,y:r}}function Vl(t,e,r){let{reference:o,floating:i}=t,a=Ir(e),s=Sa(e),c=va(s),d=jt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2,x;switch(d){case"top":x={x:f,y:o.y-i.height};break;case"bottom":x={x:f,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:h};break;case"left":x={x:o.x-i.width,y:h};break;default:x={x:o.x,y:o.y}}let S=ct(e);return S&&(x[s]+=m*(S==="end"?1:-1)*(r&&p?-1:1)),x}async function zl(t,e){var r;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:c,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=_r(e,t),S=Hl(x),E=c[m?h==="floating"?"reference":"floating":h],R=Kt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:f,strategy:d})),P=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),y=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},v=Kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:b,strategy:d}):P);return{top:(R.top-v.top+S.top)/y.y,bottom:(v.bottom-R.bottom+S.bottom)/y.y,left:(R.left-v.left+S.left)/y.x,right:(v.right-R.right+S.right)/y.x}}var Zf=50,Wl=async(t,e,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:zl},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Vl(p,o,d),m=o,x=0,S={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:R,fn:P}=E,{x:b,y,data:v,reset:A}=await P({x:f,y:h,initialPlacement:o,placement:m,strategy:i,middlewareData:S,rects:p,platform:c,elements:{reference:t,floating:e}});f=b??f,h=y??h,S[R]={...S[R],...v},A&&x<Zf&&(x++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:f,y:h}=Vl(p,m,d)),w=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:S}};function Yf(t,e,r){return(t?[...r.filter(i=>ct(i)===t),...r.filter(i=>ct(i)!==t)]:r.filter(i=>jt(i)===i)).filter(i=>t?ct(i)===t||(e?$l(i)!==i:!1):!0)}var Gl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,i;let{rects:a,middlewareData:s,placement:c,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:m=ba,autoAlignment:x=!0,...S}=_r(t,e),w=h!==void 0||m===ba?Yf(h||null,x,m):m,E=((r=s.autoPlacement)==null?void 0:r.index)||0,R=w[E];if(R==null)return{};if(c!==R)return{reset:{placement:w[0]}};let P=await d.detectOverflow(e,S),b=Bl(R,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[P[jt(R)],P[b[0]],P[b[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:y}],A=w[E+1];if(A)return{data:{index:E+1,overflows:v},reset:{placement:A}};let M=v.map(L=>{let $=ct(L.placement);return[L.placement,$&&f?L.overflows.slice(0,2).reduce((ce,tt)=>ce+tt,0):L.overflows[0],L.overflows]}).sort((L,$)=>L[1]-$[1]),oe=((i=M.filter(L=>L[2].slice(0,ct(L[0])?2:3).every($=>$<=0))[0])==null?void 0:i[0])||M[0][0];return oe!==c?{data:{index:E+1,overflows:v},reset:{placement:oe}}:{}}}};var Qf=new Set(["left","top"]);async function Xf(t,e){let{placement:r,platform:o,elements:i}=t,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=jt(r),c=ct(r),d=Ir(r)==="y",p=Qf.has(s)?-1:1,f=a&&d?-1:1,h=_r(e,t),{mainAxis:m,crossAxis:x,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof S=="number"&&(x=c==="end"?S*-1:S),d?{x:x*f,y:m*p}:{x:m*p,y:x*f}}var jl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:i,y:a,placement:s,middlewareData:c}=e,d=await Xf(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},Kl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:P=>{let{x:b,y}=P;return{x:b,y}}},...p}=_r(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=Ir(i),x=xa(m),S=f[x],w=f[m],E=(P,b)=>Ul(b+h[P==="y"?"top":"left"],b,b-h[P==="y"?"bottom":"right"]);s&&(S=E(x,S)),c&&(w=E(m,w));let R=d.fn({...e,[x]:S,[m]:w});return{...R,data:{x:R.x-r,y:R.y-o,enabled:{[x]:s,[m]:c}}}}}};var ql=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...c}=_r(t,e),d=await i.detectOverflow(e,c),p=jt(r),f=ct(r),h=Ir(r)==="y",{width:m,height:x}=o.floating,S,w;p==="top"||p==="bottom"?(S=p,w=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,S=f==="end"?"top":"bottom");let E=x-d.top-d.bottom,R=m-d.left-d.right,P=Gt(x-d[S],E),b=Gt(m-d[w],R),y=e.middlewareData.shift,v=!y,A=P,M=b;y!=null&&y.enabled.x&&(M=R),y!=null&&y.enabled.y&&(A=E),v&&!f&&(h?M=m-2*at(d.left,d.right):A=x-2*at(d.top,d.bottom)),await s({...e,availableWidth:M,availableHeight:A});let V=await i.getDimensions(a.floating);return m!==V.width||x!==V.height?{reset:{rects:!0}}:{}}}};function un(){return typeof window<"u"}function Zt(t){return Yl(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yt(t){var e;return(e=(Yl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yl(t){return un()?t instanceof Node||t instanceof Re(t).Node:!1}function qe(t){return un()?t instanceof Element||t instanceof Re(t).Element:!1}function bt(t){return un()?t instanceof HTMLElement||t instanceof Re(t).HTMLElement:!1}function Zl(t){return!un()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function fo(t){let{overflow:e,overflowX:r,overflowY:o,display:i}=Ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&i!=="inline"&&i!=="contents"}function Ql(t){return/^(table|td|th)$/.test(Zt(t))}function ho(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Jf=/transform|translate|scale|rotate|perspective|filter/,eh=/paint|layout|strict|content/,qt=t=>!!t&&t!=="none",Ea;function Lr(t){let e=qe(t)?Ze(t):t;return qt(e.transform)||qt(e.translate)||qt(e.scale)||qt(e.rotate)||qt(e.perspective)||!pn()&&(qt(e.backdropFilter)||qt(e.filter))||Jf.test(e.willChange||"")||eh.test(e.contain||"")}function Xl(t){let e=It(t);for(;bt(e)&&!Pr(e);){if(Lr(e))return e;if(ho(e))return null;e=It(e)}return null}function pn(){return Ea==null&&(Ea=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ea}function Pr(t){return/^(html|body|#document)$/.test(Zt(t))}function Ze(t){return Re(t).getComputedStyle(t)}function mo(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function It(t){if(Zt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zl(t)&&t.host||yt(t);return Zl(e)?e.host:e}function Jl(t){let e=It(t);return Pr(e)?(t.ownerDocument||t).body:bt(e)&&fo(e)?e:Jl(e)}function dn(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Jl(t),a=i===((o=t.ownerDocument)==null?void 0:o.body),s=Re(i);if(a){let c=fn(s);return e.concat(s,s.visualViewport||[],fo(i)?i:[],c&&r?dn(c):[])}else return e.concat(i,dn(i,[],r))}function fn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rd(t){let e=Ze(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=bt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:o,c=po(r)!==a||po(o)!==s;return c&&(r=a,o=s),{width:r,height:o,$:c}}function od(t){return qe(t)?t:t.contextElement}function kr(t){let e=od(t);if(!bt(e))return st(1);let r=e.getBoundingClientRect(),{width:o,height:i,$:a}=rd(e),s=(a?po(r.width):r.width)/o,c=(a?po(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var th=st(0);function nd(t){let e=Re(t);return!pn()||!e.visualViewport?th:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function rh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Re(t)}function go(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=od(t),s=st(1);e&&(o?qe(o)&&(s=kr(o)):s=kr(t));let c=rh(a,r,o)?nd(a):st(0),d=(i.left+c.x)/s.x,p=(i.top+c.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let m=Re(a),x=qe(o)?Re(o):o,S=m,w=fn(S);for(;w&&x!==S;){let E=kr(w),R=w.getBoundingClientRect(),P=Ze(w),b=R.left+(w.clientLeft+parseFloat(P.paddingLeft))*E.x,y=R.top+(w.clientTop+parseFloat(P.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=b,p+=y,S=Re(w),w=fn(S)}}return Kt({width:f,height:h,x:d,y:p})}function hn(t,e){let r=mo(t).scrollLeft;return e?e.left+r:go(yt(t)).left+r}function id(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-hn(t,r),i=r.top+e.scrollTop;return{x:o,y:i}}function oh(t){let{elements:e,rect:r,offsetParent:o,strategy:i}=t,a=i==="fixed",s=yt(o),c=e?ho(e.floating):!1;if(o===s||c&&a)return r;let d={scrollLeft:0,scrollTop:0},p=st(1),f=st(0),h=bt(o);if((h||!a)&&((Zt(o)!=="body"||fo(s))&&(d=mo(o)),h)){let x=go(o);p=kr(o),f.x=x.x+o.clientLeft,f.y=x.y+o.clientTop}let m=s&&!h&&!a?id(s,d):st(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+f.x+m.x,y:r.y*p.y-d.scrollTop*p.y+f.y+m.y}}function nh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function ih(t){let e=mo(t),r=t.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+hn(t),s=-e.scrollTop;return Ze(r).direction==="rtl"&&(a+=at(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}var ah=25;function sh(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",i=Re(t),a=yt(t),s=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let m=!pn()||e==="fixed";o?m||(p=-s.offsetLeft,f=-s.offsetTop):(c=s.width,d=s.height,m&&(p=s.offsetLeft,f=s.offsetTop))}if(hn(a)<=0){let m=a.ownerDocument,x=m.body,S=getComputedStyle(x),w=m.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,E=Math.abs(a.clientWidth-x.clientWidth-w),R=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;R<=ah&&(c-=R)}return{width:c,height:d,x:p,y:f}}function ch(t,e){let r=go(t,!0,e==="fixed"),o=r.top+t.clientTop,i=r.left+t.clientLeft,a=kr(t),s=t.clientWidth*a.x,c=t.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:c,x:d,y:p}}function ed(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=sh(t,r,e);else if(e==="document")o=ih(yt(t));else if(qe(e))o=ch(e,r);else{let i=nd(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Kt(o)}function lh(t,e){let r=e.get(t);if(r)return r;let o=dn(t,[],!1).filter(c=>qe(c)&&Zt(c)!=="body"),i=null,a=Ze(t).position==="fixed",s=a?It(t):t;for(;qe(s)&&!Pr(s);){let c=Ze(s),d=Lr(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&c.position==="static")?o=o.filter(h=>h!==s):i=c,s=It(s)}return e.set(t,o),o}function dh(t){let{element:e,boundary:r,rootBoundary:o,strategy:i}=t,s=[...r==="clippingAncestors"?ho(e)?[]:lh(e,this._c):[].concat(r),o],c=ed(e,s[0],i),d=c.top,p=c.right,f=c.bottom,h=c.left;for(let m=1;m<s.length;m++){let x=ed(e,s[m],i);d=at(x.top,d),p=Gt(x.right,p),f=Gt(x.bottom,f),h=at(x.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function uh(t){let{width:e,height:r}=rd(t);return{width:e,height:r}}function ph(t,e,r){let o=bt(e),i=yt(e),a=r==="fixed",s=go(t,!0,a,e),c={scrollLeft:0,scrollTop:0},d=st(0);if((o||!a)&&((Zt(e)!=="body"||fo(i))&&(c=mo(e)),o)){let m=go(e,!0,a,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!o&&i&&(d.x=hn(i));let p=i&&!o&&!a?id(i,c):st(0),f=s.left+c.scrollLeft-d.x-p.x,h=s.top+c.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function Ca(t){return Ze(t).position==="static"}function td(t,e){if(!bt(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return yt(t)===r&&(r=r.ownerDocument.body),r}function ad(t,e){let r=Re(t);if(ho(t))return r;if(!bt(t)){let i=It(t);for(;i&&!Pr(i);){if(qe(i)&&!Ca(i))return i;i=It(i)}return r}let o=td(t,e);for(;o&&Ql(o)&&Ca(o);)o=td(o,e);return o&&Pr(o)&&Ca(o)&&!Lr(o)?r:o||Xl(t)||r}var fh=async function(t){let e=this.getOffsetParent||ad,r=this.getDimensions,o=await r(t.floating);return{reference:ph(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hh(t){return Ze(t).direction==="rtl"}var Nr={convertOffsetParentRelativeRectToViewportRelativeRect:oh,getDocumentElement:yt,getClippingRect:dh,getOffsetParent:ad,getElementRects:fh,getClientRects:nh,getDimensions:uh,getScale:kr,isElement:qe,isRTL:hh};var sd=jl,Oa=Gl,cd=Kl;var ld=ql;var wa=(t,e,r)=>{let o=new Map,i=r??{},a={...Nr,...i.platform,_c:o};return Wl(t,e,{...i,platform:a})};function Ra(t){return mh(t)}function Aa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function mh(t){for(let e=t;e;e=Aa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Aa(t);e;e=Aa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Lr(r)||e.tagName==="BODY"))return e}return null}async function yo(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},wa(t,e,{strategy:o.strategy,platform:{...Nr,getOffsetParent:i=>Nr.getOffsetParent(i,Ra)},middleware:[cd({crossAxis:!0}),Oa({allowedPlacements:[o.placement]})]})}async function gh(t,e,r,o,i,a,s){let c,d;return typeof r=="object"?(c=r.placement,o=r.allowedPlacements,i=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):c=r,wa(t,e,{placement:c,strategy:i,platform:{...Nr,getOffsetParent:p=>Nr.getOffsetParent(p,Ra)},middleware:[sd(s??4),Oa({allowedPlacements:o}),ld({apply({availableHeight:p,availableWidth:f,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var _a={};U(_a,{isSlotEmptyOrWithoutContent:()=>yh});var yh=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Ma={};U(Ma,{FtdsBase:()=>Na,toFtdsBase:()=>gd});var ka={};U(ka,{ExportpartsUpdatedEvent:()=>Yt,FtLitElement:()=>H});var Ia={};U(Ia,{ScopedRegistryLitElement:()=>bo});var bo=class extends ht{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Yr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){oo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Pa={};U(Pa,{shadowQuerySelector:()=>La,shadowQuerySelectorAll:()=>bh});function La(t,e,...r){var o;let i=t.querySelector(e);for(let a of r)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function bh(t,e,...r){let o=[...t.querySelectorAll(e)];for(let i of r)o=o.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return o}var Mr=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},fd,dd=Symbol("constructorPrototype"),ud=Symbol("constructorName"),hd=Symbol("exportpartsDebouncer"),pd=Symbol("dynamicDependenciesLoaded"),Yt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yt.eventName="exportparts-updated";var H=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[fd]=new te(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[hd].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)})},this[ud]=this.constructor.name,this[dd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ud]&&Object.setPrototypeOf(this,this[dd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[pd]||(r[pd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Yt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Yt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];r=La(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,i;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((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)}}setExportpartsAttribute(e){var r,o,i,a,s,c;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let x=(s=(o=m.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],S=(c=(i=m.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&c!==void 0?c:[],w=[...x,...S].filter(d).map(E=>E.trim());for(let E of w)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};fd=hd;Mr([g()],H.prototype,"exportpartsPrefix",void 0);Mr([de([])],H.prototype,"exportpartsPrefixes",void 0);Mr([g({reflect:!0})],H.prototype,"exportparts",void 0);Mr([g()],H.prototype,"customStylesheet",void 0);Mr([g()],H.prototype,"elementToFocus",void 0);Mr([F()],H.prototype,"useAdoptedStyleSheets",void 0);var md=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},gd=ae(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=uo.medium,this.family=lo.neutral}getDesignSystemBaseClasses(){return{[pa(this.family)]:!0,[fa(this.size)]:!0}}}return md([g()],e.prototype,"size",void 0),md([g()],e.prototype,"family",void 0),e}),Na=class extends gd(H){};var yd={};var Ua={};U(Ua,{highlightHtml:()=>Fa,highlightHtmlColorCssVariable:()=>bd,highlightHtmlStyles:()=>vh});var Qt=class t{constructor(e,r=!0,o=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=i}static matches(e,r){let o=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!i&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&r(i)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||r()})},i=>{i||r()})}forEachIframe(e,r,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(c)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{r(p)&&(c++,o(f)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(o),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,i){let a=!1,s=!1;return i.forEach((c,d)=>{c.val===o&&(a=d,s=c.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,i)})})}iterateThroughNodes(e,r,o,i,a){let s=this.createIterator(r,e,i),c=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,f,m,c),m=>{this.createInstanceOnIframe(m).forEachNode(e,x=>d.push(x),i)}),d.push(p);d.forEach(m=>{o(m)}),this.iframes&&this.handleOpenIframes(c,e,o,i),a()}forEachNode(e,r,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let d=()=>{this.iterateThroughNodes(e,c,r,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,d):d()})}};var xo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Qt(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,i)=>i.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,o);c&&(i.start=a,i.length=s-a,r.push(i),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,r,o){let i,a=!0,s=o.length,c=r-s,d=parseInt(e.start,10)-c;return d=d>s?s:d,i=d+parseInt(e.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(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Qt.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,r,o,i,a){e.nodes.every((s,c)=>{let d=e.nodes[c+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),m=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+m,e.nodes.forEach((x,S)=>{S>=c&&(e.nodes[S].start>0&&S!==c&&(e.nodes[S].start-=f),e.nodes[S].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{c.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{let d;for(;(d=e.exec(c.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(c,p,f,h=>o(d[s],h),(h,m)=>{e.lastIndex=m,i(h)})}a()})}wrapRangeFromIndex(e,r,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(c,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,m=>r(m,c,a.value.substring(p,f),d),m=>{o(m,c)})}),i()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${c}`),h=0;this.log(`Searching with expression "${f}"`),this[i](f,1,(m,x)=>this.opt.filter(x,p,o,h),m=>{h++,o++,this.opt.each(m)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,d)=>this.opt.filter(a,s,c,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Qt.matches(o,r),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Da(t){let e=new xo(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var xh=Da,bd=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),vh=T`
|
|
1
|
+
"use strict";(()=>{var Op=Object.defineProperty;var U=(t,e)=>{for(var r in e)Op(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(b,y){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let x=y.prototype.attributeChangedCallback,A=new Set(y.observedAttributes||[]);m(y,A,x);let M={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:x,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:A};this._definitionsByTag.set(b,M),this._definitionsByClass.set(y,M);let V=r.call(o,b);V||(V=h(b),e.call(o,b,V)),this===window.customElements&&(s.set(y,M),M.standInClass=V);let ne=this._awaitingUpgrade.get(b);if(ne){this._awaitingUpgrade.delete(b);for(let $ of ne)a.delete($),S($,M,!0)}let L=this._whenDefinedPromises.get(b);return L!==void 0&&(L.resolve(y),this._whenDefinedPromises.delete(b)),y}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let y=this._getDefinition(b);if(y!==void 0)return Promise.resolve(y.elementClass);let x=this._whenDefinedPromises.get(b);return x===void 0&&(x={},x.promise=new Promise(A=>x.resolve=A),this._whenDefinedPromises.set(b,x)),x.promise}_upgradeWhenDefined(b,y,x){let A=this._awaitingUpgrade.get(y);A||this._awaitingUpgrade.set(y,A=new Set),x?A.add(b):A.delete(b)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let x=s.get(this.constructor);if(!x)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],x.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,x),y},window.HTMLElement.prototype=t.prototype;let p=b=>b===document||b instanceof ShadowRoot,f=b=>{let y=b.getRootNode();if(!p(y)){let x=E[E.length-1];if(x instanceof CustomElementRegistry)return x;y=x.getRootNode(),p(y)||(y=c.get(y)?.getRootNode()||document)}return y.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let x=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(x,HTMLElement.prototype);let A=f(x)||window.customElements,M=A._getDefinition(b);return M?S(x,M):a.set(x,A),x}connectedCallback(){let x=i.get(this);x?x.connectedCallback&&x.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let x=i.get(this);x?x.disconnectedCallback&&x.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let x=i.get(this);x&&x.formAssociated&&x?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let x=i.get(this);x?.formAssociated&&x?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let x=i.get(this);x?.formAssociated&&x?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let x=i.get(this);x?.formAssociated&&x?.formStateRestoreCallback?.apply(this,arguments)}},m=(b,y,x)=>{if(y.size===0||x===void 0)return;let A=b.prototype.setAttribute;A&&(b.prototype.setAttribute=function(ne,L){let $=ne.toLowerCase();if(y.has($)){let ce=this.getAttribute($);A.call(this,$,L),x.call(this,$,ce,L)}else A.call(this,$,L)});let M=b.prototype.removeAttribute;M&&(b.prototype.removeAttribute=function(ne){let L=ne.toLowerCase();if(y.has(L)){let $=this.getAttribute(L);M.call(this,L),x.call(this,L,$,null)}else M.call(this,L)});let V=b.prototype.toggleAttribute;V&&(b.prototype.toggleAttribute=function(ne,L){let $=ne.toLowerCase();if(y.has($)){let ce=this.getAttribute($);V.call(this,$,L);let rt=this.getAttribute($);x.call(this,$,ce,rt)}else V.call(this,$,L)})},v=b=>{let y=Object.getPrototypeOf(b);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(b,window.HTMLElement):v(y)},S=(b,y,x=!1)=>{Object.setPrototypeOf(b,y.elementClass.prototype),i.set(b,y),d=b;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(A=>{b.hasAttribute(A)&&y.attributeChangedCallback.call(b,A,null,b.getAttribute(A))}),x&&y.connectedCallback&&b.isConnected&&y.connectedCallback.call(b)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let y=w.apply(this,arguments);return b.customElements&&(y.customElements=b.customElements),y};let E=[document],R=(b,y,x=void 0)=>{let A=(x?Object.getPrototypeOf(x):b.prototype)[y];b.prototype[y]=function(){E.push(this);let M=A.apply(x||this,arguments);return M!==void 0&&c.set(M,this),E.pop(),M}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");let k=(b,y)=>{let x=Object.getOwnPropertyDescriptor(b.prototype,y);Object.defineProperty(b.prototype,y,{...x,set(A){E.push(this),x.set.call(this,A),E.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,y=HTMLElement.prototype.attachInternals,x=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ne){let L=y.call(this,...ne);return b.set(L,this),L},x.forEach(ne=>{let L=window.ElementInternals.prototype,$=L[ne];L[ne]=function(...ce){let rt=b.get(this);if(i.get(rt).formAssociated===!0)return $?.call(this,...ce);throw new DOMException(`Failed to execute ${$} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class A extends Array{constructor(L){super(...L),this._elements=L}get value(){return this._elements.find(L=>L.checked===!0)?.value||""}}class M{constructor(L){let $=new Map;L.forEach((ce,rt)=>{let Ai=ce.getAttribute("name"),dc=$.get(Ai)||[];this[+rt]=ce,dc.push(ce),$.set(Ai,dc)}),this.length=L.length,$.forEach((ce,rt)=>{ce&&(ce.length===1?this[rt]=ce[0]:this[rt]=new A(ce))})}namedItem(L){return this[L]}}let V=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ne=V.get.call(this,[]),L=[];for(let $ of ne){let ce=i.get($);(!ce||ce.formAssociated===!0)&&L.push($)}return new M(L)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},i):console.info(r,o,i,s)}}}var Bi={};U(Bi,{CSSResult:()=>Sr,LitElement:()=>mt,ReactiveElement:()=>Be,_$LE:()=>Dp,_$LH:()=>Di,adoptStyles:()=>Xr,css:()=>T,defaultConverter:()=>Er,getCompatibleStyle:()=>jo,html:()=>I,isServer:()=>mg,mathml:()=>Mi,noChange:()=>le,notEqual:()=>eo,nothing:()=>D,render:()=>Fi,supportsAdoptingStyleSheets:()=>Qr,svg:()=>Ni,unsafeCSS:()=>Ft});var Go=globalThis,Qr=Go.ShadowRoot&&(Go.ShadyCSS===void 0||Go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ri=Symbol(),uc=new WeakMap,Sr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ri)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Qr&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=uc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&uc.set(r,e))}return e}toString(){return this.cssText}},Ft=t=>new Sr(typeof t=="string"?t:t+"",void 0,Ri),T=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[a+1],t[0]);return new Sr(r,t,Ri)},Xr=(t,e)=>{if(Qr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),i=Go.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}},jo=Qr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Ft(r)})(t):t;var{is:wp,defineProperty:Ap,getOwnPropertyDescriptor:Rp,getOwnPropertyNames:Tp,getOwnPropertySymbols:_p,getPrototypeOf:Ip}=Object,Ko=globalThis,pc=Ko.trustedTypes,Lp=pc?pc.emptyScript:"",kp=Ko.reactiveElementPolyfillSupport,Jr=(t,e)=>t,Er={toAttribute(t,e){switch(e){case Boolean:t=t?Lp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},eo=(t,e)=>!wp(t,e),fc={attribute:!0,type:String,converter:Er,reflect:!1,useDefault:!1,hasChanged:eo};Symbol.metadata??=Symbol("metadata"),Ko.litPropertyMetadata??=new WeakMap;var Be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=fc){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Ap(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){let{get:i,set:a}=Rp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let c=i?.call(this);a?.call(this,s),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fc}static _$Ei(){if(this.hasOwnProperty(Jr("elementProperties")))return;let e=Ip(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jr("properties"))){let r=this.properties,o=[...Tp(r),..._p(r)];for(let i of o)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,i]of r)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let i=this._$Eu(r,o);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)r.unshift(jo(i))}else e!==void 0&&r.push(jo(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Er).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Er;this._$Em=i;let c=s.fromAttribute(r,a.type);this[i]=c??this._$Ej?.get(i)??c,this._$Em=null}}requestUpdate(e,r,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??eo)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,c=this[i];s!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,a,c)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Be.elementStyles=[],Be.shadowRootOptions={mode:"open"},Be[Jr("elementProperties")]=new Map,Be[Jr("finalized")]=new Map,kp?.({ReactiveElement:Be}),(Ko.reactiveElementVersions??=[]).push("2.1.2");var _i=globalThis,hc=t=>t,qo=_i.trustedTypes,mc=qo?qo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ii="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Li="?"+ht,Pp=`<${Li}>`,$t=document,ro=()=>$t.createComment(""),oo=t=>t===null||typeof t!="object"&&typeof t!="function",ki=Array.isArray,Sc=t=>ki(t)||typeof t?.[Symbol.iterator]=="function",Ti=`[
|
|
2
|
+
\f\r]`,to=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gc=/-->/g,yc=/>/g,Ut=RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),bc=/'/g,vc=/"/g,Ec=/^(?:script|style|textarea|title)$/i,Pi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),I=Pi(1),Ni=Pi(2),Mi=Pi(3),le=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),xc=new WeakMap,Bt=$t.createTreeWalker($t,129);function Cc(t,e){if(!ki(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return mc!==void 0?mc.createHTML(e):e}var Oc=(t,e)=>{let r=t.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=to;for(let c=0;c<r;c++){let d=t[c],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===to?f[1]==="!--"?s=gc:f[1]!==void 0?s=yc:f[2]!==void 0?(Ec.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=Ut):f[3]!==void 0&&(s=Ut):s===Ut?f[0]===">"?(s=i??to,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Ut:f[3]==='"'?vc:bc):s===vc||s===bc?s=Ut:s===gc||s===yc?s=to:(s=Ut,i=void 0);let v=s===Ut&&t[c+1].startsWith("/>")?" ":"";a+=s===to?d+Pp:h>=0?(o.push(p),d.slice(0,h)+Ii+d.slice(h)+ht+v):d+ht+(h===-2?c:v)}return[Cc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},no=class t{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,d=this.parts,[p,f]=Oc(e,r);if(this.el=t.createElement(p,o),Bt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Bt.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Ii)){let m=f[s++],v=i.getAttribute(h).split(ht),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?Yo:S[1]==="?"?Qo:S[1]==="@"?Xo:Vt}),i.removeAttribute(h)}else h.startsWith(ht)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(Ec.test(i.tagName)){let h=i.textContent.split(ht),m=h.length-1;if(m>0){i.textContent=qo?qo.emptyScript:"";for(let v=0;v<m;v++)i.append(h[v],ro()),Bt.nextNode(),d.push({type:2,index:++a});i.append(h[m],ro())}}}else if(i.nodeType===8)if(i.data===Li)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(ht,h+1))!==-1;)d.push({type:7,index:a}),h+=ht.length-1}a++}}static createElement(e,r){let o=$t.createElement("template");return o.innerHTML=e,o}};function Ht(t,e,r=t,o){if(e===le)return e;let i=o!==void 0?r._$Co?.[o]:r._$Cl,a=oo(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=i:r._$Cl=i),i!==void 0&&(e=Ht(t,i._$AS(t,e.values),i,o)),e}var Zo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,i=(e?.creationScope??$t).importNode(r,!0);Bt.currentNode=i;let a=Bt.nextNode(),s=0,c=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Cr(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Jo(a,this,e)),this._$AV.push(p),d=o[++c]}s!==d?.index&&(a=Bt.nextNode(),s++)}return Bt.currentNode=$t,i}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Cr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ht(this,e,r),oo(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==D&&oo(this._$AH)?this._$AA.nextSibling.data=e:this.T($t.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=no.createElement(Cc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Zo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=xc.get(e.strings);return r===void 0&&xc.set(e.strings,r=new no(e)),r}k(e){ki(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,i=0;for(let a of e)i===r.length?r.push(o=new t(this.O(ro()),this.O(ro()),this,this.options)):o=r[i],o._$AI(a),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=hc(e).nextSibling;hc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,r=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Ht(this,e,r,0),s=!oo(e)||e!==this._$AH&&e!==le,s&&(this._$AH=e);else{let c=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=Ht(this,c[o+d],r,d),p===le&&(p=this._$AH[d]),s||=!oo(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Yo=class extends Vt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},Qo=class extends Vt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},Xo=class extends Vt{constructor(e,r,o,i,a){super(e,r,o,i,a),this.type=5}_$AI(e,r=this){if((e=Ht(this,e,r,0)??D)===le)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Jo=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ht(this,e)}},Di={M:Ii,P:ht,A:Li,C:1,L:Oc,R:Zo,D:Sc,V:Ht,I:Cr,H:Vt,N:Qo,U:Xo,B:Yo,F:Jo},Np=_i.litHtmlPolyfillSupport;Np?.(no,Cr),(_i.litHtmlVersions??=[]).push("3.3.3");var Fi=(t,e,r)=>{let o=r?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=r?.renderBefore??null;o._$litPart$=i=new Cr(e.insertBefore(ro(),a),a,void 0,r??{})}return i._$AI(t),i};var Ui=globalThis,mt=class extends Be{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Fi(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return le}};mt._$litElement$=!0,mt.finalized=!0,Ui.litElementHydrateSupport?.({LitElement:mt});var Mp=Ui.litElementPolyfillSupport;Mp?.({LitElement:mt});var Dp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Ui.litElementVersions??=[]).push("4.2.2");var mg=!1;var Vi={};U(Vi,{customElement:()=>Fp,eventOptions:()=>Bp,property:()=>g,query:()=>ee,queryAll:()=>Hp,queryAssignedElements:()=>$i,queryAssignedNodes:()=>Hi,queryAsync:()=>Vp,standardProperty:()=>wc,state:()=>F});var Fp=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Up={attribute:!0,type:String,converter:Er,reflect:!1,hasChanged:eo},wc=(t=Up,e,r)=>{let{kind:o,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(c){let d=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,d,t,!0,c)},init(c){return c!==void 0&&this.C(s,void 0,t,c),c}}}if(o==="setter"){let{name:s}=r;return function(c){let d=this[s];e.call(this,c),this.requestUpdate(s,d,t,!0,c)}}throw Error("Unsupported decorator location: "+o)};function g(t){return(e,r)=>typeof r=="object"?wc(t,e,r):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function F(t){return g({...t,state:!0,attribute:!1})}function Bp(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var je=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function ee(t,e){return(r,o,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:c}=typeof o=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return je(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return je(r,o,{get(){return a(this)}})}}var $p;function Hp(t){return(e,r)=>je(e,r,{get(){return(this.renderRoot??($p??=document.createDocumentFragment())).querySelectorAll(t)}})}function Vp(t){return(e,r)=>je(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function $i(t){return(e,r)=>{let{slot:o,selector:i}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return je(e,r,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(t)??[];return i===void 0?c:c.filter(d=>d.matches(i))}})}}function Hi(t){return(e,r)=>{let{slot:o}=t??{},i="slot"+(o?`[name=${o}]`:":not([name])");return je(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var zi={};U(zi,{repeat:()=>wr});var ot={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=t=>(...e)=>({_$litDirective$:t,values:e}),$e=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:zp}=Di,Ac=t=>t;var Tc=t=>t.strings===void 0,Rc=()=>document.createComment(""),Or=(t,e,r)=>{let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(Rc(),i),s=o.insertBefore(Rc(),i);r=new zp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,c=s!==t;if(c){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||c){let d=r._$AA;for(;d!==a;){let p=Ac(d).nextSibling;Ac(o).insertBefore(d,i),d=p}}}return r},Ot=(t,e,r=t)=>(t._$AI(e,r),t),Wp={},_c=(t,e=Wp)=>t._$AH=e,Ic=t=>t._$AH,en=t=>{t._$AR(),t._$AA.remove()};var Lc=(t,e,r)=>{let o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},wr=Ie(class extends $e{constructor(t){if(super(t),t.type!==ot.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let c of t)i[s]=o?o(c,s):s,a[s]=r(c,s),s++;return{values:a,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let i=Ic(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(i))return this.ut=s,a;let c=this.ut??=[],d=[],p,f,h=0,m=i.length-1,v=0,S=a.length-1;for(;h<=m&&v<=S;)if(i[h]===null)h++;else if(i[m]===null)m--;else if(c[h]===s[v])d[v]=Ot(i[h],a[v]),h++,v++;else if(c[m]===s[S])d[S]=Ot(i[m],a[S]),m--,S--;else if(c[h]===s[S])d[S]=Ot(i[h],a[S]),Or(t,d[S+1],i[h]),h++,S--;else if(c[m]===s[v])d[v]=Ot(i[m],a[v]),Or(t,i[h],i[m]),m--,v++;else if(p===void 0&&(p=Lc(s,v,S),f=Lc(c,h,m)),p.has(c[h]))if(p.has(c[m])){let w=f.get(s[v]),E=w!==void 0?i[w]:null;if(E===null){let R=Or(t,i[h]);Ot(R,a[v]),d[v]=R}else d[v]=Ot(E,a[v]),Or(t,i[h],E),i[w]=null;v++}else en(i[m]),m--;else en(i[h]),h++;for(;v<=S;){let w=Or(t,d[S+1]);Ot(w,a[v]),d[v++]=w}for(;h<=m;){let w=i[h++];w!==null&&en(w)}return this.ut=s,_c(t,d),le}});var Wi={};U(Wi,{classMap:()=>Le});var Le=Ie(class extends $e{constructor(t){if(super(t),t.type!==ot.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return le}});var Gi={};U(Gi,{styleMap:()=>jp});var kc="important",Gp=" !"+kc,jp=Ie(class extends $e{constructor(t){if(super(t),t.type!==ot.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(Gp);o.includes("-")||a?r.setProperty(o,a?i.slice(0,-11):i,a?kc:""):r[o]=i}}return le}});var Ki={};U(Ki,{UnsafeHTMLDirective:()=>Ar,unsafeHTML:()=>ji});var Ar=class extends $e{constructor(e){if(super(e),this.it=D,e.type!==ot.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ar.directiveName="unsafeHTML",Ar.resultType=1;var ji=Ie(Ar);var qi={};U(qi,{splitBreadcrumbForMenu:()=>Kp});function Kp(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(r,1),i=t.slice(o*-1);return e+o>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-i.length),afterMenu:i}}var na={};U(na,{CacheRegistry:()=>it,ClearCacheEvent:()=>lo});var Zi={};U(Zi,{CancelablePromise:()=>tn,CanceledPromiseError:()=>ke,cancelable:()=>Rr});var ke=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},tn=class extends Promise{constructor(e){super((r,o)=>e(i=>{this.isCanceled?o(new ke("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?o(new ke("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Rr=t=>new tn((e,r)=>t.then(e).catch(r));var oa={};U(oa,{FtContextRegistrationEvent:()=>zt,FtNotificationEvent:()=>co,PostResizeEvent:()=>ra,PreResizeEvent:()=>ta,WithEventBus:()=>yt,withEventBus:()=>an});var ea={};U(ea,{AbstractRegistry:()=>Tr,applyMixinOnce:()=>ae,customElements:()=>q,dateReviver:()=>Qp,deepCopy:()=>Pe,deepEqual:()=>he,delay:()=>on,eventPathContainsMatchingElement:()=>so,everyDeep:()=>Yp,flatDeep:()=>Nc,forEachDeep:()=>Mc,getComposedPathTo:()=>wt,groupBy:()=>ef,hasChanged:()=>He,ignoreComposingEvents:()=>Ji,last:()=>Jp,minmax:()=>gt,parseDate:()=>Fc,randomId:()=>Xi,someDeep:()=>Dc,unslotText:()=>nn,waitFor:()=>ao,waitUntil:()=>Qi});var Yi={};U(Yi,{customElement:()=>io,dateProperty:()=>Zp,isNumber:()=>Pc,jsonProperty:()=>de,jsonPropertyConverter:()=>rn,numberProperty:()=>nt,optionalNumberProperty:()=>qp});var io=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},rn=t=>({fromAttribute:e=>{if(e==null)return Pe(t);try{return JSON.parse(e)}catch{return Pe(t)}},toAttribute:e=>JSON.stringify(e)});function de(t,e){return g({type:Object,converter:rn(t),hasChanged:He,...e??{}})}function qp(t){return nt(t)}function nt(t){return g({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let i=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Pc(e)?gt(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Pc(t){return!isNaN(parseFloat(t))}function Zp(t){return g({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var on=t=>new Promise(e=>setTimeout(e,t));async function Qi(t,e=10,r=2e4){await ao(async()=>await t()||void 0,e,r)}async function ao(t,e=10,r=2e4){let o=await t(),i=performance.now(),a=i;for(;o==null&&(!r||a-i<r);)await on(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Nc(t,e){return t.flatMap(r=>[r,...Nc(e(r),e)])}function Mc(t,e,r){let o=(i,a)=>{var s;for(let c=0;c<i.length;c++){let d=i[c];if(!(((s=r(d,c,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Dc(t,e,r){let o=!1;return Mc(t,e,(i,a,s,c)=>(o=!!r(i,a,s,c),!o)),o}function Yp(t,e,r){return!Dc(t,e,(o,i,a,s)=>!r(o,i,a,s))}function Qp(...t){return(e,r)=>t.includes(e)?Fc(r):r}function Fc(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,i)=>r+o+":"+i),new Date(t)}function Xp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!he(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!he(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null),a=i(t);if(r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!he(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return Xp(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function so(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let i of o){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function gt(t,e,r){return Math.min(Math.max(t,e),r)}function Jp(t){return t[t.length-1]}function nn(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>nn(e)).join(""):t?.textContent||""}function wt(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function Pe(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Xi(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ae(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let i=e(o);return i[t]=!0,i}}function Ji(){return function(t,e,r){let o=r.value;r.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function q(t){for(let[e,r]of Object.entries(t))io(e)(r)}function ef(t,e){var r,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[o=i(s)])!==null&&r!==void 0?r:a[o]=[]).push(s);return a}var Tr=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var co=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ta=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ra=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},an=ae(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,i){this.eventBus.addEventListener(r,o,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,i){this.eventBus.removeEventListener(r,o,i)}}}),yt=class extends an(Object){},zt=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var lo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},it=class extends yt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new lo(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new lo([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,i;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let i=async()=>r,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let i=this.content[e];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=Rr(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var da={};U(da,{ClusteringHelper:()=>_t,formatHierarchicalValues:()=>la});var ca={};U(ca,{accessBreadcrumb:()=>lf,accessResult:()=>Tt,accessResultId:()=>cf,accessResultUrl:()=>uo,enrichReaderUrl:()=>sa});var aa={};U(aa,{SearchPlaceConverter:()=>Ke,SearchPlaceQueryParams:()=>P,isSearchPlaceQueryParams:()=>Sl,serializeRequest:()=>af});var tf=t=>typeof t=="object"&&t!=null;var rf=t=>typeof t=="number",sn=t=>typeof t=="string",ia=t=>tf(t)&&sn(t.endpoint)&&sn(t.method)&&sn(t.statusText)&&sn(t.body)&&rf(t.status),Uc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Uc||(Uc={}));var Bc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Bc||(Bc={}));var $c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})($c||($c={}));var At;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(At||(At={}));var Hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Hc||(Hc={}));var Vc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Vc||(Vc={}));var cn;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(cn||(cn={}));var Wt;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Wt||(Wt={}));var zc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(zc||(zc={}));var Wc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Wc||(Wc={}));var Gc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Gc||(Gc={}));var jc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(jc||(jc={}));var Kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kc||(Kc={}));var qc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(qc||(qc={}));var Zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Zc||(Zc={}));var Yc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Yc||(Yc={}));var Qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qc||(Qc={}));var Rt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Rt||(Rt={}));var Xc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Xc||(Xc={}));var Jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Jc||(Jc={}));var Gt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Gt||(Gt={}));var nl=t=>Object.keys(Gt).includes(t);var el;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(el||(el={}));var ln;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ln||(ln={}));var tl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var _r;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_r||(_r={}));var il=t=>Object.keys(_r).includes(t);var at;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(at||(at={}));var Ir;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ir||(Ir={}));var rl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rl||(rl={}));var W;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(W||(W={}));var Ve;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ve||(Ve={}));var ol;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ol||(ol={}));var al;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(al||(al={}));var sl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(sl||(sl={}));var cl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cl||(cl={}));var ll;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ll||(ll={}));var dl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(dl||(dl={}));var ul;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(ul||(ul={}));var pl;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(pl||(pl={}));var fl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(fl||(fl={}));var hl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(hl||(hl={}));var ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ml||(ml={}));var gl;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(gl||(gl={}));var yl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yl||(yl={}));var of={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function bl(t,e){return t===e||(of[t]??[]).some(r=>bl(r,e))}function ze(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>bl(o,e))}function vl(t,...e){return t==null?!1:e.some(r=>ze(t,r))}function nf(t){return`"${t}"`}function xl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function af(t,e){return new Ke(t).serialize(e)}var P;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match",t.STICKY_FILTER="sticky-filters"})(P||(P={}));var sf=new Set(Object.values(P));function Sl(t){return sf.has(t)}var Ke=class t{constructor(e,r=20,o=!1,i="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,c,d,p,f,h;let m=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&m.append(P.LOCALE,e.contentLocale):m.append(P.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&m.append(P.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&m.append(P.VALUE_FILTERS,v);let S=t.serializeNegativeValueFilters(e.metadataFilters);S&&m.append(P.NEGATIVE_VALUE_FILTERS,S);let w=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let b=w.map(y=>{var x;return`${y.key}~${(x=y.dateFilter)===null||x===void 0?void 0:x.type.toLowerCase()}`}).join("*");m.append(P.DATE_FILTERS,b)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let b=E.map(y=>{var x,A;return`${y.key}~${(x=y.rangeFilter)===null||x===void 0?void 0:x.from}_${(A=y.rangeFilter)===null||A===void 0?void 0:A.to}`}).join("*");m.append(P.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(P.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&m.append(P.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&m.append(P.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(c=e.paging)===null||c===void 0?void 0:c.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&m.append(P.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&m.append(P.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let R=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let b in R)m.append(b,R[b]);let k=new Array;return m.forEach((b,y)=>{k.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,c,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(k){console.warn("Could not decode search request query params, fallback on raw value",k)}let p=new URLSearchParams(e),f=(o=p.get(P.LOCALE))!==null&&o!==void 0?o:void 0,h=((i=p.get(P.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),m=(r=p.get(P.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(a=p.get(P.SCOPE))!==null&&a!==void 0?a:"default",S=+((s=p.get(P.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),w=p.get(P.KEYWORD_MATCH),E=w?w.toUpperCase()===Rt.MANDATORY?Rt.MANDATORY:Rt.OPTIONAL:void 0,R={};for(let k of p.keys())Sl(k)||(R[k]=p.get(k));return f==="all"?f=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!f||this.availableContentLocales.length>0&&!this.availableContentLocales.some(k=>k.lang===f))&&(f=this.defaultContentLocale),{contentLocale:f,query:(c=p.get(P.QUERY))!==null&&c!==void 0?c:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:nl(h)?h:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:gt(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:E,otherQueryParams:R}}parseCompatFilters(e){var r,o,i,a,s,c,d;let p=[];return e.has(P.FILTERS)&&(p=t.parseValueFilters((r=e.get(P.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(P.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(P.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(P.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(P.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((c=e.get(P.DATE_FILTERS))!==null&&c!==void 0?c:""),...this.parseRangeFilters((d=e.get(P.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(xl).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:_r[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}static superEscapeFilters(e){for(let[r,o,i]of t.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[r,o,i]of t.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(il(e))return[{key:"ft:lastEdition",dateFilter:{type:_r[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var r,o;let i=((o=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&o!==void 0?o:[]).map(a=>t.escapeFilters(a)).map(a=>nf(xl(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var r;let o=(r=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let o=(r=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[P.LOCALE,P.FILTERS,P.VALUE_FILTERS,P.NEGATIVE_VALUE_FILTERS,P.DATE_FILTERS,P.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(P.LOCALE),r!==void 0&&o.searchParams.append(P.LOCALE,r),o.toString()}};Ke.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Tt(t){var e,r,o,i;return(i=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&i!==void 0?i:t?.htmlPackagePage}function cf(t){var e,r,o,i,a,s,c,d,p;return(p=(d=(c=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&c!==void 0?c:(o=t?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=t?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function uo(t,e){var r,o,i,a,s,c,d,p,f;return(f=(p=(d=(c=sa((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&c!==void 0?c:sa((o=t?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=t?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function lf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function sa(t,e,r){if(e&&t){let o=URL.parse(t),i=Ke.serializeValueFilters(e);if(i&&o?.searchParams.append(P.VALUE_FILTERS,i),r&&o?.searchParams.append(P.STICKY_FILTER,r),o)return o.toString()}return t}function la(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var _t=class t{constructor(e,r,o,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,r,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let i=(o=(r=Tt(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(c=>{a.push(la(c)),s.push(la(c,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(c=>o?o(c):c).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",i,a){var s,c;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(c=d?.label)!==null&&c!==void 0?c:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,m,v)=>v.findIndex(S=>S.value===h.value)===m).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,m)=>this.compareMetadata(h.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,o,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,i,{numeric:!0});return c?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,c=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>c&&(c=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(i=>i.key===o.key&&i.value===o.value)).length}};var ua={};U(ua,{Debouncer:()=>te});var te=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(c){i(c);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 ma={};U(ma,{designSystemVariables:()=>N});var ha={};U(ha,{DesignSystemFamily:()=>po,DesignSystemSize:()=>fo,FtCssVariableFactory:()=>n,badge:()=>Af,banner:()=>wf,button:()=>pf,card:()=>hf,chart:()=>Vf,checkbox:()=>bf,chip:()=>Ef,chipChoice:()=>Sf,chipGroup:()=>Cf,collapsible:()=>$f,combobox:()=>Uf,dateRangePicker:()=>Kf,drawer:()=>Pf,eventCard:()=>mf,floatingMenu:()=>Ff,foundation:()=>l,link:()=>Of,modal:()=>Lf,notice:()=>Wf,notification:()=>Gf,pageDesigner:()=>zf,pageFooter:()=>_f,pageHeader:()=>Tf,pageLayout:()=>If,popover:()=>Bf,radio:()=>vf,reorderableList:()=>kf,resolveFamilyClass:()=>pa,resolveSizeClass:()=>fa,semantic:()=>u,setVariable:()=>G,switch_:()=>Hf,table:()=>xf,tabs:()=>Nf,textArea:()=>Df,textInput:()=>Mf,titleBreadcrumb:()=>Rf,toc:()=>yf,toggle:()=>ff,tooltip:()=>jf,treeList:()=>gf,typographies:()=>df,typographyBody1Medium:()=>Rl,typographyBody1Regular:()=>Al,typographyBody1Semibold:()=>Tl,typographyBody2Medium:()=>Il,typographyBody2MediumUnderline:()=>Ll,typographyBody2Regular:()=>_l,typographyBody2Semibold:()=>kl,typographyCaption1Medium:()=>Pl,typographyCaption1Semibold:()=>Nl,typographyCaption2Bold:()=>Fl,typographyCaption2Medium:()=>Ml,typographyCaption2Semibold:()=>Dl,typographyDisplay:()=>El,typographyTitle1:()=>Cl,typographyTitle2:()=>Ol,typographyTitle3:()=>wl,typographyVariants:()=>uf});var It=t=>typeof t=="string"?Ft(t):t,n=class{static create(e,r,o,i){let a=c=>It(c??i),s=T`var(${It(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=c=>G(s,c??a(i)),s.get=c=>T`var(${It(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,o,i){let a=c=>o.get(c??i),s=T`var(${It(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=c=>G(s,c??a(i)),s.get=c=>T`var(${It(e)}, ${a(c)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),i=T`var(${It(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>T`var(${It(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function G(t,e){return It(`${t.name}: ${e}`)}var l={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:n.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:n.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:n.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:n.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:n.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:n.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:n.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:n.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},El={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Cl={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Ol={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},wl={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Al={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Rl={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Tl={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},_l={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Il={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Ll={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},kl={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Pl={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Ml={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Dl={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Fl={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},df={display:El,"title-1":Cl,"title-2":Ol,"title-3":wl,"body-1-regular":Al,"body-1-medium":Rl,"body-1-semibold":Tl,"body-2-regular":_l,"body-2-medium":Il,"body-2-medium-underline":Ll,"body-2-semibold":kl,"caption-1-medium":Pl,"caption-1-semibold":Nl,"caption-2-medium":Ml,"caption-2-semibold":Dl,"caption-2-bold":Fl},uf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
+
Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",l.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",l.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",l.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var pf={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:n.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:n.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var ff={iconSize:n.extend("--ftds-toggle-icon-size","",l.iconSize1),offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",l.spacing3),width:n.create("--ftds-toggle-width","","SIZE","36px"),height:n.create("--ftds-toggle-height","","SIZE","20px")};var hf={borderRadius:n.extend("--ftds-card-border-radius","",l.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",l.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",l.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",l.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",l.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",l.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",l.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",l.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",l.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",l.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",l.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",l.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",l.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",l.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",l.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",l.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",l.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",l.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",l.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",l.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",l.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",l.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",l.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var mf={borderRadius:n.extend("--ftds-event-card-border-radius","",l.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",l.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",l.iconSize3),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",l.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",l.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var gf={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",l.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",l.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var yf={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",l.spacing2),offsetTop:n.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:n.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:n.extend("--ftds-toc-item-horizontal-padding","",l.spacing4),itemVerticalPadding:n.extend("--ftds-toc-item-vertical-padding","",l.spacing3),itemBorderRadius:n.extend("--ftds-toc-item-border-radius","",l.borderRadiusS),itemBorderWidth:n.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:n.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:n.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:n.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:n.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:n.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",l.opacity8),itemInactiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",l.opacity8),itemActiveLabelColor:n.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:n.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:n.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:n.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:n.extend("--ftds-toc-item-active-default-state-layer-opacity","",l.opacity8),itemActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-active-hover-state-layer-opacity","",l.opacity16),itemActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-active-focus-state-layer-opacity","",l.opacity16),itemChildActiveLabelColor:n.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:n.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:n.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",l.opacity8),itemChildActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",l.opacity8)};var bf={iconSize:n.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",l.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",l.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",l.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",l.spacing3)};var vf={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var xf={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var Sf={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var Ef={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var Cf={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",l.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",l.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",l.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",l.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",l.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",l.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",l.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",l.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Of={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",l.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",l.spacing1)};var wf={iconSize:n.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var Af={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Rf={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Tf={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",l.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var _f={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var If={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var Lf={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",l.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",l.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:n.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",l.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var kf={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",l.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",l.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",l.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Pf={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:n.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var Nf={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",l.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",l.iconSize2)};var Mf={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperVerticalGap:n.extend("--ftds-text-input-helper-vertical-gap","",l.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var Df={fieldPaddingLeft:n.extend("--ftds-text-area-field-padding-left","",l.spacing4),fieldPaddingRight:n.extend("--ftds-text-area-field-padding-right","",l.spacing6),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:n.extend("--ftds-text-area-resize-bottom","",l.spacing05),resizeRight:n.extend("--ftds-text-area-resize-right","",l.spacing05)};var Ff={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",l.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",l.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",l.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",l.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",l.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",l.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",l.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",l.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",l.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",l.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",l.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",l.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",l.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",l.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",l.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",l.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",l.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",l.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",l.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",l.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",l.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",l.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",l.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",l.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",l.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",l.opacity24)};var Uf={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",l.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",l.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",l.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",l.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",l.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",l.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",l.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",l.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",l.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Bf={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",l.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",l.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",l.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",l.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",l.spacing3)};var $f={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Hf={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var Vf={color1Light:n.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",l.colorBrand200)};var zf={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Wf={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:n.extend("--ftds-notice-gap","",l.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var Gf={iconSize:n.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",l.spacing8)};var jf={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",l.spacing05)};var Kf={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var po;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(po||(po={}));var fo;(function(t){t.large="large",t.medium="medium",t.small="small"})(fo||(fo={}));function pa(t){return`ftds--family-${t}`}function fa(t){return`ftds--size-${t}`}var N={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:n.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:n.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:n.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:n.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:n.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:n.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:n.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:n.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:n.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ga={};U(ga,{DynamicImporter:()=>dn,dynamicImporter:()=>qf});var dn=class{async import(e){if(e)return import(e)}},qf=new dn;var Ta={};U(Ta,{computeOffsetAutoPosition:()=>bh,computeOffsetPosition:()=>vo});var Bl=["top","right","bottom","left"],Ul=["start","end"],ba=Bl.reduce((t,e)=>t.concat(e,e+"-"+Ul[0],e+"-"+Ul[1]),[]),jt=Math.min,st=Math.max,ho=Math.round;var ct=t=>({x:t,y:t}),Zf={left:"right",right:"left",bottom:"top",top:"bottom"};function $l(t,e,r){return st(t,jt(e,r))}function Lr(t,e){return typeof t=="function"?t(e):t}function Kt(t){return t.split("-")[0]}function lt(t){return t.split("-")[1]}function va(t){return t==="x"?"y":"x"}function xa(t){return t==="y"?"height":"width"}function kr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Sa(t){return va(kr(t))}function Hl(t,e,r){r===void 0&&(r=!1);let o=lt(t),i=Sa(t),a=xa(i),s=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ya(s)),[s,ya(s)]}function Vl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ya(t){let e=Kt(t);return Zf[e]+t.slice(e.length)}function Yf(t){var e,r,o,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(i=t.left)!=null?i:0}}function zl(t){return typeof t!="number"?Yf(t):{top:t,right:t,bottom:t,left:t}}function qt(t){let{x:e,y:r,width:o,height:i}=t;return{width:o,height:i,top:r,left:e,right:e+o,bottom:r+i,x:e,y:r}}function Wl(t,e,r){let{reference:o,floating:i}=t,a=kr(e),s=Sa(e),c=xa(s),d=Kt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2,v;switch(d){case"top":v={x:f,y:o.y-i.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-i.width,y:h};break;default:v={x:o.x,y:o.y}}let S=lt(e);return S&&(v[s]+=m*(S==="end"?1:-1)*(r&&p?-1:1)),v}async function Gl(t,e){var r;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:c,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:v=0}=Lr(e,t),S=zl(v),E=c[m?h==="floating"?"reference":"floating":h],R=qt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:f,strategy:d})),k=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),y=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},x=qt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:b,strategy:d}):k);return{top:(R.top-x.top+S.top)/y.y,bottom:(x.bottom-R.bottom+S.bottom)/y.y,left:(R.left-x.left+S.left)/y.x,right:(x.right-R.right+S.right)/y.x}}var Qf=50,jl=async(t,e,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:Gl},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Wl(p,o,d),m=o,v=0,S={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:R,fn:k}=E,{x:b,y,data:x,reset:A}=await k({x:f,y:h,initialPlacement:o,placement:m,strategy:i,middlewareData:S,rects:p,platform:c,elements:{reference:t,floating:e}});f=b??f,h=y??h,S[R]={...S[R],...x},A&&v<Qf&&(v++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:f,y:h}=Wl(p,m,d)),w=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:S}};function Xf(t,e,r){return(t?[...r.filter(i=>lt(i)===t),...r.filter(i=>lt(i)!==t)]:r.filter(i=>Kt(i)===i)).filter(i=>t?lt(i)===t||(e?Vl(i)!==i:!1):!0)}var Kl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,i;let{rects:a,middlewareData:s,placement:c,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:m=ba,autoAlignment:v=!0,...S}=Lr(t,e),w=h!==void 0||m===ba?Xf(h||null,v,m):m,E=((r=s.autoPlacement)==null?void 0:r.index)||0,R=w[E];if(R==null)return{};if(c!==R)return{reset:{placement:w[0]}};let k=await d.detectOverflow(e,S),b=Hl(R,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[k[Kt(R)],k[b[0]],k[b[1]]],x=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:y}],A=w[E+1];if(A)return{data:{index:E+1,overflows:x},reset:{placement:A}};let M=x.map(L=>{let $=lt(L.placement);return[L.placement,$&&f?L.overflows.slice(0,2).reduce((ce,rt)=>ce+rt,0):L.overflows[0],L.overflows]}).sort((L,$)=>L[1]-$[1]),ne=((i=M.filter(L=>L[2].slice(0,lt(L[0])?2:3).every($=>$<=0))[0])==null?void 0:i[0])||M[0][0];return ne!==c?{data:{index:E+1,overflows:x},reset:{placement:ne}}:{}}}};var Jf=new Set(["left","top"]);async function eh(t,e){let{placement:r,platform:o,elements:i}=t,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Kt(r),c=lt(r),d=kr(r)==="y",p=Jf.has(s)?-1:1,f=a&&d?-1:1,h=Lr(e,t),{mainAxis:m,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof S=="number"&&(v=c==="end"?S*-1:S),d?{x:v*f,y:m*p}:{x:m*p,y:v*f}}var ql=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:i,y:a,placement:s,middlewareData:c}=e,d=await eh(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},Zl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:k=>{let{x:b,y}=k;return{x:b,y}}},...p}=Lr(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=kr(i),v=va(m),S=f[v],w=f[m],E=(k,b)=>$l(b+h[k==="y"?"top":"left"],b,b-h[k==="y"?"bottom":"right"]);s&&(S=E(v,S)),c&&(w=E(m,w));let R=d.fn({...e,[v]:S,[m]:w});return{...R,data:{x:R.x-r,y:R.y-o,enabled:{[v]:s,[m]:c}}}}}};var Yl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...c}=Lr(t,e),d=await i.detectOverflow(e,c),p=Kt(r),f=lt(r),h=kr(r)==="y",{width:m,height:v}=o.floating,S,w;p==="top"||p==="bottom"?(S=p,w=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,S=f==="end"?"top":"bottom");let E=v-d.top-d.bottom,R=m-d.left-d.right,k=jt(v-d[S],E),b=jt(m-d[w],R),y=e.middlewareData.shift,x=!y,A=k,M=b;y!=null&&y.enabled.x&&(M=R),y!=null&&y.enabled.y&&(A=E),x&&!f&&(h?M=m-2*st(d.left,d.right):A=v-2*st(d.top,d.bottom)),await s({...e,availableWidth:M,availableHeight:A});let V=await i.getDimensions(a.floating);return m!==V.width||v!==V.height?{reset:{rects:!0}}:{}}}};function pn(){return typeof window<"u"}function Yt(t){return Xl(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(Xl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xl(t){return pn()?t instanceof Node||t instanceof Re(t).Node:!1}function qe(t){return pn()?t instanceof Element||t instanceof Re(t).Element:!1}function vt(t){return pn()?t instanceof HTMLElement||t instanceof Re(t).HTMLElement:!1}function Ql(t){return!pn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function mo(t){let{overflow:e,overflowX:r,overflowY:o,display:i}=Ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&i!=="inline"&&i!=="contents"}function Jl(t){return/^(table|td|th)$/.test(Yt(t))}function go(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var th=/transform|translate|scale|rotate|perspective|filter/,rh=/paint|layout|strict|content/,Zt=t=>!!t&&t!=="none",Ea;function Pr(t){let e=qe(t)?Ze(t):t;return Zt(e.transform)||Zt(e.translate)||Zt(e.scale)||Zt(e.rotate)||Zt(e.perspective)||!fn()&&(Zt(e.backdropFilter)||Zt(e.filter))||th.test(e.willChange||"")||rh.test(e.contain||"")}function ed(t){let e=Lt(t);for(;vt(e)&&!Nr(e);){if(Pr(e))return e;if(go(e))return null;e=Lt(e)}return null}function fn(){return Ea==null&&(Ea=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ea}function Nr(t){return/^(html|body|#document)$/.test(Yt(t))}function Ze(t){return Re(t).getComputedStyle(t)}function yo(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(Yt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ql(t)&&t.host||bt(t);return Ql(e)?e.host:e}function td(t){let e=Lt(t);return Nr(e)?(t.ownerDocument||t).body:vt(e)&&mo(e)?e:td(e)}function un(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=td(t),a=i===((o=t.ownerDocument)==null?void 0:o.body),s=Re(i);if(a){let c=hn(s);return e.concat(s,s.visualViewport||[],mo(i)?i:[],c&&r?un(c):[])}else return e.concat(i,un(i,[],r))}function hn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nd(t){let e=Ze(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=vt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:o,c=ho(r)!==a||ho(o)!==s;return c&&(r=a,o=s),{width:r,height:o,$:c}}function id(t){return qe(t)?t:t.contextElement}function Mr(t){let e=id(t);if(!vt(e))return ct(1);let r=e.getBoundingClientRect(),{width:o,height:i,$:a}=nd(e),s=(a?ho(r.width):r.width)/o,c=(a?ho(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var oh=ct(0);function ad(t){let e=Re(t);return!fn()||!e.visualViewport?oh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function nh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Re(t)}function bo(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=id(t),s=ct(1);e&&(o?qe(o)&&(s=Mr(o)):s=Mr(t));let c=nh(a,r,o)?ad(a):ct(0),d=(i.left+c.x)/s.x,p=(i.top+c.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let m=Re(a),v=qe(o)?Re(o):o,S=m,w=hn(S);for(;w&&v!==S;){let E=Mr(w),R=w.getBoundingClientRect(),k=Ze(w),b=R.left+(w.clientLeft+parseFloat(k.paddingLeft))*E.x,y=R.top+(w.clientTop+parseFloat(k.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=b,p+=y,S=Re(w),w=hn(S)}}return qt({width:f,height:h,x:d,y:p})}function mn(t,e){let r=yo(t).scrollLeft;return e?e.left+r:bo(bt(t)).left+r}function sd(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-mn(t,r),i=r.top+e.scrollTop;return{x:o,y:i}}function ih(t){let{elements:e,rect:r,offsetParent:o,strategy:i}=t,a=i==="fixed",s=bt(o),c=e?go(e.floating):!1;if(o===s||c&&a)return r;let d={scrollLeft:0,scrollTop:0},p=ct(1),f=ct(0),h=vt(o);if((h||!a)&&((Yt(o)!=="body"||mo(s))&&(d=yo(o)),h)){let v=bo(o);p=Mr(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}let m=s&&!h&&!a?sd(s,d):ct(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+f.x+m.x,y:r.y*p.y-d.scrollTop*p.y+f.y+m.y}}function ah(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function sh(t){let e=yo(t),r=t.ownerDocument.body,o=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+mn(t),s=-e.scrollTop;return Ze(r).direction==="rtl"&&(a+=st(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}var ch=25;function lh(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",i=Re(t),a=bt(t),s=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let m=!fn()||e==="fixed";o?m||(p=-s.offsetLeft,f=-s.offsetTop):(c=s.width,d=s.height,m&&(p=s.offsetLeft,f=s.offsetTop))}if(mn(a)<=0){let m=a.ownerDocument,v=m.body,S=getComputedStyle(v),w=m.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-w),R=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;R<=ch&&(c-=R)}return{width:c,height:d,x:p,y:f}}function dh(t,e){let r=bo(t,!0,e==="fixed"),o=r.top+t.clientTop,i=r.left+t.clientLeft,a=Mr(t),s=t.clientWidth*a.x,c=t.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:c,x:d,y:p}}function rd(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=lh(t,r,e);else if(e==="document")o=sh(bt(t));else if(qe(e))o=dh(e,r);else{let i=ad(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return qt(o)}function uh(t,e){let r=e.get(t);if(r)return r;let o=un(t,[],!1).filter(c=>qe(c)&&Yt(c)!=="body"),i=null,a=Ze(t).position==="fixed",s=a?Lt(t):t;for(;qe(s)&&!Nr(s);){let c=Ze(s),d=Pr(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&c.position==="static")?o=o.filter(h=>h!==s):i=c,s=Lt(s)}return e.set(t,o),o}function ph(t){let{element:e,boundary:r,rootBoundary:o,strategy:i}=t,s=[...r==="clippingAncestors"?go(e)?[]:uh(e,this._c):[].concat(r),o],c=rd(e,s[0],i),d=c.top,p=c.right,f=c.bottom,h=c.left;for(let m=1;m<s.length;m++){let v=rd(e,s[m],i);d=st(v.top,d),p=jt(v.right,p),f=jt(v.bottom,f),h=st(v.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function fh(t){let{width:e,height:r}=nd(t);return{width:e,height:r}}function hh(t,e,r){let o=vt(e),i=bt(e),a=r==="fixed",s=bo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},d=ct(0);if((o||!a)&&((Yt(e)!=="body"||mo(i))&&(c=yo(e)),o)){let m=bo(e,!0,a,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!o&&i&&(d.x=mn(i));let p=i&&!o&&!a?sd(i,c):ct(0),f=s.left+c.scrollLeft-d.x-p.x,h=s.top+c.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function Ca(t){return Ze(t).position==="static"}function od(t,e){if(!vt(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return bt(t)===r&&(r=r.ownerDocument.body),r}function cd(t,e){let r=Re(t);if(go(t))return r;if(!vt(t)){let i=Lt(t);for(;i&&!Nr(i);){if(qe(i)&&!Ca(i))return i;i=Lt(i)}return r}let o=od(t,e);for(;o&&Jl(o)&&Ca(o);)o=od(o,e);return o&&Nr(o)&&Ca(o)&&!Pr(o)?r:o||ed(t)||r}var mh=async function(t){let e=this.getOffsetParent||cd,r=this.getDimensions,o=await r(t.floating);return{reference:hh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gh(t){return Ze(t).direction==="rtl"}var Dr={convertOffsetParentRelativeRectToViewportRelativeRect:ih,getDocumentElement:bt,getClippingRect:ph,getOffsetParent:cd,getElementRects:mh,getClientRects:ah,getDimensions:fh,getScale:Mr,isElement:qe,isRTL:gh};var ld=ql,Oa=Kl,dd=Zl;var ud=Yl;var wa=(t,e,r)=>{let o=new Map,i=r??{},a={...Dr,...i.platform,_c:o};return jl(t,e,{...i,platform:a})};function Ra(t){return yh(t)}function Aa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function yh(t){for(let e=t;e;e=Aa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Aa(t);e;e=Aa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Pr(r)||e.tagName==="BODY"))return e}return null}async function vo(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},wa(t,e,{strategy:o.strategy,platform:{...Dr,getOffsetParent:i=>Dr.getOffsetParent(i,Ra)},middleware:[dd({crossAxis:!0}),Oa({allowedPlacements:[o.placement]})]})}async function bh(t,e,r,o,i,a,s){let c,d;return typeof r=="object"?(c=r.placement,o=r.allowedPlacements,i=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):c=r,wa(t,e,{placement:c,strategy:i,platform:{...Dr,getOffsetParent:p=>Dr.getOffsetParent(p,Ra)},middleware:[ld(s??4),Oa({allowedPlacements:o}),ud({apply({availableHeight:p,availableWidth:f,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var _a={};U(_a,{isSlotEmptyOrWithoutContent:()=>vh});var vh=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Ma={};U(Ma,{FtdsBase:()=>Na,toFtdsBase:()=>bd});var Pa={};U(Pa,{ExportpartsUpdatedEvent:()=>Qt,FtLitElement:()=>H});var Ia={};U(Ia,{ScopedRegistryLitElement:()=>xo});var xo=class extends mt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Xr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){io(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var ka={};U(ka,{shadowQuerySelector:()=>La,shadowQuerySelectorAll:()=>xh});function La(t,e,...r){var o;let i=t.querySelector(e);for(let a of r)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function xh(t,e,...r){let o=[...t.querySelectorAll(e)];for(let i of r)o=o.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return o}var Fr=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},md,pd=Symbol("constructorPrototype"),fd=Symbol("constructorName"),gd=Symbol("exportpartsDebouncer"),hd=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var H=class extends xo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[md]=new te(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[gd].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)})},this[fd]=this.constructor.name,this[pd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fd]&&Object.setPrototypeOf(this,this[pd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[hd]||(r[hd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];r=La(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,i;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((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)}}setExportpartsAttribute(e){var r,o,i,a,s,c;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let v=(s=(o=m.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],S=(c=(i=m.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&c!==void 0?c:[],w=[...v,...S].filter(d).map(E=>E.trim());for(let E of w)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};md=gd;Fr([g()],H.prototype,"exportpartsPrefix",void 0);Fr([de([])],H.prototype,"exportpartsPrefixes",void 0);Fr([g({reflect:!0})],H.prototype,"exportparts",void 0);Fr([g()],H.prototype,"customStylesheet",void 0);Fr([g()],H.prototype,"elementToFocus",void 0);Fr([F()],H.prototype,"useAdoptedStyleSheets",void 0);var yd=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},bd=ae(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=fo.medium,this.family=po.neutral}getDesignSystemBaseClasses(){return{[pa(this.family)]:!0,[fa(this.size)]:!0}}}return yd([g()],e.prototype,"size",void 0),yd([g()],e.prototype,"family",void 0),e}),Na=class extends bd(H){};var vd={};var Ua={};U(Ua,{highlightHtml:()=>Fa,highlightHtmlColorCssVariable:()=>xd,highlightHtmlStyles:()=>Eh});var Xt=class t{constructor(e,r=!0,o=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=i}static matches(e,r){let o=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!i&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&r(i)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||r()})},i=>{i||r()})}forEachIframe(e,r,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(c)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{r(p)&&(c++,o(f)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(o),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,i){let a=!1,s=!1;return i.forEach((c,d)=>{c.val===o&&(a=d,s=c.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,i)})})}iterateThroughNodes(e,r,o,i,a){let s=this.createIterator(r,e,i),c=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,f,m,c),m=>{this.createInstanceOnIframe(m).forEachNode(e,v=>d.push(v),i)}),d.push(p);d.forEach(m=>{o(m)}),this.iframes&&this.handleOpenIframes(c,e,o,i),a()}forEachNode(e,r,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let d=()=>{this.iterateThroughNodes(e,c,r,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,d):d()})}};var So=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Xt(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,i)=>i.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,o);c&&(i.start=a,i.length=s-a,r.push(i),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,r,o){let i,a=!0,s=o.length,c=r-s,d=parseInt(e.start,10)-c;return d=d>s?s:d,i=d+parseInt(e.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(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Xt.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,r,o,i,a){e.nodes.every((s,c)=>{let d=e.nodes[c+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),m=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+m,e.nodes.forEach((v,S)=>{S>=c&&(e.nodes[S].start>0&&S!==c&&(e.nodes[S].start-=f),e.nodes[S].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{c.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{let d;for(;(d=e.exec(c.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(c,p,f,h=>o(d[s],h),(h,m)=>{e.lastIndex=m,i(h)})}a()})}wrapRangeFromIndex(e,r,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(c,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,m=>r(m,c,a.value.substring(p,f),d),m=>{o(m,c)})}),i()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${c}`),h=0;this.log(`Searching with expression "${f}"`),this[i](f,1,(m,v)=>this.opt.filter(v,p,o,h),m=>{h++,o++,this.opt.each(m)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,d)=>this.opt.filter(a,s,c,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Xt.matches(o,r),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Da(t){let e=new So(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Sh=Da,xd=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Eh=T`
|
|
5
5
|
.highlight-html-match {
|
|
6
|
-
background: ${
|
|
6
|
+
background: ${xd};
|
|
7
7
|
}
|
|
8
|
-
`;function Fa(t,e,r){var o,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new
|
|
8
|
+
`;function Fa(t,e,r){var o,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Sh(t);if(s.unmark(),e&&e.trim()){let c={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(c.each=p=>{for(let f in r.attributes)p.setAttribute(f,r.attributes[f])}),s.mark(e.replace(/"[^"]+"/g,""),{...c,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...c,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var $a={};U($a,{noTextInputDefaultClearButton:()=>Oh,noTextSelect:()=>Jt,safariEllipsisFix:()=>Ba,wordWrap:()=>Ch});var Jt=T`
|
|
9
9
|
.ft-no-text-select {
|
|
10
10
|
-webkit-touch-callout: none;
|
|
11
11
|
-webkit-user-select: none;
|
|
@@ -14,7 +14,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
14
14
|
-ms-user-select: none;
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Ch=T`
|
|
18
18
|
.ft-word-wrap {
|
|
19
19
|
white-space: normal;
|
|
20
20
|
word-wrap: break-word;
|
|
@@ -37,14 +37,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
width: 0;
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,Oh=T`
|
|
41
41
|
input::-webkit-search-cancel-button,
|
|
42
42
|
input::-webkit-search-decoration,
|
|
43
43
|
input::-webkit-search-results-button,
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var xd={};var Ha={};U(Ha,{ParametrizedLabelResolver:()=>vo});var vo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var ds={};U(ds,{FtCommandQueue:()=>So,FtLitElementRedux:()=>we,FtReduxStore:()=>Qe,FtStateManager:()=>tr,ReduxWatcher:()=>vt,clearAllStores:()=>ym,isFtReduxStore:()=>Dr,redux:()=>j,reduxEventListener:()=>za,reduxReactive:()=>Va,watch:()=>ls,withRedux:()=>vd});var Va=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},j=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:He,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(c=>c[o]),store:e.store})}},za=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var So=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Eo=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores"),vd=ae(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Jt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Jt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[Lt].has(s.store):this[Lt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d,p;this[Lt].set(s,c.subscribe(()=>this.updateFromStores())),this[Eo].set(s,[]),Dr(c)&&(!((d=c.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===c&&c.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",c.name)}),c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let m=x=>this[h](x);c.addEventListener(f.eventName,m),this[Eo].get(s).push(()=>c.removeEventListener(f.eventName,m))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Lt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Lt].has(s)&&this[Lt].get(s)(),this[Lt].delete(s),(c=this[Eo].get(s))===null||c===void 0||c.forEach(d=>d()),this[Eo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Lt,r=Jt,o=Eo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),we=class extends vd(H){};function me(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Ch=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sd=Ch,Wa=()=>Math.random().toString(36).substring(7).split("").join("."),Oh={INIT:`@@redux/INIT${Wa()}`,REPLACE:`@@redux/REPLACE${Wa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wa()}`},mn=Oh;function gn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Ga(t,e,r){if(typeof t!="function")throw new Error(me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(Ga)(t,e)}let o=t,i=e,a=new Map,s=a,c=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,R)=>{s.set(R,E)}))}function f(){if(d)throw new Error(me(3));return i}function h(E){if(typeof E!="function")throw new Error(me(4));if(d)throw new Error(me(5));let R=!0;p();let P=c++;return s.set(P,E),function(){if(R){if(d)throw new Error(me(6));R=!1,p(),s.delete(P),a=null}}}function m(E){if(!gn(E))throw new Error(me(7));if(typeof E.type>"u")throw new Error(me(8));if(typeof E.type!="string")throw new Error(me(17));if(d)throw new Error(me(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(P=>{P()}),E}function x(E){if(typeof E!="function")throw new Error(me(10));o=E,m({type:mn.REPLACE})}function S(){let E=h;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(me(11));function P(){let y=R;y.next&&y.next(f())}return P(),{unsubscribe:E(P)}},[Sd](){return this}}}return m({type:mn.INIT}),{dispatch:m,subscribe:h,getState:f,replaceReducer:x,[Sd]:S}}function wh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:mn.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:mn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function ja(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let c=e[s];typeof t[c]=="function"&&(r[c]=t[c])}let o=Object.keys(r),i,a;try{wh(r)}catch(s){a=s}return function(c={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let m=o[h],x=r[m],S=c[m],w=x(S,d);if(typeof w>"u"){let E=d&&d.type;throw new Error(me(14))}f[m]=w,p=p||w!==S}return p=p||o.length!==Object.keys(c).length,p?f:c}}function Co(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function Ed(...t){return e=>(r,o)=>{let i=e(r,o),a=()=>{throw new Error(me(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},c=t.map(d=>d(s));return a=Co(...c)(i.dispatch),{...i,dispatch:a}}}function Cd(t){return gn(t)&&"type"in t&&typeof t.type=="string"}var Pd=Symbol.for("immer-nothing"),Od=Symbol.for("immer-draftable"),ve=Symbol.for("immer-state");function Ye(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ne=Object,Ur=Ne.getPrototypeOf,vn="constructor",An="prototype",Ya="configurable",Sn="enumerable",bn="writable",Oo="value",lt=t=>!!t&&!!t[ve];function Me(t){return t?kd(t)||Tn(t)||!!t[Od]||!!t[vn]?.[Od]||_n(t)||To(t):!1}var Ah=Ne[An][vn].toString(),wd=new WeakMap;function kd(t){if(!t||!ns(t))return!1;let e=Ur(t);if(e===null||e===Ne[An])return!0;let r=Ne.hasOwnProperty.call(e,vn)&&e[vn];if(r===Object)return!0;if(!Fr(r))return!1;let o=wd.get(r);return o===void 0&&(o=Function.toString.call(r),wd.set(r,o)),o===Ah}function Rn(t,e,r=!0){Ro(t)===0?(r?Reflect.ownKeys(t):Ne.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((o,i)=>e(i,o,t))}function Ro(t){let e=t[ve];return e?e.type_:Tn(t)?1:_n(t)?2:To(t)?3:0}var Ka=(t,e,r=Ro(t))=>r===2?t.has(e):Ne[An].hasOwnProperty.call(t,e),Qa=(t,e,r=Ro(t))=>r===2?t.get(e):t[e],En=(t,e,r,o=Ro(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function Rh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Tn=Array.isArray,_n=t=>t instanceof Map,To=t=>t instanceof Set,ns=t=>typeof t=="object",Fr=t=>typeof t=="function",qa=t=>typeof t=="boolean";function Th(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var xt=t=>t.copy_||t.base_;var is=t=>t.modified_?t.copy_:t.base_;function Xa(t,e){if(_n(t))return new Map(t);if(To(t))return new Set(t);if(Tn(t))return Array[An].slice.call(t);let r=kd(t);if(e===!0||e==="class_only"&&!r){let o=Ne.getOwnPropertyDescriptors(t);delete o[ve];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],c=o[s];c[bn]===!1&&(c[bn]=!0,c[Ya]=!0),(c.get||c.set)&&(o[s]={[Ya]:!0,[bn]:!0,[Sn]:c[Sn],[Oo]:t[s]})}return Ne.create(Ur(t),o)}else{let o=Ur(t);if(o!==null&&r)return{...t};let i=Ne.create(o);return Ne.assign(i,t)}}function In(t,e=!1){return Ln(t)||lt(t)||!Me(t)||(Ro(t)>1&&Ne.defineProperties(t,{set:yn,add:yn,clear:yn,delete:yn}),Ne.freeze(t),e&&Rn(t,(r,o)=>{In(o,!0)},!1)),t}function _h(){Ye(2)}var yn={[Oo]:_h};function Ln(t){return t===null||!ns(t)?!0:Ne.isFrozen(t)}var Cn="MapSet",Ja="Patches",Ad="ArrayMethods",Nd={};function er(t){let e=Nd[t];return e||Ye(0,t),e}var Rd=t=>!!Nd[t];var wo,Md=()=>wo,Ih=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Rd(Cn)?er(Cn):void 0,arrayMethodsPlugin_:Rd(Ad)?er(Ad):void 0});function Td(t,e){e&&(t.patchPlugin_=er(Ja),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function es(t){ts(t),t.drafts_.forEach(Lh),t.drafts_=null}function ts(t){t===wo&&(wo=t.parent_)}var _d=t=>wo=Ih(wo,t);function Lh(t){let e=t[ve];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Id(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ve].modified_&&(es(e),Ye(4)),Me(t)&&(t=Ld(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[ve].base_,t,e)}else t=Ld(e,r);return Ph(e,t,!0),es(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Pd?t:void 0}function Ld(t,e){if(Ln(e))return e;let r=e[ve];if(!r)return On(e,t.handledSet_,t);if(!Pn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:o}=r;if(o)for(;o.length>0;)o.pop()(t);Ud(r,t)}return r.copy_}function Ph(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&In(e,r)}function Dd(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Pn=(t,e)=>t.scope_===e,kh=[];function Fd(t,e,r,o){let i=xt(t),a=t.type_;if(o!==void 0&&Qa(i,o,a)===e){En(i,o,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;Rn(i,(d,p)=>{if(lt(p)){let f=c.get(p)||[];f.push(d),c.set(p,f)}})}let s=t.draftLocations_.get(e)??kh;for(let c of s)En(i,c,r,a)}function Nh(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!Pn(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=is(a);Fd(t,a.draft_??a,s,r),Ud(a,i)})}function Ud(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(t);i&&o.generatePatches_(t,i,e)}Dd(t)}}function Mh(t,e,r){let{scope_:o}=t;if(lt(r)){let i=r[ve];Pn(i,o)&&i.callbacks_.push(function(){xn(t);let s=is(i);Fd(t,r,s,e)})}else Me(r)&&t.callbacks_.push(function(){let a=xt(t);t.type_===3?a.has(r)&&On(r,o.handledSet_,o):Qa(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&On(Qa(t.copy_,e,t.type_),o.handledSet_,o)})}function On(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||lt(t)||e.has(t)||!Me(t)||Ln(t)||(e.add(t),Rn(t,(o,i)=>{if(lt(i)){let a=i[ve];if(Pn(a,r)){let s=is(a);En(t,o,s,t.type_),Dd(a)}}else Me(i)&&On(i,e,r)})),t}function Dh(t,e){let r=Tn(t),o={type_:r?1:0,scope_:e?e.scope_:Md(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=wn;r&&(i=[o],a=Ao);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return o.draft_=c,o.revoke_=s,[c,o]}var wn={get(t,e){if(e===ve)return t;let r=t.scope_.arrayMethodsPlugin_,o=t.type_===1&&typeof e=="string";if(o&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=xt(t);if(!Ka(i,e,t.type_))return Uh(t,i,e);let a=i[e];if(t.finalized_||!Me(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Th(e))return a;if(a===Za(t.base_,e)||Fh(t,e,a)){xn(t);let s=t.type_===1?+e:e,c=os(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in xt(t)},ownKeys(t){return Reflect.ownKeys(xt(t))},set(t,e,r){let o=Bd(xt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let i=Za(xt(t),e),a=i?.[ve];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Rh(r,i)&&(r!==void 0||Ka(t.base_,e,t.type_)))return!0;xn(t),rs(t)}return t.copy_[e]===r&&(r!==void 0||Ka(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Mh(t,e,r)),!0},deleteProperty(t,e){return xn(t),Za(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),rs(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=xt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[bn]:!0,[Ya]:t.type_!==1||e!=="length",[Sn]:o[Sn],[Oo]:r[e]}},defineProperty(){Ye(11)},getPrototypeOf(t){return Ur(t.base_)},setPrototypeOf(){Ye(12)}},Ao={};for(let t in wn){let e=wn[t];Ao[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ao.deleteProperty=function(t,e){return Ao.set.call(this,t,e,void 0)};Ao.set=function(t,e,r){return wn.set.call(this,t[0],e,r,t[0])};function Za(t,e){let r=t[ve];return(r?xt(r):t)[e]}function Fh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Me(r)||r[ve]?!1:t.baseRefs_.has(r)}function Uh(t,e,r){let o=Bd(e,r);return o?Oo in o?o[Oo]:o.get?.call(t.draft_):void 0}function Bd(t,e){if(!(e in t))return;let r=Ur(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Ur(r)}}function rs(t){t.modified_||(t.modified_=!0,t.parent_&&rs(t.parent_))}function xn(t){t.copy_||(t.assigned_=new Map,t.copy_=Xa(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Bh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(Fr(e)&&!Fr(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,f=>r.call(this,f,...p))}}Fr(r)||Ye(6),o!==void 0&&!Fr(o)&&Ye(7);let i;if(Me(e)){let a=_d(this),s=os(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?es(a):ts(a)}return Td(a,o),Id(i,a)}else if(!e||!ns(e)){if(i=r(e),i===void 0&&(i=e),i===Pd&&(i=void 0),this.autoFreeze_&&In(i,!0),o){let a=[],s=[];er(Ja).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Ye(1,e)},this.produceWithPatches=(e,r)=>{if(Fr(e))return(s,...c)=>this.produceWithPatches(s,d=>e(d,...c));let o,i;return[this.produce(e,r,(s,c)=>{o=s,i=c}),o,i]},qa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),qa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),qa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Me(t)||Ye(8),lt(t)&&(t=$d(t));let e=_d(this),r=os(e,t,void 0);return r[ve].isManual_=!0,ts(e),r}finishDraft(t,e){let r=t&&t[ve];(!r||!r.isManual_)&&Ye(9);let{scope_:o}=r;return Td(o,e),Id(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let o=er(Ja).applyPatches_;return lt(t)?o(t,e):this.produce(t,i=>o(i,e))}};function os(t,e,r,o){let[i,a]=_n(e)?er(Cn).proxyMap_(e,r):To(e)?er(Cn).proxySet_(e,r):Dh(e,r);return(r?.scope_??Md()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?Nh(r,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function $d(t){return lt(t)||Ye(10,t),Hd(t)}function Hd(t){if(!Me(t)||Ln(t))return t;let e=t[ve],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Xa(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=Xa(t,!0);let i=r;return To(r)&&(r=new Set),Rn(i,(a,s)=>{En(r,a,Hd(s))},o),e&&(e.finalized_=!1),r}var $h=globalThis.Iterator,hS=typeof $h?.from=="function";var Hh=new Bh,as=Hh.produce;function Vd(t){return({dispatch:r,getState:o})=>i=>a=>typeof a=="function"?a(r,o,t):i(a)}var zd=Vd(),Wd=Vd;var Vh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Co:Co.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var zh=t=>t&&typeof t.match=="function";function Pt(t,e){function r(...o){if(e){let i=e(...o);if(!i)throw new Error(dt(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:o[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=o=>Cd(o)&&o.type===t,r}var Zd=class _o extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,_o.prototype)}static get[Symbol.species](){return _o}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new _o(...e[0].concat(this)):new _o(...e.concat(this))}};function Gd(t){return Me(t)?as(t,()=>{}):t}function kn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Wh(t){return typeof t=="boolean"}var Gh=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Zd;return r&&(Wh(r)?s.push(zd):s.push(Wd(r.extraArgument))),s},jh="RTK_autoBatch";var jd=t=>e=>{setTimeout(e,t)},Kh=(t,e)=>r=>{let o=!1,i,a,s=()=>{o||(o=!0,cancelAnimationFrame(i),clearTimeout(a),r())};i=t(s),a=setTimeout(s,e)},qh=(t={type:"raf"})=>e=>(...r)=>{let o=e(...r),i=!0,a=!1,s=!1,c=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Kh(window.requestAnimationFrame,100):jd(10):t.type==="callback"?t.queueNotification:jd(t.timeout),p=()=>{s=!1,a&&(a=!1,c.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),m=o.subscribe(h);return c.add(f),()=>{m(),c.delete(f)}},dispatch(f){try{return i=!f?.meta?.[jh],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Zh=t=>function(r){let{autoBatch:o=!0}=r??{},i=new Zd(t);return o&&i.push(qh(typeof o=="object"?o:void 0)),i};function Yd(t){let e=Gh(),{reducer:r=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:c=void 0}=t||{},d;if(typeof r=="function")d=r;else if(gn(r))d=ja(r);else throw new Error(dt(1));let p;typeof o=="function"?p=o(e):p=e();let f=Co;i&&(f=Vh({trace:!1,...typeof i=="object"&&i}));let h=Ed(...p),m=Zh(h),x=typeof c=="function"?c(m):m(),S=f(...x);return Ga(d,s,S)}function Qd(t){let e={},r=[],o,i={addCase(a,s){let c=typeof a=="string"?a:a.type;if(!c)throw new Error(dt(28));if(c in e)throw new Error(dt(29));return e[c]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return t(i),[e,r,o]}function Yh(t){return typeof t=="function"}function Qh(t,e){let[r,o,i]=Qd(e),a;if(Yh(t))a=()=>Gd(t());else{let c=Gd(t);a=()=>c}function s(c=a(),d){let p=[r[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(lt(f)){let m=h(f,d);return m===void 0?f:m}else{if(Me(f))return as(f,m=>h(m,d));{let m=h(f,d);if(m===void 0){if(f===null)return f;throw new Error(dt(9))}return m}}return f},c)}return s.getInitialState=a,s}var Xh=(t,e)=>zh(t)?t.match(e):t(e);function Jh(...t){return e=>t.some(r=>Xh(r,e))}var em="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tm=(t=21)=>{let e="",r=t;for(;r--;)e+=em[Math.random()*64|0];return e},rm=["name","message","stack","code"],ss=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Kd=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},om=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of rm)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},qd="External signal was aborted",nm=(()=>{function t(e,r,o){let i=Pt(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=Pt(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=Pt(e+"/rejected",(d,p,f,h,m)=>({payload:h,error:(o&&o.serializeError||om)(d||"Rejected"),meta:{...m||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(f,h,m)=>{let x=o?.idGenerator?o.idGenerator(d):tm(),S=new AbortController,w,E;function R(b){E=b,S.abort()}p&&(p.aborted?R(qd):p.addEventListener("abort",()=>R(qd),{once:!0}));let P=(async function(){let b;try{let y=o?.condition?.(d,{getState:h,extra:m});if(am(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let v=new Promise((A,M)=>{w=()=>{M({name:"AbortError",message:E||"Aborted"})},S.signal.addEventListener("abort",w,{once:!0})});f(a(x,d,o?.getPendingMeta?.({requestId:x,arg:d},{getState:h,extra:m}))),b=await Promise.race([v,Promise.resolve(r(d,{dispatch:f,getState:h,extra:m,requestId:x,signal:S.signal,abort:R,rejectWithValue:((A,M)=>new ss(A,M)),fulfillWithValue:((A,M)=>new Kd(A,M))})).then(A=>{if(A instanceof ss)throw A;return A instanceof Kd?i(A.payload,x,d,A.meta):i(A,x,d)})])}catch(y){b=y instanceof ss?s(null,x,d,y.payload,y.meta):s(y,x,d)}finally{w&&S.signal.removeEventListener("abort",w)}return o&&!o.dispatchConditionRejection&&s.match(b)&&b.meta.condition||f(b),b})();return Object.assign(P,{abort:R,requestId:x,arg:d,unwrap(){return P.then(im)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:Jh(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function im(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function am(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Xd=Symbol.for("rtk-slice-createasyncthunk"),ES={[Xd]:nm};function sm(t,e){return`${t}/${e}`}function cm({creators:t}={}){let e=t?.asyncThunk?.[Xd];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(dt(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(dm()):o.reducers)||{},c=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,y){let v=typeof b=="string"?b:b.type;if(!v)throw new Error(dt(12));if(v in d.sliceCaseReducersByType)throw new Error(dt(13));return d.sliceCaseReducersByType[v]=y,p},addMatcher(b,y){return d.sliceMatchers.push({matcher:b,reducer:y}),p},exposeAction(b,y){return d.actionCreators[b]=y,p},exposeCaseReducer(b,y){return d.sliceCaseReducersByName[b]=y,p}};c.forEach(b=>{let y=s[b],v={reducerName:b,type:sm(i,b),createNotation:typeof o.reducers=="function"};pm(y)?hm(v,y,p,e):um(v,y,p)});function f(){let[b={},y=[],v=void 0]=typeof o.extraReducers=="function"?Qd(o.extraReducers):[o.extraReducers],A={...b,...d.sliceCaseReducersByType};return Qh(o.initialState,M=>{for(let V in A)M.addCase(V,A[V]);for(let V of d.sliceMatchers)M.addMatcher(V.matcher,V.reducer);for(let V of y)M.addMatcher(V.matcher,V.reducer);v&&M.addDefaultCase(v)})}let h=b=>b,m=new Map,x=new WeakMap,S;function w(b,y){return S||(S=f()),S(b,y)}function E(){return S||(S=f()),S.getInitialState()}function R(b,y=!1){function v(M){let V=M[b];return typeof V>"u"&&y&&(V=kn(x,v,E)),V}function A(M=h){return kn(kn(m,y,()=>new WeakMap),M,()=>{let V={};for(let[oe,L]of Object.entries(o.selectors??{}))V[oe]=lm(L,M,()=>kn(x,M,E),y);return V})}return{reducerPath:b,getSelectors:A,get selectors(){return A(v)},selectSlice:v}}let P={name:i,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...R(a),injectInto(b,{reducerPath:y,...v}={}){let A=y??a;return b.inject({reducerPath:A,reducer:w},v),{...P,...R(A,!0)}}};return P}}function lm(t,e,r,o){function i(a,...s){let c=e(a);return typeof c>"u"&&o&&(c=r()),t(c,...s)}return i.unwrapped=t,i}var Jd=cm();function dm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function um({type:t,reducerName:e,createNotation:r},o,i){let a,s;if("reducer"in o){if(r&&!fm(o))throw new Error(dt(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Pt(t,s):Pt(t))}function pm(t){return t._reducerDefinitionType==="asyncThunk"}function fm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function hm({type:t,reducerName:e},r,o,i){if(!i)throw new Error(dt(18));let{payloadCreator:a,fulfilled:s,pending:c,rejected:d,settled:p,options:f}=r,h=i(t,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),c&&o.addCase(h.pending,c),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||Nn,pending:c||Nn,rejected:d||Nn,settled:p||Nn})}function Nn(){}var eu="listener",tu="completed",ru="cancelled",CS=`task-${ru}`,OS=`task-${tu}`,wS=`${eu}-${ru}`,AS=`${eu}-${tu}`;var{assign:ou}=Object;var cs="listenerMiddleware";var mm=ou(Pt(`${cs}/add`),{withTypes:()=>mm}),RS=Pt(`${cs}/removeAll`),gm=ou(Pt(`${cs}/remove`),{withTypes:()=>gm});function dt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Qe=class t extends gt{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Dr(a))return a;if(i==null)return;let s=Jd({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Yd({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=ke(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus,i.deprecatedKeys)}constructor(e,r,o,i){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new So,this.injectInto=(s,c)=>this.reduxSlice.injectInto(s,c),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let p=c,f=s[p];return f?(...h)=>{let m=f(...h.map(a));return this.reduxStore.dispatch(m),m}:h=>{let m=p,x=this.getState()[m];he(x,h)||this.setState({[m]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function ym(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Dr(e)&&e.clear()}var vt=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function ls(t,e,r){return new vt(t,e,r).watch()}var tr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var fs={};U(fs,{scrollHelper:()=>bm});var us,Mn=new Map,ps=class{lock(e,r){if(r){let o=Mn.get(r);if(o==null||o===e)return Mn.set(r,e),r}}release(e,r){r&&Mn.get(r)===e&&Mn.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of Qi(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=mt(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(us=window.FluidTopicsScrollHelper)!==null&&us!==void 0?us:new ps;var bm=window.FluidTopicsScrollHelper;var gs={};U(gs,{toFtFormComponent:()=>ms});var hs=Symbol("elementInternals"),ms=ae(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[hs].form}constructor(...o){super(o),this[hs]=this.attachInternals()}setFormValue(o){this[hs].setFormValue(o)}}return e});var ys={};U(ys,{DateFormatter:()=>rr});var rr=class{static format(e,r,o,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,r,o,i,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${c} ${d}`:c}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var xs={};U(xs,{ALL_KEYS_VALUE:()=>bs,SameWindowStorageEvent:()=>Br});var bs="__all__",Br=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==bs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Br(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Br(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Br(bs))}});var Ss={};U(Ss,{FocusMainContentEvent:()=>vs});var vs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var nu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function xm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function vm(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",xm);document.addEventListener("click",vm);var iu=T`
|
|
47
|
+
`;var Sd={};var Ha={};U(Ha,{ParametrizedLabelResolver:()=>Eo});var Eo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var ds={};U(ds,{FtCommandQueue:()=>Co,FtLitElementRedux:()=>we,FtReduxStore:()=>Qe,FtStateManager:()=>rr,ReduxWatcher:()=>Xe,clearAllStores:()=>vm,isFtReduxStore:()=>Ur,redux:()=>j,reduxEventListener:()=>za,reduxReactive:()=>Va,watch:()=>ls,withRedux:()=>Ed});var Va=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},j=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:He,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(c=>c[o]),store:e.store})}},za=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Co=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Ur(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Oo=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),er=Symbol("internalStores"),Ed=ae(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[er].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[er].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[er].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[er].delete(c)}setupStores(){this.unsubscribeFromStores(),this[er].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[kt].has(s.store):this[kt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d,p;this[kt].set(s,c.subscribe(()=>this.updateFromStores())),this[Oo].set(s,[]),Ur(c)&&(!((d=c.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===c&&c.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",c.name)}),c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let m=v=>this[h](v);c.addEventListener(f.eventName,m),this[Oo].get(s).push(()=>c.removeEventListener(f.eventName,m))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[kt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[kt].has(s)&&this[kt].get(s)(),this[kt].delete(s),(c=this[Oo].get(s))===null||c===void 0||c.forEach(d=>d()),this[Oo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=kt,r=er,o=Oo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),we=class extends Ed(H){};function me(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Cd=wh,Wa=()=>Math.random().toString(36).substring(7).split("").join("."),Ah={INIT:`@@redux/INIT${Wa()}`,REPLACE:`@@redux/REPLACE${Wa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wa()}`},gn=Ah;function yn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Ga(t,e,r){if(typeof t!="function")throw new Error(me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(Ga)(t,e)}let o=t,i=e,a=new Map,s=a,c=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,R)=>{s.set(R,E)}))}function f(){if(d)throw new Error(me(3));return i}function h(E){if(typeof E!="function")throw new Error(me(4));if(d)throw new Error(me(5));let R=!0;p();let k=c++;return s.set(k,E),function(){if(R){if(d)throw new Error(me(6));R=!1,p(),s.delete(k),a=null}}}function m(E){if(!yn(E))throw new Error(me(7));if(typeof E.type>"u")throw new Error(me(8));if(typeof E.type!="string")throw new Error(me(17));if(d)throw new Error(me(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(k=>{k()}),E}function v(E){if(typeof E!="function")throw new Error(me(10));o=E,m({type:gn.REPLACE})}function S(){let E=h;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(me(11));function k(){let y=R;y.next&&y.next(f())}return k(),{unsubscribe:E(k)}},[Cd](){return this}}}return m({type:gn.INIT}),{dispatch:m,subscribe:h,getState:f,replaceReducer:v,[Cd]:S}}function Rh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:gn.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:gn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function ja(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let c=e[s];typeof t[c]=="function"&&(r[c]=t[c])}let o=Object.keys(r),i,a;try{Rh(r)}catch(s){a=s}return function(c={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let m=o[h],v=r[m],S=c[m],w=v(S,d);if(typeof w>"u"){let E=d&&d.type;throw new Error(me(14))}f[m]=w,p=p||w!==S}return p=p||o.length!==Object.keys(c).length,p?f:c}}function wo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function Od(...t){return e=>(r,o)=>{let i=e(r,o),a=()=>{throw new Error(me(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},c=t.map(d=>d(s));return a=wo(...c)(i.dispatch),{...i,dispatch:a}}}function wd(t){return yn(t)&&"type"in t&&typeof t.type=="string"}var Nd=Symbol.for("immer-nothing"),Ad=Symbol.for("immer-draftable"),Se=Symbol.for("immer-state");function Ye(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ne=Object,$r=Ne.getPrototypeOf,Sn="constructor",Rn="prototype",Ya="configurable",En="enumerable",vn="writable",Ao="value",dt=t=>!!t&&!!t[Se];function Me(t){return t?Md(t)||_n(t)||!!t[Ad]||!!t[Sn]?.[Ad]||In(t)||Io(t):!1}var Th=Ne[Rn][Sn].toString(),Rd=new WeakMap;function Md(t){if(!t||!ns(t))return!1;let e=$r(t);if(e===null||e===Ne[Rn])return!0;let r=Ne.hasOwnProperty.call(e,Sn)&&e[Sn];if(r===Object)return!0;if(!Br(r))return!1;let o=Rd.get(r);return o===void 0&&(o=Function.toString.call(r),Rd.set(r,o)),o===Th}function Tn(t,e,r=!0){_o(t)===0?(r?Reflect.ownKeys(t):Ne.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((o,i)=>e(i,o,t))}function _o(t){let e=t[Se];return e?e.type_:_n(t)?1:In(t)?2:Io(t)?3:0}var Ka=(t,e,r=_o(t))=>r===2?t.has(e):Ne[Rn].hasOwnProperty.call(t,e),Qa=(t,e,r=_o(t))=>r===2?t.get(e):t[e],Cn=(t,e,r,o=_o(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function _h(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var _n=Array.isArray,In=t=>t instanceof Map,Io=t=>t instanceof Set,ns=t=>typeof t=="object",Br=t=>typeof t=="function",qa=t=>typeof t=="boolean";function Ih(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var xt=t=>t.copy_||t.base_;var is=t=>t.modified_?t.copy_:t.base_;function Xa(t,e){if(In(t))return new Map(t);if(Io(t))return new Set(t);if(_n(t))return Array[Rn].slice.call(t);let r=Md(t);if(e===!0||e==="class_only"&&!r){let o=Ne.getOwnPropertyDescriptors(t);delete o[Se];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],c=o[s];c[vn]===!1&&(c[vn]=!0,c[Ya]=!0),(c.get||c.set)&&(o[s]={[Ya]:!0,[vn]:!0,[En]:c[En],[Ao]:t[s]})}return Ne.create($r(t),o)}else{let o=$r(t);if(o!==null&&r)return{...t};let i=Ne.create(o);return Ne.assign(i,t)}}function Ln(t,e=!1){return kn(t)||dt(t)||!Me(t)||(_o(t)>1&&Ne.defineProperties(t,{set:bn,add:bn,clear:bn,delete:bn}),Ne.freeze(t),e&&Tn(t,(r,o)=>{Ln(o,!0)},!1)),t}function Lh(){Ye(2)}var bn={[Ao]:Lh};function kn(t){return t===null||!ns(t)?!0:Ne.isFrozen(t)}var On="MapSet",Ja="Patches",Td="ArrayMethods",Dd={};function tr(t){let e=Dd[t];return e||Ye(0,t),e}var _d=t=>!!Dd[t];var Ro,Fd=()=>Ro,kh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_d(On)?tr(On):void 0,arrayMethodsPlugin_:_d(Td)?tr(Td):void 0});function Id(t,e){e&&(t.patchPlugin_=tr(Ja),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function es(t){ts(t),t.drafts_.forEach(Ph),t.drafts_=null}function ts(t){t===Ro&&(Ro=t.parent_)}var Ld=t=>Ro=kh(Ro,t);function Ph(t){let e=t[Se];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function kd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Se].modified_&&(es(e),Ye(4)),Me(t)&&(t=Pd(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[Se].base_,t,e)}else t=Pd(e,r);return Nh(e,t,!0),es(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Nd?t:void 0}function Pd(t,e){if(kn(e))return e;let r=e[Se];if(!r)return wn(e,t.handledSet_,t);if(!Pn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:o}=r;if(o)for(;o.length>0;)o.pop()(t);$d(r,t)}return r.copy_}function Nh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ln(e,r)}function Ud(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Pn=(t,e)=>t.scope_===e,Mh=[];function Bd(t,e,r,o){let i=xt(t),a=t.type_;if(o!==void 0&&Qa(i,o,a)===e){Cn(i,o,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;Tn(i,(d,p)=>{if(dt(p)){let f=c.get(p)||[];f.push(d),c.set(p,f)}})}let s=t.draftLocations_.get(e)??Mh;for(let c of s)Cn(i,c,r,a)}function Dh(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!Pn(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=is(a);Bd(t,a.draft_??a,s,r),$d(a,i)})}function $d(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(t);i&&o.generatePatches_(t,i,e)}Ud(t)}}function Fh(t,e,r){let{scope_:o}=t;if(dt(r)){let i=r[Se];Pn(i,o)&&i.callbacks_.push(function(){xn(t);let s=is(i);Bd(t,r,s,e)})}else Me(r)&&t.callbacks_.push(function(){let a=xt(t);t.type_===3?a.has(r)&&wn(r,o.handledSet_,o):Qa(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&wn(Qa(t.copy_,e,t.type_),o.handledSet_,o)})}function wn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||dt(t)||e.has(t)||!Me(t)||kn(t)||(e.add(t),Tn(t,(o,i)=>{if(dt(i)){let a=i[Se];if(Pn(a,r)){let s=is(a);Cn(t,o,s,t.type_),Ud(a)}}else Me(i)&&wn(i,e,r)})),t}function Uh(t,e){let r=_n(t),o={type_:r?1:0,scope_:e?e.scope_:Fd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=An;r&&(i=[o],a=To);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return o.draft_=c,o.revoke_=s,[c,o]}var An={get(t,e){if(e===Se)return t;let r=t.scope_.arrayMethodsPlugin_,o=t.type_===1&&typeof e=="string";if(o&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=xt(t);if(!Ka(i,e,t.type_))return $h(t,i,e);let a=i[e];if(t.finalized_||!Me(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ih(e))return a;if(a===Za(t.base_,e)||Bh(t,e,a)){xn(t);let s=t.type_===1?+e:e,c=os(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in xt(t)},ownKeys(t){return Reflect.ownKeys(xt(t))},set(t,e,r){let o=Hd(xt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let i=Za(xt(t),e),a=i?.[Se];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(_h(r,i)&&(r!==void 0||Ka(t.base_,e,t.type_)))return!0;xn(t),rs(t)}return t.copy_[e]===r&&(r!==void 0||Ka(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Fh(t,e,r)),!0},deleteProperty(t,e){return xn(t),Za(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),rs(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=xt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[vn]:!0,[Ya]:t.type_!==1||e!=="length",[En]:o[En],[Ao]:r[e]}},defineProperty(){Ye(11)},getPrototypeOf(t){return $r(t.base_)},setPrototypeOf(){Ye(12)}},To={};for(let t in An){let e=An[t];To[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)};To.set=function(t,e,r){return An.set.call(this,t[0],e,r,t[0])};function Za(t,e){let r=t[Se];return(r?xt(r):t)[e]}function Bh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Me(r)||r[Se]?!1:t.baseRefs_.has(r)}function $h(t,e,r){let o=Hd(e,r);return o?Ao in o?o[Ao]:o.get?.call(t.draft_):void 0}function Hd(t,e){if(!(e in t))return;let r=$r(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=$r(r)}}function rs(t){t.modified_||(t.modified_=!0,t.parent_&&rs(t.parent_))}function xn(t){t.copy_||(t.assigned_=new Map,t.copy_=Xa(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Hh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(Br(e)&&!Br(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,f=>r.call(this,f,...p))}}Br(r)||Ye(6),o!==void 0&&!Br(o)&&Ye(7);let i;if(Me(e)){let a=Ld(this),s=os(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?es(a):ts(a)}return Id(a,o),kd(i,a)}else if(!e||!ns(e)){if(i=r(e),i===void 0&&(i=e),i===Nd&&(i=void 0),this.autoFreeze_&&Ln(i,!0),o){let a=[],s=[];tr(Ja).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Ye(1,e)},this.produceWithPatches=(e,r)=>{if(Br(e))return(s,...c)=>this.produceWithPatches(s,d=>e(d,...c));let o,i;return[this.produce(e,r,(s,c)=>{o=s,i=c}),o,i]},qa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),qa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),qa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Me(t)||Ye(8),dt(t)&&(t=Vd(t));let e=Ld(this),r=os(e,t,void 0);return r[Se].isManual_=!0,ts(e),r}finishDraft(t,e){let r=t&&t[Se];(!r||!r.isManual_)&&Ye(9);let{scope_:o}=r;return Id(o,e),kd(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let o=tr(Ja).applyPatches_;return dt(t)?o(t,e):this.produce(t,i=>o(i,e))}};function os(t,e,r,o){let[i,a]=In(e)?tr(On).proxyMap_(e,r):Io(e)?tr(On).proxySet_(e,r):Uh(e,r);return(r?.scope_??Fd()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?Dh(r,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Vd(t){return dt(t)||Ye(10,t),zd(t)}function zd(t){if(!Me(t)||kn(t))return t;let e=t[Se],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Xa(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=Xa(t,!0);let i=r;return Io(r)&&(r=new Set),Tn(i,(a,s)=>{Cn(r,a,zd(s))},o),e&&(e.finalized_=!1),r}var Vh=globalThis.Iterator,gS=typeof Vh?.from=="function";var zh=new Hh,as=zh.produce;function Wd(t){return({dispatch:r,getState:o})=>i=>a=>typeof a=="function"?a(r,o,t):i(a)}var Gd=Wd(),jd=Wd;var Wh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wo:wo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Gh=t=>t&&typeof t.match=="function";function Pt(t,e){function r(...o){if(e){let i=e(...o);if(!i)throw new Error(ut(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:o[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=o=>wd(o)&&o.type===t,r}var Qd=class Lo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Lo.prototype)}static get[Symbol.species](){return Lo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Lo(...e[0].concat(this)):new Lo(...e.concat(this))}};function Kd(t){return Me(t)?as(t,()=>{}):t}function Nn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function jh(t){return typeof t=="boolean"}var Kh=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Qd;return r&&(jh(r)?s.push(Gd):s.push(jd(r.extraArgument))),s},qh="RTK_autoBatch";var qd=t=>e=>{setTimeout(e,t)},Zh=(t,e)=>r=>{let o=!1,i,a,s=()=>{o||(o=!0,cancelAnimationFrame(i),clearTimeout(a),r())};i=t(s),a=setTimeout(s,e)},Yh=(t={type:"raf"})=>e=>(...r)=>{let o=e(...r),i=!0,a=!1,s=!1,c=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zh(window.requestAnimationFrame,100):qd(10):t.type==="callback"?t.queueNotification:qd(t.timeout),p=()=>{s=!1,a&&(a=!1,c.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),m=o.subscribe(h);return c.add(f),()=>{m(),c.delete(f)}},dispatch(f){try{return i=!f?.meta?.[qh],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Qh=t=>function(r){let{autoBatch:o=!0}=r??{},i=new Qd(t);return o&&i.push(Yh(typeof o=="object"?o:void 0)),i};function Xd(t){let e=Kh(),{reducer:r=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:c=void 0}=t||{},d;if(typeof r=="function")d=r;else if(yn(r))d=ja(r);else throw new Error(ut(1));let p;typeof o=="function"?p=o(e):p=e();let f=wo;i&&(f=Wh({trace:!1,...typeof i=="object"&&i}));let h=Od(...p),m=Qh(h),v=typeof c=="function"?c(m):m(),S=f(...v);return Ga(d,s,S)}function Jd(t){let e={},r=[],o,i={addCase(a,s){let c=typeof a=="string"?a:a.type;if(!c)throw new Error(ut(28));if(c in e)throw new Error(ut(29));return e[c]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return t(i),[e,r,o]}function Xh(t){return typeof t=="function"}function Jh(t,e){let[r,o,i]=Jd(e),a;if(Xh(t))a=()=>Kd(t());else{let c=Kd(t);a=()=>c}function s(c=a(),d){let p=[r[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(dt(f)){let m=h(f,d);return m===void 0?f:m}else{if(Me(f))return as(f,m=>h(m,d));{let m=h(f,d);if(m===void 0){if(f===null)return f;throw new Error(ut(9))}return m}}return f},c)}return s.getInitialState=a,s}var em=(t,e)=>Gh(t)?t.match(e):t(e);function tm(...t){return e=>t.some(r=>em(r,e))}var rm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",om=(t=21)=>{let e="",r=t;for(;r--;)e+=rm[Math.random()*64|0];return e},nm=["name","message","stack","code"],ss=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Zd=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},im=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of nm)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Yd="External signal was aborted",am=(()=>{function t(e,r,o){let i=Pt(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=Pt(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=Pt(e+"/rejected",(d,p,f,h,m)=>({payload:h,error:(o&&o.serializeError||im)(d||"Rejected"),meta:{...m||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(f,h,m)=>{let v=o?.idGenerator?o.idGenerator(d):om(),S=new AbortController,w,E;function R(b){E=b,S.abort()}p&&(p.aborted?R(Yd):p.addEventListener("abort",()=>R(Yd),{once:!0}));let k=(async function(){let b;try{let y=o?.condition?.(d,{getState:h,extra:m});if(cm(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let x=new Promise((A,M)=>{w=()=>{M({name:"AbortError",message:E||"Aborted"})},S.signal.addEventListener("abort",w,{once:!0})});f(a(v,d,o?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:m}))),b=await Promise.race([x,Promise.resolve(r(d,{dispatch:f,getState:h,extra:m,requestId:v,signal:S.signal,abort:R,rejectWithValue:((A,M)=>new ss(A,M)),fulfillWithValue:((A,M)=>new Zd(A,M))})).then(A=>{if(A instanceof ss)throw A;return A instanceof Zd?i(A.payload,v,d,A.meta):i(A,v,d)})])}catch(y){b=y instanceof ss?s(null,v,d,y.payload,y.meta):s(y,v,d)}finally{w&&S.signal.removeEventListener("abort",w)}return o&&!o.dispatchConditionRejection&&s.match(b)&&b.meta.condition||f(b),b})();return Object.assign(k,{abort:R,requestId:v,arg:d,unwrap(){return k.then(sm)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:tm(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function sm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function cm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var eu=Symbol.for("rtk-slice-createasyncthunk"),OS={[eu]:am};function lm(t,e){return`${t}/${e}`}function dm({creators:t}={}){let e=t?.asyncThunk?.[eu];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(ut(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(pm()):o.reducers)||{},c=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,y){let x=typeof b=="string"?b:b.type;if(!x)throw new Error(ut(12));if(x in d.sliceCaseReducersByType)throw new Error(ut(13));return d.sliceCaseReducersByType[x]=y,p},addMatcher(b,y){return d.sliceMatchers.push({matcher:b,reducer:y}),p},exposeAction(b,y){return d.actionCreators[b]=y,p},exposeCaseReducer(b,y){return d.sliceCaseReducersByName[b]=y,p}};c.forEach(b=>{let y=s[b],x={reducerName:b,type:lm(i,b),createNotation:typeof o.reducers=="function"};hm(y)?gm(x,y,p,e):fm(x,y,p)});function f(){let[b={},y=[],x=void 0]=typeof o.extraReducers=="function"?Jd(o.extraReducers):[o.extraReducers],A={...b,...d.sliceCaseReducersByType};return Jh(o.initialState,M=>{for(let V in A)M.addCase(V,A[V]);for(let V of d.sliceMatchers)M.addMatcher(V.matcher,V.reducer);for(let V of y)M.addMatcher(V.matcher,V.reducer);x&&M.addDefaultCase(x)})}let h=b=>b,m=new Map,v=new WeakMap,S;function w(b,y){return S||(S=f()),S(b,y)}function E(){return S||(S=f()),S.getInitialState()}function R(b,y=!1){function x(M){let V=M[b];return typeof V>"u"&&y&&(V=Nn(v,x,E)),V}function A(M=h){return Nn(Nn(m,y,()=>new WeakMap),M,()=>{let V={};for(let[ne,L]of Object.entries(o.selectors??{}))V[ne]=um(L,M,()=>Nn(v,M,E),y);return V})}return{reducerPath:b,getSelectors:A,get selectors(){return A(x)},selectSlice:x}}let k={name:i,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...R(a),injectInto(b,{reducerPath:y,...x}={}){let A=y??a;return b.inject({reducerPath:A,reducer:w},x),{...k,...R(A,!0)}}};return k}}function um(t,e,r,o){function i(a,...s){let c=e(a);return typeof c>"u"&&o&&(c=r()),t(c,...s)}return i.unwrapped=t,i}var tu=dm();function pm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function fm({type:t,reducerName:e,createNotation:r},o,i){let a,s;if("reducer"in o){if(r&&!mm(o))throw new Error(ut(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Pt(t,s):Pt(t))}function hm(t){return t._reducerDefinitionType==="asyncThunk"}function mm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function gm({type:t,reducerName:e},r,o,i){if(!i)throw new Error(ut(18));let{payloadCreator:a,fulfilled:s,pending:c,rejected:d,settled:p,options:f}=r,h=i(t,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),c&&o.addCase(h.pending,c),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||Mn,pending:c||Mn,rejected:d||Mn,settled:p||Mn})}function Mn(){}var ru="listener",ou="completed",nu="cancelled",wS=`task-${nu}`,AS=`task-${ou}`,RS=`${ru}-${nu}`,TS=`${ru}-${ou}`;var{assign:iu}=Object;var cs="listenerMiddleware";var ym=iu(Pt(`${cs}/add`),{withTypes:()=>ym}),_S=Pt(`${cs}/removeAll`),bm=iu(Pt(`${cs}/remove`),{withTypes:()=>bm});function ut(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Qe=class t extends yt{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Ur(a))return a;if(i==null)return;let s=tu({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Xd({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=Pe(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus,i.deprecatedKeys)}constructor(e,r,o,i){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new Co,this.injectInto=(s,c)=>this.reduxSlice.injectInto(s,c),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let p=c,f=s[p];return f?(...h)=>{let m=f(...h.map(a));return this.reduxStore.dispatch(m),m}:h=>{let m=p,v=this.getState()[m];he(v,h)||this.setState({[m]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function vm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ur(e)&&e.clear()}var Xe=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function ls(t,e,r){return new Xe(t,e,r).watch()}var rr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var fs={};U(fs,{scrollHelper:()=>xm});var us,Dn=new Map,ps=class{lock(e,r){if(r){let o=Dn.get(r);if(o==null||o===e)return Dn.set(r,e),r}}release(e,r){r&&Dn.get(r)===e&&Dn.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of wt(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=gt(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(us=window.FluidTopicsScrollHelper)!==null&&us!==void 0?us:new ps;var xm=window.FluidTopicsScrollHelper;var gs={};U(gs,{toFtFormComponent:()=>ms});var hs=Symbol("elementInternals"),ms=ae(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[hs].form}constructor(...o){super(o),this[hs]=this.attachInternals()}setFormValue(o){this[hs].setFormValue(o)}}return e});var ys={};U(ys,{DateFormatter:()=>or});var or=class{static format(e,r,o,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,r,o,i,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${c} ${d}`:c}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var vs={};U(vs,{ALL_KEYS_VALUE:()=>bs,SameWindowStorageEvent:()=>Hr});var bs="__all__",Hr=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==bs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Hr(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Hr(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Hr(bs))}});var Ss={};U(Ss,{FocusMainContentEvent:()=>xs});var xs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var au={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Sm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Em(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Sm);document.addEventListener("click",Em);var su=T`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
|
@@ -68,20 +68,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
68
68
|
width:auto;
|
|
69
69
|
height:auto;
|
|
70
70
|
}
|
|
71
|
-
`;var Es={};U(Es,{withAriaNotification:()=>
|
|
71
|
+
`;var Es={};U(Es,{withAriaNotification:()=>Om});var Cm={checkVisibility:!0},Om=ae(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,i){let{checkVisibility:a}={...Cm,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new co({type:"aria",message:o})))},20)}}return e});var Cs={};U(Cs,{withConditionalVisibility:()=>wm});var cu=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};function wm(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,i){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return cu([g({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),cu([F()],e.prototype,"isVisible",void 0),e}var ws={};U(ws,{FormController:()=>Os});function Am(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Os=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Am(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let o={...this.data};o[e]=r,this.data=o,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var o,i;let a=(i=(o=this.config[e]).validator)===null||i===void 0?void 0:i.call(o,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,o,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=ia(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var As={};U(As,{MetadataValueLocalizer:()=>Vr});var Vr=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};function Rs(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function lu(t,e,r){return t?e(t):r?.(t)}var ue=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},nr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(nr||(nr={}));var Nt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Nt||(Nt={}));var Ts=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var hE=ae(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=nr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Nt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===nr.blur||this.validateOn===nr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==Nt.default&&this.validateOn===nr.blurWithStatusResolutionOnInput||this.validateOn===nr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Rs(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Rs(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ts(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return I`
|
|
72
72
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
73
73
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
74
|
-
${
|
|
74
|
+
${wr(this.errorMessages,o=>I`
|
|
75
75
|
<li>${o}</li>
|
|
76
76
|
`)}
|
|
77
|
-
${
|
|
77
|
+
${wr(this.warningMessages,o=>I`
|
|
78
78
|
<li>${o}</li>
|
|
79
79
|
`)}
|
|
80
|
-
${
|
|
80
|
+
${lu(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>I`
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Nt.error:this.warningMessages.length?Nt.warning:Nt.default}}return ue([g()],e.prototype,"warningRules",void 0),ue([g()],e.prototype,"errorRules",void 0),ue([g()],e.prototype,"validateOn",void 0),ue([g({type:Boolean})],e.prototype,"validateAtRender",void 0),ue([g()],e.prototype,"label",void 0),ue([g({type:Boolean})],e.prototype,"hideLabel",void 0),ue([g()],e.prototype,"name",void 0),ue([g({type:Boolean})],e.prototype,"disabled",void 0),ue([g()],e.prototype,"helperText",void 0),ue([g()],e.prototype,"forceStatus",void 0),ue([g({reflect:!0})],e.prototype,"value",void 0),ue([F()],e.prototype,"errorMessages",void 0),ue([F()],e.prototype,"warningMessages",void 0),ue([F()],e.prototype,"status",void 0),ue([F()],e.prototype,"focused",void 0),ue([F()],e.prototype,"additionalWarningRules",void 0),ue([F()],e.prototype,"additionalErrorRules",void 0),ue([F()],e.prototype,"forceErrorMessages",void 0),e});var ko=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),ko(o,e);return!0},Fn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},du=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Im(e)}};function Tm(t){this._$AN!==void 0?(Fn(this),this._$AM=t,du(this)):this._$AM=t}function _m(t,e=!1,r=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)ko(o[a],!1),Fn(o[a]);else o!=null&&(ko(o,!1),Fn(o));else ko(this,t)}var Im=t=>{t.type==ot.CHILD&&(t._$AP??=_m,t._$AQ??=Tm)},zr=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),du(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(ko(this,e),Fn(this))}setValue(e){if(Tc(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var _s=class extends zr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return le}update(e){return this.part=e,this.ensureFocusTrap(e.element),le}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=0;o<r.length;o++){let i=r[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let i=r[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Be&&await e.updateComplete}isInsideElement(e,r){return wt(e).includes(r)}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},WE=Ie(_s);var uu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(uu||(uu={}));var Lm={sm:640,md:768,lg:1024,xl:1280},Is=class extends zr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,o,i]){return this.lastArgs=[r,o,i],this.render(r,o,i)}render(e,r,o){let i=this.resolveThreshold(e),a=o??(()=>D);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Lm[e]}},qE=Ie(Is);var Un=class{constructor(e,r=20){this.onChange=e,this.maxCapacity=r,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==r).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let r=e.trim().toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==r);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let r=JSON.stringify(e);window.localStorage.setItem(this.storageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}};var Ls,ir=class{static compareDeepPosition(e,r){if(e===r)return 0;let o=wt(e).reverse(),i=wt(r).reverse();if(o[0]!==i[0])return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;let a=0;for(;(o[a]||i[a])&&o[a]===i[a];)a++;return o[a]==null?Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING:i[a]==null?Node.DOCUMENT_POSITION_CONTAINS|Node.DOCUMENT_POSITION_PRECEDING:o[a].compareDocumentPosition(i[a])}static compareDocumentPosition(e,r){let o=Ls.compareDeepPosition(e,r);return{equal:o===0,disconnected:(o&Node.DOCUMENT_POSITION_DISCONNECTED)!==0,implementationSpecific:(o&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)!==0,preceding:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0,following:(o&Node.DOCUMENT_POSITION_FOLLOWING)!==0,contains:(o&Node.DOCUMENT_POSITION_CONTAINS)!==0,containedBy:(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}}static findFirstInDOM(e){let r=0;for(let o=1;o<e.length;o++)this.domOrderSorter(e[r],e[o])>0&&(r=o);return e[r]}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};Ls=ir;ir.domOrderSorter=(t,e)=>{if(t===e||!t?.isConnected&&!e?.isConnected)return 0;if(!e?.isConnected)return-1;if(!t?.isConnected)return 1;let{preceding:r,following:o,contains:i,containedBy:a}=Ls.compareDocumentPosition(t,e);return r||i?1:o||a?-1:0};var ks=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Ps)return!1;let r=ir.getDeepActiveElement();if(!r)return!0;let o=ir.compareDocumentPosition(r,e);return o.disconnected||o.implementationSpecific?!1:o.preceding&&!o.contains||o.containedBy}};window.FluidTopicsFocusHelper=ks;var Ns,Ms,Ds,Fs,Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ds=(Ms=(Ns=window.safari)===null||Ns===void 0?void 0:Ns.pushNotification)===null||Ms===void 0?void 0:Ms.toString())!==null&&Ds!==void 0?Ds:"")==="[object SafariRemoteNotification]",Ps="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fs=window.ftGlobals)!==null&&Fs!==void 0?Fs:{lit:Bi,litDecorators:Vi,litRepeat:zi,litClassMap:Wi,litStyleMap:Gi,litUnsafeHTML:Ki,wcUtils:{...qi,...na,...Zi,...da,...ys,...ua,...Yi,...ma,...oa,...Ta,...Ss,...au,...fs,..._a,...ha,...Ma,...gs,...Pa,...Es,...Cs,...vd,...ea,...Ua,...As,...ga,...$a,...su,...Sd,...Ha,...ds,...vs,...Ia,...ka,...aa,...ca,...ws,isSafari:Po,isTouchScreen:Ps,setVariable:G}};var pu=T`
|
|
85
85
|
:host {
|
|
86
86
|
display: inline-block;
|
|
87
87
|
}
|
|
@@ -101,28 +101,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
101
101
|
all: unset;
|
|
102
102
|
position: relative;
|
|
103
103
|
}
|
|
104
|
-
`;var St;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(St||(St={}));var
|
|
104
|
+
`;var St;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(St||(St={}));var Bn=class extends CustomEvent{constructor(e){super(St.requestedTopicFiltered,{detail:e})}},Et;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Et||(Et={}));var km=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Bs=class extends zt{constructor(e){super("register-ft-reader-component",e)}},Us=Symbol("registerInterval"),Pm=ae(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=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[Us]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Us]):this.dispatchEvent(new Bs({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Us,km([F()],r.prototype,"stateManager",void 0),r}),$n=class extends Pm(we){};var hu=Symbol.for(""),Nm=t=>{if(t?.r===hu)return t?._$litStatic$},$s=t=>({_$litStatic$:t,r:hu});var fu=new Map,Hs=t=>(e,...r)=>{let o=r.length,i,a,s=[],c=[],d,p=0,f=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(i=Nm(a))!==void 0);)d+=i+e[++p],f=!0;p!==o&&c.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),f){let h=s.join("$$lit$$");(e=fu.get(h))===void 0&&(s.raw=s,fu.set(h,e=s)),r=c}return t(e,...r)},Vs=Hs(I),cO=Hs(Ni),lO=Hs(Mi);var We;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(We||(We={}));var mu=n.extend("--ft-typography-font-family","",N.titleFont),Ct=n.extend("--ft-typography-font-family","",N.contentFont),_={fontFamily:Ct,fontSize:n.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:n.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:n.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:n.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:n.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:n.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ar={fontFamily:n.extend("--ft-typography-title-font-family","",mu),fontSize:n.extend("--ft-typography-title-font-size","",_.fontSize,"20px"),fontWeight:n.extend("--ft-typography-title-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-letter-spacing","",_.letterSpacing,"0.15px"),lineHeight:n.extend("--ft-typography-title-line-height","",_.lineHeight,"1.2"),textTransform:n.extend("--ft-typography-title-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-text-decoration","",_.textDecoration,"inherit")},sr={fontFamily:n.extend("--ft-typography-title-dense-font-family","",mu),fontSize:n.extend("--ft-typography-title-dense-font-size","",_.fontSize,"14px"),fontWeight:n.extend("--ft-typography-title-dense-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-dense-letter-spacing","",_.letterSpacing,"0.105px"),lineHeight:n.extend("--ft-typography-title-dense-line-height","",_.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-title-dense-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-dense-text-decoration","",_.textDecoration,"inherit")},cr={fontFamily:n.extend("--ft-typography-subtitle1-font-family","",Ct),fontSize:n.extend("--ft-typography-subtitle1-font-size","",_.fontSize,"16px"),fontWeight:n.extend("--ft-typography-subtitle1-font-weight","",_.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-subtitle1-letter-spacing","",_.letterSpacing,"0.144px"),lineHeight:n.extend("--ft-typography-subtitle1-line-height","",_.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-subtitle1-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle1-text-decoration","",_.textDecoration,"inherit")},lr={fontFamily:n.extend("--ft-typography-subtitle2-font-family","",Ct),fontSize:n.extend("--ft-typography-subtitle2-font-size","",_.fontSize,"14px"),fontWeight:n.extend("--ft-typography-subtitle2-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-subtitle2-letter-spacing","",_.letterSpacing,"0.098px"),lineHeight:n.extend("--ft-typography-subtitle2-line-height","",_.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-subtitle2-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle2-text-decoration","",_.textDecoration,"inherit")},dr={fontFamily:n.extend("--ft-typography-body1-font-family","",Ct),fontSize:n.extend("--ft-typography-body1-font-size","",_.fontSize,"16px"),fontWeight:n.extend("--ft-typography-body1-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body1-letter-spacing","",_.letterSpacing,"0.496px"),lineHeight:n.extend("--ft-typography-body1-line-height","",_.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-body1-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body1-text-decoration","",_.textDecoration,"inherit")},De={fontFamily:n.extend("--ft-typography-body2-font-family","",Ct),fontSize:n.extend("--ft-typography-body2-font-size","",_.fontSize,"14px"),fontWeight:n.extend("--ft-typography-body2-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body2-letter-spacing","",_.letterSpacing,"0.252px"),lineHeight:n.extend("--ft-typography-body2-line-height","",_.lineHeight,"1.4"),textTransform:n.extend("--ft-typography-body2-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body2-text-decoration","",_.textDecoration,"inherit")},ur={fontFamily:n.extend("--ft-typography-caption-font-family","",Ct),fontSize:n.extend("--ft-typography-caption-font-size","",_.fontSize,"12px"),fontWeight:n.extend("--ft-typography-caption-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-caption-letter-spacing","",_.letterSpacing,"0.396px"),lineHeight:n.extend("--ft-typography-caption-line-height","",_.lineHeight,"1.33"),textTransform:n.extend("--ft-typography-caption-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-caption-text-decoration","",_.textDecoration,"inherit")},pr={fontFamily:n.extend("--ft-typography-breadcrumb-font-family","",Ct),fontSize:n.extend("--ft-typography-breadcrumb-font-size","",_.fontSize,"10px"),fontWeight:n.extend("--ft-typography-breadcrumb-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-breadcrumb-letter-spacing","",_.letterSpacing,"0.33px"),lineHeight:n.extend("--ft-typography-breadcrumb-line-height","",_.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-breadcrumb-text-transform","",_.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-breadcrumb-text-decoration","",_.textDecoration,"inherit")},fr={fontFamily:n.extend("--ft-typography-overline-font-family","",Ct),fontSize:n.extend("--ft-typography-overline-font-size","",_.fontSize,"10px"),fontWeight:n.extend("--ft-typography-overline-font-weight","",_.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-overline-letter-spacing","",_.letterSpacing,"1.5px"),lineHeight:n.extend("--ft-typography-overline-line-height","",_.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-overline-text-transform","",_.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-overline-text-decoration","",_.textDecoration,"inherit")},Je={fontFamily:n.extend("--ft-typography-button-font-family","",Ct),fontSize:n.extend("--ft-typography-button-font-size","",_.fontSize,"14px"),fontWeight:n.extend("--ft-typography-button-font-weight","",_.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-button-letter-spacing","",_.letterSpacing,"1.246px"),lineHeight:n.extend("--ft-typography-button-line-height","",_.lineHeight,"1.15"),textTransform:n.extend("--ft-typography-button-text-transform","",_.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-button-text-decoration","",_.textDecoration,"inherit")},gu=T`
|
|
105
105
|
.ft-typography--title {
|
|
106
|
-
font-family: ${nr.fontFamily};
|
|
107
|
-
font-size: ${nr.fontSize};
|
|
108
|
-
font-weight: ${nr.fontWeight};
|
|
109
|
-
letter-spacing: ${nr.letterSpacing};
|
|
110
|
-
line-height: ${nr.lineHeight};
|
|
111
|
-
text-transform: ${nr.textTransform};
|
|
112
|
-
text-decoration: ${nr.textDecoration};
|
|
113
|
-
}
|
|
114
|
-
`,mu=T`
|
|
115
|
-
.ft-typography--title-dense {
|
|
116
|
-
font-family: ${ir.fontFamily};
|
|
117
|
-
font-size: ${ir.fontSize};
|
|
118
|
-
font-weight: ${ir.fontWeight};
|
|
119
|
-
letter-spacing: ${ir.letterSpacing};
|
|
120
|
-
line-height: ${ir.lineHeight};
|
|
121
|
-
text-transform: ${ir.textTransform};
|
|
122
|
-
text-decoration: ${ir.textDecoration};
|
|
123
|
-
}
|
|
124
|
-
`,gu=T`
|
|
125
|
-
.ft-typography--subtitle1 {
|
|
126
106
|
font-family: ${ar.fontFamily};
|
|
127
107
|
font-size: ${ar.fontSize};
|
|
128
108
|
font-weight: ${ar.fontWeight};
|
|
@@ -132,7 +112,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
132
112
|
text-decoration: ${ar.textDecoration};
|
|
133
113
|
}
|
|
134
114
|
`,yu=T`
|
|
135
|
-
.ft-typography--
|
|
115
|
+
.ft-typography--title-dense {
|
|
136
116
|
font-family: ${sr.fontFamily};
|
|
137
117
|
font-size: ${sr.fontSize};
|
|
138
118
|
font-weight: ${sr.fontWeight};
|
|
@@ -141,9 +121,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
141
121
|
text-transform: ${sr.textTransform};
|
|
142
122
|
text-decoration: ${sr.textDecoration};
|
|
143
123
|
}
|
|
144
|
-
|
|
145
124
|
`,bu=T`
|
|
146
|
-
.ft-typography--
|
|
125
|
+
.ft-typography--subtitle1 {
|
|
147
126
|
font-family: ${cr.fontFamily};
|
|
148
127
|
font-size: ${cr.fontSize};
|
|
149
128
|
font-weight: ${cr.fontWeight};
|
|
@@ -152,18 +131,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
152
131
|
text-transform: ${cr.textTransform};
|
|
153
132
|
text-decoration: ${cr.textDecoration};
|
|
154
133
|
}
|
|
155
|
-
`,xu=T`
|
|
156
|
-
.ft-typography--body2 {
|
|
157
|
-
font-family: ${De.fontFamily};
|
|
158
|
-
font-size: ${De.fontSize};
|
|
159
|
-
font-weight: ${De.fontWeight};
|
|
160
|
-
letter-spacing: ${De.letterSpacing};
|
|
161
|
-
line-height: ${De.lineHeight};
|
|
162
|
-
text-transform: ${De.textTransform};
|
|
163
|
-
text-decoration: ${De.textDecoration};
|
|
164
|
-
}
|
|
165
134
|
`,vu=T`
|
|
166
|
-
.ft-typography--
|
|
135
|
+
.ft-typography--subtitle2 {
|
|
167
136
|
font-family: ${lr.fontFamily};
|
|
168
137
|
font-size: ${lr.fontSize};
|
|
169
138
|
font-weight: ${lr.fontWeight};
|
|
@@ -172,8 +141,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
172
141
|
text-transform: ${lr.textTransform};
|
|
173
142
|
text-decoration: ${lr.textDecoration};
|
|
174
143
|
}
|
|
175
|
-
|
|
176
|
-
|
|
144
|
+
|
|
145
|
+
`,xu=T`
|
|
146
|
+
.ft-typography--body1 {
|
|
177
147
|
font-family: ${dr.fontFamily};
|
|
178
148
|
font-size: ${dr.fontSize};
|
|
179
149
|
font-weight: ${dr.fontWeight};
|
|
@@ -182,8 +152,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
182
152
|
text-transform: ${dr.textTransform};
|
|
183
153
|
text-decoration: ${dr.textDecoration};
|
|
184
154
|
}
|
|
155
|
+
`,Su=T`
|
|
156
|
+
.ft-typography--body2 {
|
|
157
|
+
font-family: ${De.fontFamily};
|
|
158
|
+
font-size: ${De.fontSize};
|
|
159
|
+
font-weight: ${De.fontWeight};
|
|
160
|
+
letter-spacing: ${De.letterSpacing};
|
|
161
|
+
line-height: ${De.lineHeight};
|
|
162
|
+
text-transform: ${De.textTransform};
|
|
163
|
+
text-decoration: ${De.textDecoration};
|
|
164
|
+
}
|
|
185
165
|
`,Eu=T`
|
|
186
|
-
.ft-typography--
|
|
166
|
+
.ft-typography--caption {
|
|
187
167
|
font-family: ${ur.fontFamily};
|
|
188
168
|
font-size: ${ur.fontSize};
|
|
189
169
|
font-weight: ${ur.fontWeight};
|
|
@@ -193,28 +173,48 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
193
173
|
text-decoration: ${ur.textDecoration};
|
|
194
174
|
}
|
|
195
175
|
`,Cu=T`
|
|
196
|
-
.ft-typography--
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
text-decoration: ${
|
|
176
|
+
.ft-typography--breadcrumb {
|
|
177
|
+
font-family: ${pr.fontFamily};
|
|
178
|
+
font-size: ${pr.fontSize};
|
|
179
|
+
font-weight: ${pr.fontWeight};
|
|
180
|
+
letter-spacing: ${pr.letterSpacing};
|
|
181
|
+
line-height: ${pr.lineHeight};
|
|
182
|
+
text-transform: ${pr.textTransform};
|
|
183
|
+
text-decoration: ${pr.textDecoration};
|
|
204
184
|
}
|
|
205
185
|
`,Ou=T`
|
|
186
|
+
.ft-typography--overline {
|
|
187
|
+
font-family: ${fr.fontFamily};
|
|
188
|
+
font-size: ${fr.fontSize};
|
|
189
|
+
font-weight: ${fr.fontWeight};
|
|
190
|
+
letter-spacing: ${fr.letterSpacing};
|
|
191
|
+
line-height: ${fr.lineHeight};
|
|
192
|
+
text-transform: ${fr.textTransform};
|
|
193
|
+
text-decoration: ${fr.textDecoration};
|
|
194
|
+
}
|
|
195
|
+
`,wu=T`
|
|
196
|
+
.ft-typography--button {
|
|
197
|
+
font-family: ${Je.fontFamily};
|
|
198
|
+
font-size: ${Je.fontSize};
|
|
199
|
+
font-weight: ${Je.fontWeight};
|
|
200
|
+
letter-spacing: ${Je.letterSpacing};
|
|
201
|
+
line-height: ${Je.lineHeight};
|
|
202
|
+
text-transform: ${Je.textTransform};
|
|
203
|
+
text-decoration: ${Je.textDecoration};
|
|
204
|
+
}
|
|
205
|
+
`,Au=T`
|
|
206
206
|
.ft-typography {
|
|
207
207
|
vertical-align: inherit;
|
|
208
208
|
}
|
|
209
|
-
`;var
|
|
210
|
-
<${
|
|
209
|
+
`;var Ru=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ge=class extends H{constructor(){super(...arguments),this.variant=We.body1}render(){return this.element?Vs`
|
|
210
|
+
<${$s(this.element)}
|
|
211
211
|
part="text"
|
|
212
212
|
class="ft-typography ft-typography--${this.variant}">
|
|
213
213
|
<slot></slot>
|
|
214
|
-
</${
|
|
215
|
-
`:
|
|
214
|
+
</${$s(this.element)}>
|
|
215
|
+
`:Vs`
|
|
216
216
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}};ge.styles=[
|
|
217
|
+
`}};ge.styles=[gu,yu,bu,vu,xu,Su,Eu,Cu,Ou,wu,Au];Ru([g()],ge.prototype,"element",void 0);Ru([g()],ge.prototype,"variant",void 0);var Tu={"ft-typography":ge};q(Tu);var No={distance:n.create("--ft-tooltip-distance","","SIZE","4px"),color:n.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:n.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:n.extend("--ft-tooltip-border-radius","",N.borderRadiusS),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","150px")},_u=T`
|
|
218
218
|
.ft-tooltip--container {
|
|
219
219
|
display: block;
|
|
220
220
|
}
|
|
@@ -232,28 +232,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
232
232
|
box-sizing: border-box;
|
|
233
233
|
overflow: hidden;
|
|
234
234
|
width: max-content;
|
|
235
|
-
max-width: ${
|
|
235
|
+
max-width: ${No.maxWidth};
|
|
236
236
|
text-align: center;
|
|
237
|
-
padding: ${
|
|
237
|
+
padding: ${No.distance};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.ft-tooltip--content {
|
|
241
241
|
padding: 4px 8px;
|
|
242
|
-
border-radius: ${
|
|
243
|
-
background-color: ${
|
|
244
|
-
color: ${
|
|
242
|
+
border-radius: ${No.borderRadiusS};
|
|
243
|
+
background-color: ${No.backgroundColor};
|
|
244
|
+
color: ${No.color};
|
|
245
245
|
position: relative;
|
|
246
246
|
word-break: break-word;
|
|
247
247
|
}
|
|
248
|
-
`;var km="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var No=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};No.eventName="ui-locale-changed";var Nm={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>C.dispatchEvent(new Fe(e.payload)),0))}},C=Qe.get({name:km,reducers:Nm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var $n=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Tu=ae(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(C)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(c=>c.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>rr.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $n([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$n([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$n([j({store:C.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),$n([j({store:C.name})],e.prototype,"uiLocale",void 0),e});var pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=C.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=C.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Vr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pr.await()}};var pe=class extends Vr{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new nt,this.cache=e?i.commonCache:new nt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var Hn=class extends pe{async listMySearches(){let{session:e}=C.getState();return ze(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Vn=class extends pe{async listMyBookmarks(){let e=C.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var zn=class extends pe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var Wn=class extends pe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var Mm="ft-user-assets",Dm={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Ve).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:i}=e.payload;zs(t,r,[...Vs(t,r),i]),_u(t,r,1,o),Iu(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;zs(t,r,Vs(t,r).map(i=>i.id===o.id?o:i)),Iu(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;zs(t,r,Vs(t,r).filter(a=>a.id!==i)),_u(t,r,-1,o)}},Lu={[Ve.SEARCHES]:"savedSearches",[Ve.BOOKMARKS]:"bookmarks",[Ve.BOOKS]:void 0,[Ve.COLLECTIONS]:void 0},Vs=(t,e)=>{var r;let o=Lu[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},zs=(t,e,r)=>{let o=Lu[e];o&&(t[o]=r)},_u=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ve.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},Iu=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},Ae=Qe.get({name:Mm,reducers:Dm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ve).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ws=class{constructor(e=new zn,r=new Wn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vn,this.savedSearchesService=new Hn,C.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=C.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ae.actions.clearAssetCount(),Ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ae.getState().assetCounts.allAsset[e]!==r.count&&Ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ae.getState().assetCounts.bookmarkByMap).length!==0;e===Ve.BOOKMARKS&&r&&Ae.actions.clearBookmarkCountByMap(),Ae.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ae.actions.bookmarks(r)}}},Gs=new Ws;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Gs);var js=class{addCommand(e,r=!1){C.commands.add(e,r)}consumeCommand(e){return C.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new js;var Pu,zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Fm=Symbol("clearAfterUnitTest"),Gn=class extends nn(pe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Pu]=()=>{this.defaultMessages={},this.cache=new nt,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=C.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};he(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new vo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Pe)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new zr({loadedContexts:e})),this.dispatchEvent(new zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new zr({loadedContexts:[e]})),this.dispatchEvent(new zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>rn(0).then(()=>o()).catch(()=>null)))}};Pu=Fm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Wr=window.FluidTopicsI18nService,jn=window.FluidTopicsCustomI18nService;var Ks=class{highlightHtml(e,r,o){Fa(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Ks;var qs=class{isDate(e){var r,o,i,a;return(a=(o=((i=(r=C.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a,s;if(e==null)return"";try{return rr.format(e,(o=r?.locale)!==null&&o!==void 0?o:C.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new qs;var Mo=class{static get(e,r,{baseUrl:o,localesConfiguration:i,availableContentLocales:a}=C.getState()){var s;if(!r||a.length>0&&!a.some(c=>c.lang===r)){let c=i?.defaultLocales.defaultContentLocale;r=c?`${c.lang}-${c.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new Ke(o,e??20,i?.allLanguagesAllowed,r,a)}};var Gr=class extends pe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(r)}sendEvents(e,r){let o="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(r),console.debug(i),o)),1e3)}};var Zs=class{urlToSearchRequest(e){return Mo.get().parse(e)}searchRequestToUrl(e){return Mo.get().serialize(e)}};window.FluidTopicsUrlService=new Zs;var fr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};fr.eventName="before-location-change";var hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};hr.eventName="change";var Ys=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ku=new Ys;var Kn=class t extends gt{static build(){return new t(window.history,ku,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new hr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=new fr(new URL(typeof c=="string"?c:(c??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=r(),f={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(i,[f,s,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(fr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(fr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(hr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(hr.eventName,e)}currentItem(){return ke(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return ke(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return ke(r.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return ke(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Kn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Nu=T`
|
|
249
|
-
`;function
|
|
248
|
+
`;var Mm="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var Mo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mo.eventName="ui-locale-changed";var Dm={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>C.dispatchEvent(new Fe(e.payload)),0))}},C=Qe.get({name:Mm,reducers:Dm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Hn=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Iu=ae(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(C)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(c=>c.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>or.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Hn([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Hn([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Hn([j({store:C.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Hn([j({store:C.name})],e.prototype,"uiLocale",void 0),e});var hr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=C.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=C.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Wr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:hr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):hr.await()}};var pe=class extends Wr{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new it,this.cache=e?i.commonCache:new it}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var Vn=class extends pe{async listMySearches(){let{session:e}=C.getState();return ze(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var zn=class extends pe{async listMyBookmarks(){let e=C.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Wn=class extends pe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var Gn=class extends pe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var Fm="ft-user-assets",Um={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Ve).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:i}=e.payload;Ws(t,r,[...zs(t,r),i]),Lu(t,r,1,o),ku(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Ws(t,r,zs(t,r).map(i=>i.id===o.id?o:i)),ku(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;Ws(t,r,zs(t,r).filter(a=>a.id!==i)),Lu(t,r,-1,o)}},Pu={[Ve.SEARCHES]:"savedSearches",[Ve.BOOKMARKS]:"bookmarks",[Ve.BOOKS]:void 0,[Ve.COLLECTIONS]:void 0},zs=(t,e)=>{var r;let o=Pu[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Ws=(t,e,r)=>{let o=Pu[e];o&&(t[o]=r)},Lu=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ve.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},ku=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},Ae=Qe.get({name:Fm,reducers:Um,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ve).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gs=class{constructor(e=new Wn,r=new Gn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zn,this.savedSearchesService=new Vn,C.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=C.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ae.actions.clearAssetCount(),Ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ae.getState().assetCounts.allAsset[e]!==r.count&&Ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ae.getState().assetCounts.bookmarkByMap).length!==0;e===Ve.BOOKMARKS&&r&&Ae.actions.clearBookmarkCountByMap(),Ae.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ae.actions.bookmarks(r)}}},js=new Gs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=js);var Ks=class{addCommand(e,r=!1){C.commands.add(e,r)}consumeCommand(e){return C.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ks;var Nu,Gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Bm=Symbol("clearAfterUnitTest"),jn=class extends an(pe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Nu]=()=>{this.defaultMessages={},this.cache=new it,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=C.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};he(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Eo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ke)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Gr({loadedContexts:e})),this.dispatchEvent(new Gr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Gr({loadedContexts:[e]})),this.dispatchEvent(new Gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>on(0).then(()=>o()).catch(()=>null)))}};Nu=Bm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends jn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends jn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var jr=window.FluidTopicsI18nService,Kn=window.FluidTopicsCustomI18nService;var qs=class{highlightHtml(e,r,o){Fa(e,r,o)}};window.FluidTopicsHighlightHtmlService=new qs;var Zs=class{isDate(e){var r,o,i,a;return(a=(o=((i=(r=C.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a,s;if(e==null)return"";try{return or.format(e,(o=r?.locale)!==null&&o!==void 0?o:C.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new Zs;var Do=class{static get(e,r,{baseUrl:o,localesConfiguration:i,availableContentLocales:a}=C.getState()){var s;if(!r||a.length>0&&!a.some(c=>c.lang===r)){let c=i?.defaultLocales.defaultContentLocale;r=c?`${c.lang}-${c.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new Ke(o,e??20,i?.allLanguagesAllowed,r,a)}};var Kr=class extends pe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(r)}sendEvents(e,r){let o="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(r),console.debug(i),o)),1e3)}};var Ys=class{urlToSearchRequest(e){return Do.get().parse(e)}searchRequestToUrl(e){return Do.get().serialize(e)}};window.FluidTopicsUrlService=new Ys;var mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};mr.eventName="before-location-change";var gr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};gr.eventName="change";var Qs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Mu=new Qs;var qn=class t extends yt{static build(){return new t(window.history,Mu,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new gr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=new URL(typeof c=="string"?c:(c??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),p=new mr(d);this.dispatchEvent(p);let f=r(),h={...f===this.currentIndex?this.currentState:void 0,...a,index:f,href:p.detail.nextLocation.href};o.apply(i,[h,s,h.href]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(mr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(mr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(gr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(gr.eventName,e)}currentItem(){return Pe(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Pe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return Pe(r.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return Pe(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=qn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Du=T`
|
|
249
|
+
`;function Fu(t,e){let{authenticationRequired:r,session:o}=C.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Zn=class extends Wr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Xs=class t extends rr{static build(e){return new t(C,e)}constructor(e,r){super(),this.store=e,this.cache=new it,this.withManualResources=!0,this.userLocaleService=new Zn,this.knownContexts=new Tr,this.knownCustomComponents=new Tr,this.cleanSessionDebouncer=new te,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new te(500),this.apiProvider=r??(()=>hr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Fe.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Fe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Fu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Mo(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return vl(C.getState().session,...e)}},pt=Xs.build();var yr=class extends Event{constructor(e,r,o,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=i??!1}};var Fo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=r;for(let{elementRef:i,callbackRef:a}of o){let s=i.deref(),c=a.deref();s===void 0||c===void 0||s.dispatchEvent(new yr(e.context,s,c,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var fe=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends we{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=pt,this.contextRoot=new Fo}render(){return I`
|
|
250
250
|
<slot></slot>
|
|
251
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>
|
|
252
|
-
`;var
|
|
251
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>jr.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Y.elementDefinitions={};Y.styles=Du;fe([g()],Y.prototype,"baseUrl",void 0);fe([g()],Y.prototype,"tenantId",void 0);fe([g()],Y.prototype,"apiIntegrationIdentifier",void 0);fe([g()],Y.prototype,"apiIntegrationAppVersion",void 0);fe([g()],Y.prototype,"uiLocale",void 0);fe([de(null)],Y.prototype,"availableUiLocales",void 0);fe([de(null)],Y.prototype,"metadataConfiguration",void 0);fe([g({type:Boolean})],Y.prototype,"editorMode",void 0);fe([g({type:Boolean})],Y.prototype,"noCustom",void 0);fe([g({type:Boolean})],Y.prototype,"openExternalDocumentInNewTab",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Y.prototype,"noCustomComponent",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Y.prototype,"noCustomCode",void 0);fe([g({type:Boolean})],Y.prototype,"withManualResources",void 0);fe([g({type:Boolean})],Y.prototype,"navigatorOnline",void 0);fe([g({type:Boolean})],Y.prototype,"forcedOffline",void 0);fe([g({type:Boolean})],Y.prototype,"authenticationRequired",void 0);fe([de([])],Y.prototype,"messageContexts",void 0);fe([de(void 0)],Y.prototype,"session",void 0);var Uu={"ft-app-context":Y};q(Uu);var Js=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},qr=new Js;var Vm=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Bo=Symbol("i18nAttributes"),Bu=Symbol("i18nListAttributes"),$o=Symbol("i18nProperties"),Yn=Symbol("i18nContexts"),Uo=Symbol("i18nUnsubs"),Jn=ae(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Kn:jr}i18n(a){let{context:s,key:c,message:d}=a,{custom:p,args:f,argsProvider:h}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=f??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,c,...m)}return d}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(qr.isI18nKey(a)){let[c,d]=a.split(".");return this.i18n({custom:!0,context:c,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,c,d)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,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,c;let d=this,p=(f,h,m)=>m?.context&&m.key&&a(f,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...f})}:m;(s=this[Bo])===null||s===void 0||s.forEach((f,h)=>d[h]=p(f,h,d[h])),(c=this[Bu])===null||c===void 0||c.forEach((f,h)=>{var m;return d[h]=(m=d[h])===null||m===void 0?void 0:m.map(v=>p(f,h,v))})}updateI18nProperties(a){var s;(s=this[$o])===null||s===void 0||s.forEach((c,d)=>{a(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let d=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Yn].set(d,{isCustomContext:c}),this[Uo].has(d)||this[Uo].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(a){return this[Yn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Yn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Uo].forEach(a=>a()),this[Uo].clear()}}return e=Yn,r=Uo,Vm([g({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Qn=class extends Jn(H){},Xn=class extends Jn(we){};var ec=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?qr.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},zm=new ec;var $u=(t,e)=>(r,o)=>{var i;r.constructor.createProperty(o,{type:Object,hasChanged:He,converter:qr,...e}),r[Bo]=(i=r[Bo])!==null&&i!==void 0?i:new Map,r[Bo].set(o,t??{})};var ei=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Kn:jr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,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:(o,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(o,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(o,i)=>()=>i}),this.attributes=new Proxy({},{get:(o,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Hu=(t,e)=>(r,o)=>{var i,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(i=t.key)!==null&&i!==void 0?i:o};r[$o]=(a=r[$o])!==null&&a!==void 0?a:new Map,r[$o].set(o,s)};var Vu=T`
|
|
252
|
+
`;var Zr=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ge=class extends Xn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(C)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:D:I`
|
|
253
253
|
<span class="ft-i18n">
|
|
254
254
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
255
255
|
</span>
|
|
256
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ge.elementDefinitions={};Ge.styles
|
|
256
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ge.elementDefinitions={};Ge.styles=Vu;Zr([j()],Ge.prototype,"editorMode",void 0);Zr([g()],Ge.prototype,"context",void 0);Zr([g()],Ge.prototype,"key",void 0);Zr([de([])],Ge.prototype,"args",void 0);Zr([g()],Ge.prototype,"defaultMessage",void 0);Zr([F()],Ge.prototype,"editorMessage",void 0);var zu={"ft-i18n":Ge};q(zu);var et=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},se=class extends Qn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new te,this.revealDebouncer=new te,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return I`
|
|
257
257
|
<div part="container"
|
|
258
258
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
259
259
|
<slot part="slot"></slot>
|
|
@@ -268,7 +268,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
268
268
|
</div>
|
|
269
269
|
</div>
|
|
270
270
|
</div>
|
|
271
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&
|
|
271
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&vo(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${N.transitionDuration}, left ${N.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return so(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":ge};se.styles=_u;et([$u()],se.prototype,"text",void 0);et([g({type:Boolean})],se.prototype,"manual",void 0);et([g({type:Boolean})],se.prototype,"inline",void 0);et([nt()],se.prototype,"delay",void 0);et([g()],se.prototype,"position",void 0);et([de([])],se.prototype,"ignoreMatchingElements",void 0);et([Hi()],se.prototype,"slotNodes",void 0);et([ee(".ft-tooltip--container")],se.prototype,"container",void 0);et([ee(".ft-tooltip")],se.prototype,"tooltip",void 0);et([ee(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);et([F()],se.prototype,"visible",void 0);var Wu={"ft-tooltip":se};q(Wu);var Gu=n.extend("--ft-ripple-color","",N.colorContent),ye={color:Gu,backgroundColor:n.extend("--ft-ripple-background-color","",Gu),opacityContentOnSurfacePressed:n.external(N.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:n.external(N.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:n.external(N.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:n.external(N.opacityContentOnSurfaceSelected,"Design system"),borderRadius:n.create("--ft-ripple-border-radius","","SIZE","0px")},ju=n.extend("--ft-ripple-color","",N.colorPrimary),Ku={color:ju,backgroundColor:n.extend("--ft-ripple-background-color","",ju)},qu=n.extend("--ft-ripple-color","",N.colorSecondary),Zu={color:qu,backgroundColor:n.extend("--ft-ripple-background-color","",qu)},Yu=T`
|
|
272
272
|
:host {
|
|
273
273
|
display: contents;
|
|
274
274
|
}
|
|
@@ -323,19 +323,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
326
|
-
background-color: ${
|
|
326
|
+
background-color: ${Zu.backgroundColor};
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
330
|
-
background-color: ${
|
|
330
|
+
background-color: ${Zu.color};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
334
|
-
background-color: ${
|
|
334
|
+
background-color: ${Ku.backgroundColor};
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
338
|
-
background-color: ${
|
|
338
|
+
background-color: ${Ku.color};
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
.ft-ripple .ft-ripple--background {
|
|
@@ -391,7 +391,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
391
391
|
<div class="ft-ripple--background"></div>
|
|
392
392
|
<div class="ft-ripple--effect"></div>
|
|
393
393
|
</div>
|
|
394
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>d=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,i,a;return r.x!=null?{x:i,y:a}=r:o.touches!=null&&(i=o.touches[0].clientX,a=o.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=
|
|
394
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>d=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,i,a;return r.x!=null?{x:i,y:a}=r:o.touches!=null&&(i=o.touches[0].clientX,a=o.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Yu;Te([g({type:Boolean})],K.prototype,"primary",void 0);Te([g({type:Boolean})],K.prototype,"secondary",void 0);Te([g({type:Boolean})],K.prototype,"unbounded",void 0);Te([g({type:Boolean})],K.prototype,"activated",void 0);Te([g({type:Boolean})],K.prototype,"selected",void 0);Te([g({type:Boolean})],K.prototype,"disabled",void 0);Te([F()],K.prototype,"hovered",void 0);Te([F()],K.prototype,"focused",void 0);Te([F()],K.prototype,"pressed",void 0);Te([F()],K.prototype,"rippling",void 0);Te([F()],K.prototype,"originX",void 0);Te([F()],K.prototype,"originY",void 0);Te([ee(".ft-ripple")],K.prototype,"ripple",void 0);Te([ee(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var Qu={"ft-ripple":K};q(Qu);var Ue={size:n.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:n.extend("--ft-icon-fluid-topics-font-family","",n.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:n.extend("--ft-icon-file-format-font-family","",n.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:n.extend("--ft-icon-material-font-family","",n.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:n.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Xu=[T`
|
|
395
395
|
:host, i.ft-icon {
|
|
396
396
|
display: inline-flex;
|
|
397
397
|
align-items: center;
|
|
@@ -439,12 +439,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
439
439
|
.ft-icon--material {
|
|
440
440
|
font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
|
|
441
441
|
}
|
|
442
|
-
`,
|
|
442
|
+
`,Jt];var ft;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ft||(ft={}));var ti;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ti||(ti={}));var O;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(O||(O={}));var HT=new Map([...["abw"].map(t=>[t,O.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,O.AUDIO]),...["avi"].map(t=>[t,O.AVI]),...["chm","xhs"].map(t=>[t,O.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,O.CODE]),...["csv"].map(t=>[t,O.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,O.DITA]),...["epub"].map(t=>[t,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,O.EXCEL]),...["flac"].map(t=>[t,O.FLAC]),...["gif"].map(t=>[t,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,O.GZIP]),...["html","htm","xhtml"].map(t=>[t,O.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,O.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,O.JPEG]),...["json"].map(t=>[t,O.JSON]),...["m4a","m4p"].map(t=>[t,O.M4A]),...["mov","qt"].map(t=>[t,O.MOV]),...["mp3"].map(t=>[t,O.MP3]),...["mp4","m4v"].map(t=>[t,O.MP4]),...["ogg","oga"].map(t=>[t,O.OGG]),...["pdf","ps"].map(t=>[t,O.PDF]),...["png"].map(t=>[t,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,O.POWERPOINT]),...["rar"].map(t=>[t,O.RAR]),...["stp"].map(t=>[t,O.STP]),...["txt","rtf","md","mdown"].map(t=>[t,O.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,O.VIDEO]),...["wav"].map(t=>[t,O.WAV]),...["wma"].map(t=>[t,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,O.WORD]),...["xml","xsl","rdf"].map(t=>[t,O.XML]),...["yaml","yml","x-yaml"].map(t=>[t,O.YAML]),...["zip"].map(t=>[t,O.ZIP])]);var VT={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var Ho=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},be=class extends H{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=D}render(){let e=this.variant&&Object.values(ft).includes(this.variant)?this.variant:ft.fluid_topics,r=e!==ft.material||!!this.value;return I`
|
|
443
443
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
444
|
-
${
|
|
444
|
+
${ji(this.resolvedIcon)}
|
|
445
445
|
<slot ?hidden=${r}></slot>
|
|
446
446
|
</i>
|
|
447
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case
|
|
447
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case ft.file_format:this.resolvedIcon=(e=O[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case ft.material:this.resolvedIcon=this.value||D;break;default:this.resolvedIcon=(r=ti[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};be.elementDefinitions={};be.styles=Xu;Ho([g()],be.prototype,"variant",void 0);Ho([g()],be.prototype,"value",void 0);Ho([g({reflect:!0,attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);Ho([F()],be.prototype,"resolvedIcon",void 0);Ho([ee("slot")],be.prototype,"slottedContent",void 0);var Ju={"ft-icon":be};q(Ju);var br={color:n.extend("--ft-loader-color","",N.colorPrimary),size:n.create("--ft-loader-size","","SIZE","80px")},ep=T`
|
|
448
448
|
:host {
|
|
449
449
|
line-height: 0;
|
|
450
450
|
}
|
|
@@ -453,8 +453,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
453
453
|
display: inline-block;
|
|
454
454
|
position: relative;
|
|
455
455
|
|
|
456
|
-
width: ${
|
|
457
|
-
height: ${
|
|
456
|
+
width: ${br.size};
|
|
457
|
+
height: ${br.size};
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
.ft-loader div {
|
|
@@ -463,7 +463,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
463
463
|
width: 25%;
|
|
464
464
|
height: 25%;
|
|
465
465
|
border-radius: 50%;
|
|
466
|
-
background: ${
|
|
466
|
+
background: ${br.color};
|
|
467
467
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
468
468
|
}
|
|
469
469
|
|
|
@@ -510,17 +510,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
510
510
|
transform: translate(0, 0);
|
|
511
511
|
}
|
|
512
512
|
100% {
|
|
513
|
-
transform: translate(calc(0.35 * ${
|
|
513
|
+
transform: translate(calc(0.35 * ${br.size}), 0);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
`;var
|
|
516
|
+
`;var vr=class extends H{render(){return I`
|
|
517
517
|
<div class="ft-loader">
|
|
518
518
|
<div></div>
|
|
519
519
|
<div></div>
|
|
520
520
|
<div></div>
|
|
521
521
|
<div></div>
|
|
522
522
|
</div>
|
|
523
|
-
`}};
|
|
523
|
+
`}};vr.styles=ep;var tp={"ft-loader":vr};q(tp);var xr=t=>t??D;var rp=n.extend("--ft-button-color","",N.colorPrimary),Q={backgroundColor:n.extend("--ft-button-background-color","",N.colorSurface),borderRadius:n.extend("--ft-button-border-radius","",N.borderRadiusL),color:rp,fontSize:n.extend("--ft-button-font-size","",Je.fontSize),iconSize:n.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:n.extend("--ft-button-ripple-color","",rp),verticalPadding:n.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:n.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:n.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:n.external(N.colorOpacityDisabled,"Design system")},op=n.extend("--ft-button-primary-color","",n.extend("--ft-button-color","",N.colorOnPrimary)),tc={backgroundColor:n.extend("--ft-button-primary-background-color","",n.extend("--ft-button-background-color","",N.colorPrimary)),color:op,rippleColor:n.extend("--ft-button-primary-ripple-color","",op)},tt={borderRadius:n.extend("--ft-button-dense-border-radius","",n.extend("--ft-button-border-radius","",N.borderRadiusM)),verticalPadding:n.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:n.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:n.create("--ft-button-dense-icon-padding","","SIZE","4px")},np=T`
|
|
524
524
|
:host {
|
|
525
525
|
display: inline-block;
|
|
526
526
|
max-width: 100%;
|
|
@@ -559,8 +559,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
559
559
|
text-overflow: ellipsis;
|
|
560
560
|
display: block;
|
|
561
561
|
margin: 0 ${Q.iconPadding};
|
|
562
|
-
${G(
|
|
563
|
-
${G(
|
|
562
|
+
${G(Je.fontSize,"1em")};
|
|
563
|
+
${G(Je.lineHeight,"var(--button-internal-line-height)")};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
[part="icon"] {
|
|
@@ -589,7 +589,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
&:focus-visible {
|
|
592
|
-
outline: 2px solid ${
|
|
592
|
+
outline: 2px solid ${N.colorPrimary};
|
|
593
593
|
outline-offset: 2px;
|
|
594
594
|
}
|
|
595
595
|
|
|
@@ -599,9 +599,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
&.ft-button--primary {
|
|
602
|
-
background-color: ${
|
|
603
|
-
--button-internal-color: ${
|
|
604
|
-
${G(ye.color,
|
|
602
|
+
background-color: ${tc.backgroundColor};
|
|
603
|
+
--button-internal-color: ${tc.color};
|
|
604
|
+
${G(ye.color,tc.rippleColor)};
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
&.ft-button--outlined {
|
|
@@ -610,17 +610,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
&.ft-button--dense {
|
|
613
|
-
padding: ${
|
|
614
|
-
border-radius: ${
|
|
615
|
-
${G(ye.borderRadius,
|
|
613
|
+
padding: ${tt.verticalPadding} ${tt.horizontalPadding};
|
|
614
|
+
border-radius: ${tt.borderRadius};
|
|
615
|
+
${G(ye.borderRadius,tt.borderRadius)};
|
|
616
616
|
|
|
617
617
|
.ft-button--label {
|
|
618
|
-
margin: 0 ${
|
|
618
|
+
margin: 0 ${tt.iconPadding};
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
&.ft-button--dense.ft-button--outlined {
|
|
623
|
-
padding: calc(${
|
|
623
|
+
padding: calc(${tt.verticalPadding} - 1px) calc(${tt.horizontalPadding} - 1px);
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
&.ft-button--round {
|
|
@@ -629,8 +629,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
&.ft-button--round.ft-button--dense {
|
|
632
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
633
|
-
${G(ye.borderRadius,T`calc(var(--button-internal-line-height) / 2 + ${
|
|
632
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${tt.verticalPadding});
|
|
633
|
+
${G(ye.borderRadius,T`calc(var(--button-internal-line-height) / 2 + ${tt.verticalPadding})`)};
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
&.ft-button--no-text {
|
|
@@ -641,7 +641,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
641
641
|
padding: ${Q.verticalPadding};
|
|
642
642
|
|
|
643
643
|
&.ft-button--dense {
|
|
644
|
-
padding: ${
|
|
644
|
+
padding: ${tt.verticalPadding};
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
&.ft-button--outlined {
|
|
@@ -649,7 +649,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
&.ft-button--outlined.ft-button--dense {
|
|
652
|
-
padding: calc(${
|
|
652
|
+
padding: calc(${tt.verticalPadding} - 1px);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
|
|
@@ -659,8 +659,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
ft-loader {
|
|
662
|
-
${G(
|
|
663
|
-
${G(
|
|
662
|
+
${G(br.size,Q.iconSize)};
|
|
663
|
+
${G(br.color,"var(--button-internal-color)")};
|
|
664
664
|
}
|
|
665
665
|
`;var Z=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},B=class t extends ms(H){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,o;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Po},a=I`
|
|
666
666
|
<ft-ripple part="ripple"
|
|
@@ -679,17 +679,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
679
679
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
680
680
|
part="button"
|
|
681
681
|
class="${Le(this.buttonClasses)}"
|
|
682
|
-
aria-label="${
|
|
682
|
+
aria-label="${xr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
683
683
|
?disabled=${this.isDisabled()}>
|
|
684
684
|
${a}
|
|
685
685
|
</a>
|
|
686
686
|
`:I`
|
|
687
687
|
<button part="button"
|
|
688
688
|
class="${Le(this.buttonClasses)}"
|
|
689
|
-
aria-label="${
|
|
690
|
-
aria-haspopup="${
|
|
691
|
-
aria-pressed="${
|
|
692
|
-
aria-expanded="${
|
|
689
|
+
aria-label="${xr((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
|
|
690
|
+
aria-haspopup="${xr(this.ariaHasPopup)}"
|
|
691
|
+
aria-pressed="${xr(this.ariaPressed)}"
|
|
692
|
+
aria-expanded="${xr(this.ariaExpanded)}"
|
|
693
693
|
?disabled=${this.isDisabled()}>
|
|
694
694
|
${a}
|
|
695
695
|
</button>
|
|
@@ -704,7 +704,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
704
704
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
705
705
|
`:I`
|
|
706
706
|
<slot part="icon" name="icon"></slot>
|
|
707
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};B.elementDefinitions={"ft-ripple":K,"ft-tooltip":se,"ft-icon":be,"ft-loader":
|
|
707
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};B.elementDefinitions={"ft-ripple":K,"ft-tooltip":se,"ft-icon":be,"ft-loader":vr,"ft-typography":ge};B.styles=[Ba,np,Jt];B.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:B.labelsObserver.unobserve(e.target)}});Z([g({type:Boolean})],B.prototype,"primary",void 0);Z([g({type:Boolean})],B.prototype,"outlined",void 0);Z([g({type:Boolean})],B.prototype,"dense",void 0);Z([g({type:Boolean})],B.prototype,"round",void 0);Z([g({type:Boolean})],B.prototype,"disabled",void 0);Z([g()],B.prototype,"icon",void 0);Z([g()],B.prototype,"iconVariant",void 0);Z([g({type:Boolean})],B.prototype,"trailingIcon",void 0);Z([g()],B.prototype,"label",void 0);Z([g()],B.prototype,"type",void 0);Z([g()],B.prototype,"href",void 0);Z([g()],B.prototype,"target",void 0);Z([g({type:Boolean})],B.prototype,"loading",void 0);Z([g({attribute:"aria-label"})],B.prototype,"ariaLabel",void 0);Z([g()],B.prototype,"ariaHasPopup",void 0);Z([g({attribute:"aria-pressed"})],B.prototype,"ariaPressed",void 0);Z([g({attribute:"aria-expanded"})],B.prototype,"ariaExpanded",void 0);Z([g()],B.prototype,"tooltipPosition",void 0);Z([g({type:Boolean})],B.prototype,"hideTooltip",void 0);Z([g({type:Boolean})],B.prototype,"forceTooltip",void 0);Z([g({type:Boolean})],B.prototype,"activated",void 0);Z([ee(".ft-button")],B.prototype,"button",void 0);Z([ee(".ft-button--label")],B.prototype,"labelContainer",void 0);Z([F()],B.prototype,"hasTextContent",void 0);Z([ee(".ft-button--label slot")],B.prototype,"slottedContent",void 0);Z([ee("[part=tooltip]")],B.prototype,"tooltip",void 0);var ip={"ft-button":B};q(ip);var ap=n.extend("--ft-chip-color","",N.colorOnSurface),_e={backgroundColor:n.extend("--ft-chip-background-color","",N.colorSurface),color:ap,fontSize:n.extend("--ft-chip-font-size","",De.fontSize),fontWeight:n.extend("--ft-chip-font-weight","",De.fontWeight),iconSize:n.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:n.create("--ft-chip-border-radius","","SIZE",""),rippleColor:n.extend("--ft-chip-ripple-color","",ap),horizontalPadding:n.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:n.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:n.extend("--ft-chip-border-color","",N.colorOutline),opacityDisabled:n.external(N.colorOpacityDisabled,"Design system")},sp=n.extend("--ft-chip-highlighted-color","",n.extend("--ft-chip-color","",N.colorOnPrimary)),rc={backgroundColor:n.extend("--ft-chip-highlighted-background-color","",n.extend("--ft-chip-background-color","",N.colorPrimary)),color:sp,rippleColor:n.extend("--ft-chip-highlighted-ripple-color","",sp)},cp={horizontalPadding:n.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:n.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lp=[Jt,T`
|
|
708
708
|
:host {
|
|
709
709
|
display: inline-block;
|
|
710
710
|
max-width: 100%;
|
|
@@ -732,7 +732,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
732
732
|
border: 1px solid ${_e.borderColor};
|
|
733
733
|
color: ${_e.color};
|
|
734
734
|
${G(ye.color,_e.rippleColor)};
|
|
735
|
-
border-radius: var(${
|
|
735
|
+
border-radius: var(${Ft(_e.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
736
736
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
737
737
|
background-color: ${_e.backgroundColor};
|
|
738
738
|
line-height: var(--chip-internal-content-height);
|
|
@@ -744,8 +744,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
744
744
|
|
|
745
745
|
.ft-chip--dense {
|
|
746
746
|
--chip-internal-icon-padding: 3px;
|
|
747
|
-
--chip-internal-vertical-padding: ${
|
|
748
|
-
--chip-internal-horizontal-padding: ${
|
|
747
|
+
--chip-internal-vertical-padding: ${cp.verticalPadding};
|
|
748
|
+
--chip-internal-horizontal-padding: ${cp.horizontalPadding};
|
|
749
749
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
750
750
|
}
|
|
751
751
|
|
|
@@ -763,9 +763,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
763
763
|
.ft-chip--highlighted {
|
|
764
764
|
border: none;
|
|
765
765
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
766
|
-
background-color: ${
|
|
767
|
-
${G(ye.color,
|
|
768
|
-
color: ${
|
|
766
|
+
background-color: ${rc.backgroundColor};
|
|
767
|
+
${G(ye.color,rc.rippleColor)};
|
|
768
|
+
color: ${rc.color};
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
.ft-chip--clickable {
|
|
@@ -774,7 +774,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
.ft-chip:focus {
|
|
777
|
-
outline: 2px solid ${
|
|
777
|
+
outline: 2px solid ${N.colorPrimary};
|
|
778
778
|
outline-offset: 2px;
|
|
779
779
|
}
|
|
780
780
|
|
|
@@ -844,7 +844,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
844
844
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
845
845
|
order: -1;
|
|
846
846
|
}
|
|
847
|
-
`];var
|
|
847
|
+
`];var Ee=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ri=class extends CustomEvent{constructor(){super("icon-click")}},X=class extends H{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Po};return I`
|
|
848
848
|
<div class="${Le(r)}"
|
|
849
849
|
aria-label="${this.labelOnIconOnly?D:this.getLabel()}"
|
|
850
850
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -872,7 +872,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
872
872
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
873
873
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
874
874
|
</div>
|
|
875
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
875
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ri))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ri))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return nn(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};X.elementDefinitions={"ft-ripple":K,"ft-typography":ge,"ft-icon":be,"ft-button":B};X.styles=lp;Ee([g({type:Boolean})],X.prototype,"highlighted",void 0);Ee([g({type:Boolean})],X.prototype,"removable",void 0);Ee([g({type:Boolean})],X.prototype,"disabled",void 0);Ee([g({type:Boolean})],X.prototype,"clickable",void 0);Ee([g({type:Boolean})],X.prototype,"iconClickable",void 0);Ee([g({type:Boolean})],X.prototype,"dense",void 0);Ee([g({type:Boolean})],X.prototype,"multiLine",void 0);Ee([g()],X.prototype,"label",void 0);Ee([g()],X.prototype,"iconLabel",void 0);Ee([g({type:Boolean})],X.prototype,"hideIconTooltip",void 0);Ee([g({type:Boolean})],X.prototype,"accessibleLabelOnIcon",void 0);Ee([g()],X.prototype,"icon",void 0);Ee([g()],X.prototype,"iconVariant",void 0);Ee([g({type:Boolean})],X.prototype,"trailingIcon",void 0);Ee([g()],X.prototype,"typographyVariant",void 0);Ee([ee("ft-typography slot")],X.prototype,"slottedContent",void 0);var dp={"ft-chip":X};q(dp);var Wm={iconColor:n.extend("--ft-floating-menu-icon-color","",N.colorOnSurfaceMedium)},up=T`
|
|
876
876
|
.ft-floating-menu-item {
|
|
877
877
|
cursor: pointer;
|
|
878
878
|
display: flex;
|
|
@@ -892,7 +892,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
.ft-floating-menu-item ft-icon {
|
|
895
|
-
color: ${
|
|
895
|
+
color: ${Wm.iconColor};
|
|
896
896
|
margin-left: 0;
|
|
897
897
|
flex-shrink: 0;
|
|
898
898
|
flex-grow: 0;
|
|
@@ -907,7 +907,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
907
907
|
word-break: break-word;
|
|
908
908
|
hyphens: auto;
|
|
909
909
|
}
|
|
910
|
-
`;var
|
|
910
|
+
`;var Yr=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oi=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Ce=class extends H{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return I`
|
|
911
911
|
<div class="${Le(this.floatingClasses)}"
|
|
912
912
|
tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
|
|
913
913
|
aria-disabled="${this.disabled}"
|
|
@@ -923,9 +923,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
923
923
|
<slot></slot>
|
|
924
924
|
</ft-typography>
|
|
925
925
|
</div>
|
|
926
|
-
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new
|
|
926
|
+
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new oi(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new oi(this.value)))}};Ce.elementDefinitions={"ft-icon":be,"ft-ripple":K,"ft-typography":ge};Ce.styles=up;Yr([g()],Ce.prototype,"iconVariant",void 0);Yr([g()],Ce.prototype,"icon",void 0);Yr([g()],Ce.prototype,"value",void 0);Yr([g({type:Boolean})],Ce.prototype,"notFocusable",void 0);Yr([g({type:Boolean})],Ce.prototype,"disabled",void 0);Yr([Ji()],Ce.prototype,"onKeyDown",null);var Mt={zIndex:n.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:n.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:n.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:n.extend("--ft-floating-menu-text-color","",N.colorOnSurfaceHigh),colorSurface:n.external(N.colorSurface,"Design system"),menuElevation:n.external(N.elevation02,"Design system"),borderRadiusS:n.external(N.borderRadiusS,"Design system")},pp=T`
|
|
927
927
|
.ft-floating-menu {
|
|
928
|
-
color: ${
|
|
928
|
+
color: ${Mt.textColor};
|
|
929
929
|
display: contents;
|
|
930
930
|
}
|
|
931
931
|
|
|
@@ -942,19 +942,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
942
942
|
display: none;
|
|
943
943
|
position: relative;
|
|
944
944
|
overflow: auto;
|
|
945
|
-
max-width: ${
|
|
946
|
-
max-height: ${
|
|
947
|
-
box-shadow: ${
|
|
948
|
-
background-color: ${
|
|
949
|
-
border-radius: ${
|
|
950
|
-
color: ${
|
|
951
|
-
z-index: ${
|
|
945
|
+
max-width: ${Mt.maxWidth};
|
|
946
|
+
max-height: ${Mt.maxHeight};
|
|
947
|
+
box-shadow: ${Mt.menuElevation};
|
|
948
|
+
background-color: ${Mt.colorSurface};
|
|
949
|
+
border-radius: ${Mt.borderRadiusS};
|
|
950
|
+
color: ${Mt.textColor};
|
|
951
|
+
z-index: ${Mt.zIndex};
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
955
955
|
display: block;
|
|
956
956
|
}
|
|
957
|
-
`;var
|
|
957
|
+
`;var Oe=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ni=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var ii=class extends CustomEvent{constructor(e){super("select",{detail:e})}},J=class extends H{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=ft.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new ni(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return I`
|
|
958
958
|
<div part="container" class="${Le(e)}" @keydown=${this.onKeyDown}>
|
|
959
959
|
<slot name="toggle"
|
|
960
960
|
part="toggle"
|
|
@@ -985,7 +985,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
985
985
|
</div>
|
|
986
986
|
</div>
|
|
987
987
|
</div>
|
|
988
|
-
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new
|
|
988
|
+
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new ii(e.detail)),this.closeMenu()}onContentClick(e){so(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await vo(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};J.elementDefinitions={"ft-floating-menu-item":Ce,"ft-button":B};J.styles=pp;Oe([g()],J.prototype,"horizontalAlignment",void 0);Oe([g()],J.prototype,"verticalAlignment",void 0);Oe([de([])],J.prototype,"closeMenuMatchers",void 0);Oe([g({type:Boolean})],J.prototype,"primary",void 0);Oe([g()],J.prototype,"label",void 0);Oe([g()],J.prototype,"tooltipPosition",void 0);Oe([g()],J.prototype,"icon",void 0);Oe([g()],J.prototype,"iconVariant",void 0);Oe([g()],J.prototype,"text",void 0);Oe([g({type:Boolean})],J.prototype,"disabled",void 0);Oe([F()],J.prototype,"menuOpen",void 0);Oe([F()],J.prototype,"forceMenuOpen",void 0);Oe([ee(".ft-floating-menu")],J.prototype,"container",void 0);Oe([ee(".ft-floating-menu--wrapper")],J.prototype,"menuWrapper",void 0);Oe([ee("#actions-button")],J.prototype,"actionButton",void 0);Oe([$i({slot:"toggle"})],J.prototype,"customToggle",void 0);var Gm={color:n.extend("--ft-floating-menu-label-color","",N.colorOnSurfaceMedium)},fp=T`
|
|
989
989
|
.ft-floating-menu-label {
|
|
990
990
|
padding: 4px 8px;
|
|
991
991
|
}
|
|
@@ -996,26 +996,27 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
996
996
|
width: max-content;
|
|
997
997
|
text-overflow: ellipsis;
|
|
998
998
|
overflow: hidden;
|
|
999
|
-
color: ${
|
|
999
|
+
color: ${Gm.color}
|
|
1000
1000
|
}
|
|
1001
|
-
`;var
|
|
1001
|
+
`;var Dt=class extends H{render(){return I`
|
|
1002
1002
|
<div class="ft-floating-menu-label">
|
|
1003
1003
|
<ft-typography variant="${We.caption}">
|
|
1004
1004
|
<slot></slot>
|
|
1005
1005
|
</ft-typography>
|
|
1006
1006
|
</div>
|
|
1007
|
-
`}};
|
|
1008
|
-
`;var Gm={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},hp=t=>Qe.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},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},linkPreviewDialogId:void 0,metadataFilters:[]},reducers:Gm});var nc=class{constructor(e,r){this.mapId=e,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,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,r,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,r,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(e,r,o){return e.flatMap(i=>{var a,s,c;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((c=i.pageToc)!==null&&c!==void 0?c:[],r+1,i.tocId),h=this.convertNodes(i.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...i,prettyUrl:s,depth:r,parentTocId:o,children:[]};return this.register(c),c.children=this.convertSectionNodes(i.children,r+1,i.tocId),[c]})}buildPage(e,r){var o,i,a,s,c,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,m={number:this.pages.length+1,title:(c=e.title)!==null&&c!==void 0?c:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},x=(E,R)=>(R?m.topics:m.hiddenTopics).push(E),S=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];m.breadcrumb.forEach((E,R)=>{x(E,S[R])}),e.tocId&&x(e.tocId,e.pageConfiguration.isVisible),m.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let w=this.resolveOverridenRootTocIdByParentForcedByPagination(m.breadcrumb,S);return m.rootTocId=w??m.rootTocId,m.rootDepth=w?this.nodeByTocId[w].depth:m.rootDepth,m}resolveOverridenRootTocIdByParentForcedByPagination(e,r){for(let o=0;o<e.length;o++)if(r[o])return e[o]}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},ii=class{convertPaginatedToc(e,r){return new nc(e,r).build()}};var ai=class extends pe{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,o,i){super(!1,r),this.converter=e,this._mapId=o,this._metadataFilters=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return ze((r=(e=C.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r,o){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e,this.metadataFilters),()=>this.fetchPages(this.mapId,this.metadataFilters,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getFilteredTocNodes(e){var r;return(r=(await this.getEnrichedToc(e)).filteredTocNodes)!==null&&r!==void 0?r:{}}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var o;return(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var o,i;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,r){let o=await this.getEnrichedToc(r);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,r){let o=await this.getEnrichedToc(r);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,o){return this.cache.get("topic-relatives-"+[e,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,o,i){let a=this.getNavigationData(e,r,o),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);if(a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),i&&a.metadataFilters){let d=Ke.serializeValueFilters(a.metadataFilters);d&&c.searchParams.set(N.VALUE_FILTERS,d)}return c.href}getLinkWithFilter(e,r,o){return this.getLink(e,r,o,!0)}getNavigationData(e,r,o,i){var a,s;e=e||"root";let c=this.getEnrichedTocNow(i),d=c?.pageByTocId[e],p=c?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,r,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,r,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,o){return this.makeRateTopicRequest(e,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=C.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,o,i){return this.makeTopicFeedbackRequest(e,r,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let o=this.getTocNodeNow(e,r);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(e,{session:r}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Et.FEEDBACK:return ze(r??[],W.FEEDBACK_USER);case Et.RATING:return ze(r??[],W.RATING_USER);case Et.PRINT:return ze(r??[],W.PRINT_USER);case Et.BOOKMARK:return!!r?.sessionAuthenticated;case Et.COLLECTIONS:return ze(r??[],W.COLLECTION_USER);case Et.PERSONAL_BOOKS:return ze(r??[],W.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var si=class t extends ai{static async build(e){return new t(new ii,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let o=await this.api.getMap(e,r);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r,o){return await this.getMap(o),r?.length?this.api.getFilteredPages(e,o,r):this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,r,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,o){return this.api.rateTopic(this.mapId,e,r,o)}makeTopicFeedbackRequest(e,r,o,i){return this.api.sendTopicFeedback(this.mapId,e,r,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var jm="topicPivot";function ci(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(jm,o)}),r.href}var li=class t{static build(e,r){return new t(hp(e.trim()||"context"),r??si.build)}loaded(){return Yi(()=>this._loaded)}constructor(e,r,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new te(10),this.analyticsEventsService=i??new Gr,this.initService(r)}async initService(e){this.service=await e();let{mapId:r,metadataFilters:o}=this.store.getState();return this.service.mapId=r,this.service.metadataFilters=o,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async setFilters(e){he(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return no(()=>this.service)}async navigateToTopic(e,r,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:r}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!r&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,r){var o,i,a;let s=await this.awaitService();if(r)return s.getPage(r,this.getTranslationSettings());if(!e)return s.getPageByTocId("root",this.getTranslationSettings());let c=(o=this.store.getState().filteredTocNodes)===null||o===void 0?void 0:o[e],d=((i=this.service)===null||i===void 0?void 0:i.getTocNodeNow(e))!=null;return c&&c.reason!=="ACCESS_RIGHTS_FILTER"&&!d?s.getPageByTocId((a=c.closestParent)!==null&&a!==void 0?a:"root",this.getTranslationSettings()):s.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,r){var o,i,a,s,c;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;if(!r.topics.includes(d)){if(e!="root"&&!r.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Un(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(St.requestedTopicNotFound))}return(c=(s=r.topics[0])!==null&&s!==void 0?s:r.hiddenTopics[0])!==null&&c!==void 0?c:"root"}return d}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromFilter(e,r){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:c,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:c?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,r)}async fetchDataFromFilter(){var e,r,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(r=this.service)===null||r===void 0?void 0:r.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof Pe))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,r,o,i,a,s,c;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(r=this.service)===null||r===void 0?void 0:r.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof Pe))throw d&&this.setTranslationError(!0),(c=this.errorHandler)===null||c===void 0||c.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.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);if(o!==void 0&&o.length>0){let i=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(St.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=C.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new Tt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,i;await this.loaded();let a=await no(()=>{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,[e]);if(!((i=(o=(r=d?.results)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.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(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let o=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getAccurateNavigationData(e,r,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,r?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(St.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Tt.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=co(a);if(s){let c=this.store.getState().visibleTopics[0],d=(r=this.store.getState().configuration)===null||r===void 0?void 0:r.relativeTopicPivotMetadata;if(d&&c){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(c,d));s=ci(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=C.getState(),s=this.store.getState(),c=s.map,d=s.translation.profileId;if(!(o||!c||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(c),title:(r=c.untranslatedTitle)!==null&&r!==void 0?r:c.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(c.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:sn.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=C.getState(),c=this.store.getState(),d=c.map,p=c.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let m={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(x=>{var S;return{tocId:x.tocId,title:(S=x.untranslatedTitle)!==null&&S!==void 0?S:x.title}}),document:m,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var di=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},ui=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},pi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},fi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},hi=class extends Event{constructor(){super("ft-reader-map-not-found")}},mi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},gi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},yi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var mp=T`
|
|
1009
|
-
`;var Ho;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Ho||(Ho={}));var Km={setRequest:(t,e)=>{t.request=e.payload}},gp=t=>Qe.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Km,deprecatedKeys:["locales"]});var bi=class extends pe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((r,o)=>r.key.localeCompare(o.key))}};var xi=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},vi=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Si=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o},composed:!0,bubbles:!0})}},Vo=class t extends Event{constructor(){super(t.eventName)}};Vo.eventName="search-context-clear-all-filters";var qm=t=>t.request.virtualField===Wt.TITLE_ONLY&&t.request.scope===Tr.DOCUMENTS,Zm=t=>t.request.keywordMatch==At.MANDATORY,zo=class t extends tr{static build(e,r){return new t(gp(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Fn(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==Ho.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(ze(C.getState().session,W.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.updateLocales=(o=C.getState().availableContentLocales)=>{this.store.actions.locales(o),o.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new te(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new te(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new bi,this.searchWatcher=new vt(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new vt(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new vt(C,o=>o.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new vt(C,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),C.addEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(C.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),C.removeEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return C.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let o=ke(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:r?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r;let o=this.store.getState().request.contentLocale;return e!==o&&(e=t.findKnownContentLocale(e,o),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=C.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&ut.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:o}=C.getState();if(r.length===0)return e[0];let i=s=>r.some(c=>c.lang==s);for(let s of e)if(i(s))return s;let a=o?.defaultLocales.defaultContentLocale;return a?`${a.lang}-${a.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:mt(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var o;let i=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let r=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Wt.TITLE_ONLY,scope:Tr.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Wt.EVERYWHERE,scope:Tr.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return qm(this.store.getState())}get keywordMatch(){return Zm(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Vo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let o=this.facetIds.filter(i=>i!=e);r&&o.push(r),this.facetIds=o}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(o=>o.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,r,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:o}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,o,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Ho.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=wr(this.service.launchSearch(e));let c=await this.cancelableSearch;if(this.store.actions.announcements(c.announcements),c.paging.currentPage<=1)this.store.actions.results(c.results),this.store.actions.facets(c.facets),this.store.actions.spellcheck(c.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(c.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(c.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(c.paging)}}catch(c){c instanceof Pe||(console.error(c),(i=this.errorHandler)===null||i===void 0||i.call(this,c))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=wr(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof Pe)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var ic=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},sc=class extends Vt{constructor(e){super("register-ft-search-component",e)}},yp=Symbol("registerInterval"),ac=Symbol("registerAttempts"),Ym=40,Qm=ae(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ac]=0,this.tryToRegisterToContext(),this[yp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ac]>Ym?window.clearInterval(this[yp]):(this[ac]++,this.dispatchEvent(new sc({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ic([F()],e.prototype,"stateManager",void 0),ic([F({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),ic([g()],e.prototype,"searchRegistrationId",void 0),e}),bp=class extends Qm(we){};function Ei(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Ci(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Oi=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=r??new Gr,this.resultsWatcher=ls(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=C.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=C.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:zt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:Ei(e.metadataFilters),facets:e.metadataFilters.map(a=>Ci(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:zt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==it.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:zt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:Ei(o.metadataFilters),facets:o.metadataFilters.map(s=>Ci(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==it.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:zt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:Ei(o.metadataFilters),facets:o.metadataFilters.map(s=>Ci(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case it.MAP:return{id:e.map.mapId,title:e.map.title,type:wt.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case it.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:wt.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case it.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:wt.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case it.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:wt.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case it.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:wt.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=Rt(e))===null||r===void 0?void 0:r.originUrl}};var ne=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},z=class extends we{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=zo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Oi(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(C)}render(){return I`
|
|
1007
|
+
`}};Dt.elementDefinitions={"ft-typography":ge};Dt.styles=fp;var hp={"ft-floating-menu":J,"ft-floating-menu-item":Ce,"ft-floating-menu-label":Dt};q(hp);function jm(t){var e;return((e=Tt(t))===null||e===void 0?void 0:e.openMode)===ln.EXTERNAL}function oc(t,e){return jm(t)?Tt(t).originUrl:uo(t,e)}var nc=ei.build("designedReaderMapMetadata");var mp=T`
|
|
1008
|
+
`;var Km={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},gp=t=>Qe.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},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},linkPreviewDialogId:void 0,metadataFilters:[],applyStickyFilters:!1},reducers:Km});var ic=class{constructor(e,r){this.mapId=e,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,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,r,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,r,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(e,r,o){return e.flatMap(i=>{var a,s,c;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((c=i.pageToc)!==null&&c!==void 0?c:[],r+1,i.tocId),h=this.convertNodes(i.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...i,prettyUrl:s,depth:r,parentTocId:o,children:[]};return this.register(c),c.children=this.convertSectionNodes(i.children,r+1,i.tocId),[c]})}buildPage(e,r){var o,i,a,s,c,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,m={number:this.pages.length+1,title:(c=e.title)!==null&&c!==void 0?c:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},v=(E,R)=>(R?m.topics:m.hiddenTopics).push(E),S=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];m.breadcrumb.forEach((E,R)=>{v(E,S[R])}),e.tocId&&v(e.tocId,e.pageConfiguration.isVisible),m.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let w=this.resolveOverridenRootTocIdByParentForcedByPagination(m.breadcrumb,S);return m.rootTocId=w??m.rootTocId,m.rootDepth=w?this.nodeByTocId[w].depth:m.rootDepth,m}resolveOverridenRootTocIdByParentForcedByPagination(e,r){for(let o=0;o<e.length;o++)if(r[o])return e[o]}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},ai=class{convertPaginatedToc(e,r){return new ic(e,r).build()}};var si=class extends pe{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,o,i){super(!1,r),this.converter=e,this._mapId=o,this._metadataFilters=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters,this.stickyFiltersId),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters,this.stickyFiltersId).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return ze((r=(e=C.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r,o,i){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))+(i?"-stickyFilters-"+i:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e,this.metadataFilters,this.stickyFiltersId),()=>this.fetchPages(this.mapId,this.metadataFilters,this.stickyFiltersId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters,this.stickyFiltersId))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getFilteredTocNodes(e){var r;return(r=(await this.getEnrichedToc(e)).filteredTocNodes)!==null&&r!==void 0?r:{}}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var o;return(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var o,i;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,r){let o=await this.getEnrichedToc(r);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,r){let o=await this.getEnrichedToc(r);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,o){return this.cache.get("topic-relatives-"+[e,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,o,i,a){let s;typeof e=="object"?(s=e.tocId,r=e.pageNumber,o=e.section,i=e.withMetadataFilter,a=e.withStickyFilters):s=e;let c=this.getNavigationData(s,r,o),d=this.getReaderLinkPrefix()+(c.prettyUrl?c.prettyUrl:`${c.mapId}/${c.tocId}`),p=new URL(d,this.api.tenantBaseUrl);if(c.page!=null&&p.searchParams.set("page",`${c.page}`),c.prettyUrlDuplicated&&p.searchParams.set("tocId",c.tocId),c.section!=null&&p.searchParams.set("section",c.section),i&&c.metadataFilters){let f=Ke.serializeValueFilters(c.metadataFilters);f&&p.searchParams.set(P.VALUE_FILTERS,f)}return a&&this.stickyFiltersId&&p.searchParams.set(P.STICKY_FILTER,this.stickyFiltersId),p.href}getLinkWithFilter(e,r,o){return this.getLink(e,r,o,!0)}getNavigationData(e,r,o,i){var a,s;e=e||"root";let c=this.getEnrichedTocNow(i),d=c?.pageByTocId[e],p=c?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,r,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,r,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,o){return this.makeRateTopicRequest(e,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=C.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,o,i,a){return this.makeTopicFeedbackRequest(e,r,o,i,a)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let o=this.getTocNodeNow(e,r);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(e,{session:r}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Et.FEEDBACK:return ze(r??[],W.FEEDBACK_USER);case Et.RATING:return ze(r??[],W.RATING_USER);case Et.PRINT:return ze(r??[],W.PRINT_USER);case Et.BOOKMARK:return!!r?.sessionAuthenticated;case Et.COLLECTIONS:return ze(r??[],W.COLLECTION_USER);case Et.PERSONAL_BOOKS:return ze(r??[],W.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var ci=class t extends si{static async build(e){return new t(new ai,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let o=await this.api.getMap(e,r);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r,o,i){return await this.getMap(i),r?.length||o?this.api.getFilteredPages(e,i,r,o):this.api.getPages(e,this.fingerprint,i)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,r,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,o){return this.api.rateTopic(this.mapId,e,r,o)}makeTopicFeedbackRequest(e,r,o,i,a){return this.api.sendTopicFeedback(this.mapId,e,r,o,i,a)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var qm="topicPivot";function li(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(qm,o)}),r.href}var di=class t{static build(e,r){return new t(gp(e.trim()||"context"),r??ci.build)}loaded(){return Qi(()=>this._loaded)}constructor(e,r,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new te(10),this.analyticsEventsService=i??new Kr,this.initService(r),this.stickyFiltersIdWatcher=new Xe(C,a=>{var s;return(s=a.stickyFilters)===null||s===void 0?void 0:s.id},()=>this.reloadFromSticky())}async initService(e){var r;this.service=await e();let{mapId:o,metadataFilters:i,applyStickyFilters:a}=this.store.getState();return this.service.mapId=o,this.service.metadataFilters=i,this.service.stickyFiltersId=a?(r=C.getState().stickyFilters)===null||r===void 0?void 0:r.id:void 0,this.reload()}removeListeners(){this.stickyFiltersIdWatcher.stop()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async setApplyStickyFilters(e){e?this.stickyFiltersIdWatcher.watch():this.stickyFiltersIdWatcher.stop(),e!=this.store.getState().applyStickyFilters&&(this.store.actions.applyStickyFilters(e),await this.reloadFromSticky())}async setFilters(e){he(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return ao(()=>this.service)}async navigateToTopic(e,r,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:r}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!r&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,r){var o,i,a;let s=await this.awaitService();if(r)return s.getPage(r,this.getTranslationSettings());if(!e)return s.getPageByTocId("root",this.getTranslationSettings());let c=(o=this.store.getState().filteredTocNodes)===null||o===void 0?void 0:o[e],d=((i=this.service)===null||i===void 0?void 0:i.getTocNodeNow(e))!=null;return c&&c.reason!=="ACCESS_RIGHTS_FILTER"&&!d?s.getPageByTocId((a=c.closestParent)!==null&&a!==void 0?a:"root",this.getTranslationSettings()):s.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,r){var o,i,a,s,c;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;if(!r.topics.includes(d)){if(e!="root"&&!r.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Bn(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(St.requestedTopicNotFound))}return(c=(s=r.topics[0])!==null&&s!==void 0?s:r.hiddenTopics[0])!==null&&c!==void 0?c:"root"}return d}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromSticky(){var e;let{scrollTarget:r,applyStickyFilters:o,currentPage:i}=this.store.getState(),a=o?(e=C.getState().stickyFilters)===null||e===void 0?void 0:e.id:void 0;this.service&&this.service.stickyFiltersId!=a&&(this.service.stickyFiltersId=a,await this.reloadFromFilter(r?.section,i?.number))}async reloadFromFilter(e,r){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:c,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:c?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,r)}async fetchDataFromFilter(){var e,r,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(r=this.service)===null||r===void 0?void 0:r.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof ke))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,r,o,i,a,s,c;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(r=this.service)===null||r===void 0?void 0:r.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof ke))throw d&&this.setTranslationError(!0),(c=this.errorHandler)===null||c===void 0||c.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.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);if(o!==void 0&&o.length>0){let i=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(St.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=C.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new _t(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,i;await this.loaded();let a=await ao(()=>{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,[e]);if(!((i=(o=(r=d?.results)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.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(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let o=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getAccurateNavigationData(e,r,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,r?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(St.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=_t.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=uo(a);if(s){let c=this.store.getState().visibleTopics[0],d=(r=this.store.getState().configuration)===null||r===void 0?void 0:r.relativeTopicPivotMetadata;if(d&&c){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(c,d));s=li(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=C.getState(),s=this.store.getState(),c=s.map,d=s.translation.profileId;if(!(o||!c||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(c),title:(r=c.untranslatedTitle)!==null&&r!==void 0?r:c.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(c.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:cn.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=C.getState(),c=this.store.getState(),d=c.map,p=c.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let m={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(v=>{var S;return{tocId:v.tocId,title:(S=v.untranslatedTitle)!==null&&S!==void 0?S:v.title}}),document:m,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var ui=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},pi=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},fi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},hi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},mi=class extends Event{constructor(){super("ft-reader-map-not-found")}},gi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},yi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},bi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var yp=T`
|
|
1009
|
+
`;var Vo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vo||(Vo={}));var Zm={setRequest:(t,e)=>{t.request=e.payload}},bp=t=>Qe.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Zm,deprecatedKeys:["locales"]});var vi=class extends pe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((r,o)=>r.key.localeCompare(o.key))}};var xi=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},Si=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Ei=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o},composed:!0,bubbles:!0})}},zo=class t extends Event{constructor(){super(t.eventName)}};zo.eventName="search-context-clear-all-filters";var Ym=t=>t.request.virtualField===Gt.TITLE_ONLY&&t.request.scope===Ir.DOCUMENTS,Qm=t=>t.request.keywordMatch==Rt.MANDATORY,Wo=class t extends rr{static build(e,r){return new t(bp(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Un(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==Vo.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(ze(C.getState().session,W.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.updateLocales=(o=C.getState().availableContentLocales)=>{this.store.actions.locales(o),o.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new te(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new te(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new vi,this.searchWatcher=new Xe(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Xe(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new Xe(C,o=>o.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new Xe(C,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),C.addEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(C.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),C.removeEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return C.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let o=Pe(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:r?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r;let o=this.store.getState().request.contentLocale;return e!==o&&(e=t.findKnownContentLocale(e,o),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=C.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&pt.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:o}=C.getState();if(r.length===0)return e[0];let i=s=>r.some(c=>c.lang==s);for(let s of e)if(i(s))return s;let a=o?.defaultLocales.defaultContentLocale;return a?`${a.lang}-${a.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:gt(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var o;let i=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let r=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Gt.TITLE_ONLY,scope:Ir.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Gt.EVERYWHERE,scope:Ir.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Ym(this.store.getState())}get keywordMatch(){return Qm(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new zo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let o=this.facetIds.filter(i=>i!=e);r&&o.push(r),this.facetIds=o}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(o=>o.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,r,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:o}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,o,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Vo.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=Rr(this.service.launchSearch(e));let c=await this.cancelableSearch;if(this.store.actions.announcements(c.announcements),c.paging.currentPage<=1)this.store.actions.results(c.results),this.store.actions.facets(c.facets),this.store.actions.spellcheck(c.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(c.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(c.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(c.paging)}}catch(c){c instanceof ke||(console.error(c),(i=this.errorHandler)===null||i===void 0||i.call(this,c))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=Rr(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof ke)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var ac=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},cc=class extends zt{constructor(e){super("register-ft-search-component",e)}},vp=Symbol("registerInterval"),sc=Symbol("registerAttempts"),Xm=40,Jm=ae(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sc]=0,this.tryToRegisterToContext(),this[vp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[sc]>Xm?window.clearInterval(this[vp]):(this[sc]++,this.dispatchEvent(new cc({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ac([F()],e.prototype,"stateManager",void 0),ac([F({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),ac([g()],e.prototype,"searchRegistrationId",void 0),e}),xp=class extends Jm(we){};function Ci(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Oi(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var wi=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=r??new Kr,this.resultsWatcher=ls(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=C.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=C.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Wt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:Ci(e.metadataFilters),facets:e.metadataFilters.map(a=>Oi(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Wt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==at.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Wt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:Ci(o.metadataFilters),facets:o.metadataFilters.map(s=>Oi(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==at.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Wt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:Ci(o.metadataFilters),facets:o.metadataFilters.map(s=>Oi(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case at.MAP:return{id:e.map.mapId,title:e.map.title,type:At.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case at.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:At.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case at.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:At.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case at.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:At.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case at.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:At.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=Tt(e))===null||r===void 0?void 0:r.originUrl}};var ie=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},z=class extends we{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Wo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new wi(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(C)}render(){return I`
|
|
1010
1010
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
1011
1011
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
1012
|
-
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),
|
|
1012
|
+
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),pt.knownContexts.register(this),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),pt.knownContexts.unregister(this),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Si(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Ei(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r,o,i;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let a=(i=(o=e.detail)===null||o===void 0?void 0:o.target)!==null&&i!==void 0?i:e.composedPath()[0];this.register(a)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new xi(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};z.elementDefinitions={};z.styles=yp;ie([j({store:C.name})],z.prototype,"session",void 0);ie([g()],z.prototype,"query",void 0);ie([g()],z.prototype,"contentLocale",void 0);ie([nt()],z.prototype,"pageSize",void 0);ie([g({type:Boolean})],z.prototype,"searchInDocumentTitlesOnly",void 0);ie([g()],z.prototype,"keywordMatch",void 0);ie([g()],z.prototype,"scope",void 0);ie([g()],z.prototype,"virtualField",void 0);ie([g()],z.prototype,"registrationId",void 0);ie([g({type:Boolean})],z.prototype,"ignoreEmptyQuery",void 0);ie([g({type:Boolean})],z.prototype,"applyStickyFilters",void 0);ie([j({store:C.name})],z.prototype,"openExternalDocumentInNewTab",void 0);ie([de([])],z.prototype,"filters",void 0);ie([g()],z.prototype,"sortId",void 0);ie([de([])],z.prototype,"sort",void 0);ie([de({})],z.prototype,"otherQueryParams",void 0);ie([j({store:"search"})],z.prototype,"request",void 0);ie([j({store:"search"})],z.prototype,"paging",void 0);ie([j({store:"search",selector:t=>t.spellcheck})],z.prototype,"spellcheckAutocorrect",void 0);ie([j({store:C.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],z.prototype,"_appIntegrationInfoReady",void 0);ie([g({attribute:!1})],z.prototype,"searchServiceProvider",void 0);ie([g({type:Boolean})],z.prototype,"disableAnalyticsEvents",void 0);var Sp={"ft-search-context":z};q(Sp);var ve=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},lc=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},re=class extends we{constructor(){super(),this.applyStickyFilters=!1,this.metadataFilters=[],this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new te(5),this.navigationDebouncer=new te(10),this.mapLoadedEventDebouncer=new te(50),this.addStore(C)}render(){return I`
|
|
1013
1013
|
${this.importStyleIfNeeded()}
|
|
1014
1014
|
<ft-toc-filtering-search-context
|
|
1015
1015
|
disableAnalyticsEvents
|
|
1016
1016
|
registrationId="reader-toc-filtering"
|
|
1017
|
+
?applyStickyFilters=${this.applyStickyFilters}
|
|
1017
1018
|
.filters=${this.filters}
|
|
1018
|
-
@ft-search-request-change=${e=>{var r;e.stopPropagation()
|
|
1019
|
+
@ft-search-request-change=${e=>{var r;e.stopPropagation();let o=e.detail.metadataFilters;e.target===this.tocFilteringContext&&o.length>0&&this.stateManager.setFilters((r=o.filter(i=>i.key!="ft:publicationId"))!==null&&r!==void 0?r:[])}}
|
|
1019
1020
|
@ft-search-results-change=${e=>e.stopPropagation()}
|
|
1020
1021
|
@search-context-clear-all-filters=${e=>e.stopPropagation()}
|
|
1021
1022
|
>
|
|
@@ -1025,7 +1026,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1025
1026
|
<style>
|
|
1026
1027
|
@import "${o}"
|
|
1027
1028
|
</style>
|
|
1028
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1029
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=di.build(this.id||Xi(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}get filters(){return this.mapId?[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.mapId]}},...this.metadataFilters]:[]}connectedCallback(){super.connectedCallback(),pt.knownContexts.register(this),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",r),document.head.append(o)}window.FluidTopicsReaderService=new lc(this.stateManager)}),C.addEventListener(Fe.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),pt.knownContexts.unregister(this),C.addEventListener(Fe.eventName,this.updateConfiguration),this.stateManager.removeListeners()}update(e){var r;super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("metadataFilters")&&this.stateManager.setFilters((r=this.metadataFilters)!==null&&r!==void 0?r:[]),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery);let o=this.hasUpdated&&e.has("metadataFilters");e.has("session")?this.reload():o?this.stateManager.reloadFromFilter(this.section,this.page):["tocId","section","page","mapId","topicPivot"].some(i=>e.has(i))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var r,o;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new fi(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((o=this.scrollTarget)===null||o===void 0?void 0:o.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 pi(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}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 bi),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)})}registerComponent(e){var r,o;e.stopPropagation();let i=(o=(r=e.detail)===null||r===void 0?void 0:r.target)!==null&&o!==void 0?o:e.composedPath()[0];this.register(i)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new gi):r.status===403?this.dispatchEvent(new yi):r.status===404?this.dispatchEvent(new mi):this.dispatchEvent(new hi(e))}reloadBookmarks(){js.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.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 ui(this.map,this.toc))})}};re.elementDefinitions={"ft-toc-filtering-search-context":z};re.styles=mp;ve([j({store:C.name})],re.prototype,"baseUrl",void 0);ve([j({store:C.name})],re.prototype,"session",void 0);ve([g()],re.prototype,"mapId",void 0);ve([g()],re.prototype,"tocId",void 0);ve([g()],re.prototype,"section",void 0);ve([g()],re.prototype,"topicPivot",void 0);ve([g()],re.prototype,"searchInDocumentQuery",void 0);ve([g({type:Boolean})],re.prototype,"applyStickyFilters",void 0);ve([j({store:"reader",converter:rn([]),attribute:!0})],re.prototype,"metadataFilters",void 0);ve([nt({min:1})],re.prototype,"page",void 0);ve([j({store:"reader"})],re.prototype,"map",void 0);ve([j({store:"reader"})],re.prototype,"toc",void 0);ve([j({store:"reader"})],re.prototype,"visibleTopics",void 0);ve([j({store:"reader"})],re.prototype,"currentPage",void 0);ve([j({store:"reader"})],re.prototype,"scrollTarget",void 0);ve([g({attribute:!1})],re.prototype,"readerServiceProvider",void 0);ve([ee("ft-toc-filtering-search-context")],re.prototype,"tocFilteringContext",void 0);var Ep={"ft-reader-context":re};q(Ep);var xe=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends Iu(Jn($n)){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(nc)}setReaderStateManager(e){super.setReaderStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var e,r,o,i;this.useForSwitchingToRelatives&&this.key?this.relatives=(i=(r=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.map)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&i!==void 0?i:[]:this.relatives=[]}render(){return I`
|
|
1029
1030
|
${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
|
|
1030
1031
|
${this.hideIfEmpty()}
|
|
1031
1032
|
`}renderSwitchToRelatives(){return I`
|
|
@@ -1033,7 +1034,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1033
1034
|
<ft-floating-menu part="floating-menu" text="Toggle collapsible" trailingIcon>
|
|
1034
1035
|
${this.renderChip(!0)}
|
|
1035
1036
|
<ft-floating-menu-label>${this.metadataLabel}</ft-floating-menu-label>
|
|
1036
|
-
${
|
|
1037
|
+
${wr(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
|
|
1037
1038
|
</ft-floating-menu>
|
|
1038
1039
|
</div>
|
|
1039
1040
|
`}renderChip(e=!1){var r,o,i,a,s,c;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((o=this.flatMetadata)===null||o===void 0?void 0:o.displayValue),p=`${this.metadataLabel}: ${(s=(i=this.flatMetadata)===null||i===void 0?void 0:i.displayTooltipValue)!==null&&s!==void 0?s:this.noValueMessage}`,f=I`
|
|
@@ -1057,9 +1058,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1057
1058
|
text="${p}">
|
|
1058
1059
|
${f}
|
|
1059
1060
|
</ft-tooltip>
|
|
1060
|
-
`}get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}renderRelativeItem(e,r){var o,i;let a=this.translateValues&&(i=new
|
|
1061
|
+
`}get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}renderRelativeItem(e,r){var o,i;let a=this.translateValues&&(i=new Vr((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&i!==void 0?i:r;return I`
|
|
1061
1062
|
<a part="relative-item-link"
|
|
1062
|
-
href="${
|
|
1063
|
+
href="${oc(e,this.metadataFilters)}"
|
|
1063
1064
|
@click=${s=>this.addTopicPivotParam(s,e)}>
|
|
1064
1065
|
<ft-ripple part="relative-item-ripple"></ft-ripple>
|
|
1065
1066
|
<ft-floating-menu-item part="relative-item" value="${a.value}" notFocusable>
|
|
@@ -1074,7 +1075,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1074
1075
|
display: none !important;
|
|
1075
1076
|
}
|
|
1076
1077
|
</style>
|
|
1077
|
-
`:D}addTopicPivotParam(e,r){let o=this.stateManager.store.getState().visibleTopics[0];o&&r.type=="MAP"&&this.relativeTopicPivotMetadata&&(e.stopPropagation(),e.preventDefault(),this.service.getTopicMetadataValue(o,this.relativeTopicPivotMetadata).then(i=>{var a;let s=
|
|
1078
|
+
`:D}addTopicPivotParam(e,r){let o=this.stateManager.store.getState().visibleTopics[0];o&&r.type=="MAP"&&this.relativeTopicPivotMetadata&&(e.stopPropagation(),e.preventDefault(),this.service.getTopicMetadataValue(o,this.relativeTopicPivotMetadata).then(i=>{var a;let s=li((a=oc(r,this.metadataFilters))!==null&&a!==void 0?a:"",i),c=document.createElement("a");c.href=s,(e.ctrlKey||e.metaKey)&&(c.target="_blank"),this.append(c),c.click()}))}willUpdate(e){var r,o,i,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.stateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.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)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?_t.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Vr((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}get metadataLabel(){var e,r,o,i,a,s;return this.metadata?this.metadata.label:(s=(a=(o=(r=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&a!==void 0?a:(i=this.relatives.find(c=>c.metadata.value))===null||i===void 0?void 0:i.metadata.label)!==null&&s!==void 0?s:this.key}};oe.elementDefinitions={"ft-chip":X,"ft-floating-menu":J,"ft-floating-menu-item":Ce,"ft-floating-menu-label":Dt,"ft-ripple":K,"ft-tooltip":se};oe.styles=pu;xe([g(),Va()],oe.prototype,"key",void 0);xe([g({type:Boolean})],oe.prototype,"multiLine",void 0);xe([g({type:Boolean})],oe.prototype,"useForSwitchingToRelatives",void 0);xe([g({type:Boolean})],oe.prototype,"displayLabel",void 0);xe([nt()],oe.prototype,"hierarchicalValueTruncatingLevel",void 0);xe([g({type:Boolean})],oe.prototype,"forceTooltip",void 0);xe([g({attribute:!1})],oe.prototype,"editorMode",void 0);xe([g({type:Boolean})],oe.prototype,"translateValues",void 0);xe([j({store:"reader",selector:(t,e)=>{var r,o;return(o=(r=t.map)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(i=>i.key===e.key)}})],oe.prototype,"metadata",void 0);xe([F()],oe.prototype,"flatMetadata",void 0);xe([j({store:"reader"})],oe.prototype,"map",void 0);xe([j({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.relativeTopicPivotMetadata}})],oe.prototype,"relativeTopicPivotMetadata",void 0);xe([F()],oe.prototype,"relatives",void 0);xe([j({store:C.name})],oe.prototype,"availableContentLocales",void 0);xe([j({store:"reader"})],oe.prototype,"metadataFilters",void 0);xe([Hu(nc.properties.itemWithNoValueForSwitchToRelatives())],oe.prototype,"noValueMessage",void 0);xe([za({eventName:St.clusteringHelperCreated})],oe.prototype,"updateRelatives",null);var Cp={"ft-reader-metadata":oe};q(Cp);})();
|
|
1078
1079
|
/*! Bundled license information:
|
|
1079
1080
|
|
|
1080
1081
|
.store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js:
|