@fluid-topics/ft-reader-metadata 2.2.25 → 2.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-metadata.light.js +202 -196
- package/build/ft-reader-metadata.min.js +169 -163
- package/package.json +12 -12
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var yp=Object.defineProperty;var U=(t,e)=>{for(var r in e)yp(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(y,b){if(y=y.toLowerCase(),this._getDefinition(y)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${y}" has already been used with this registry`);if(this._definitionsByClass.get(b)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=b.prototype.attributeChangedCallback,_=new Set(b.observedAttributes||[]);m(b,_,v);let L={elementClass:b,connectedCallback:b.prototype.connectedCallback,disconnectedCallback:b.prototype.disconnectedCallback,adoptedCallback:b.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:b.formAssociated,formAssociatedCallback:b.prototype.formAssociatedCallback,formDisabledCallback:b.prototype.formDisabledCallback,formResetCallback:b.prototype.formResetCallback,formStateRestoreCallback:b.prototype.formStateRestoreCallback,observedAttributes:_};this._definitionsByTag.set(y,L),this._definitionsByClass.set(b,L);let $=r.call(o,y);$||($=h(y),e.call(o,y,$)),this===window.customElements&&(s.set(b,L),L.standInClass=$);let J=this._awaitingUpgrade.get(y);if(J){this._awaitingUpgrade.delete(y);for(let H of J)a.delete(H),S(H,L,!0)}let P=this._whenDefinedPromises.get(y);return P!==void 0&&(P.resolve(b),this._whenDefinedPromises.delete(y)),b}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let b=this._getDefinition(y);if(b!==void 0)return Promise.resolve(b.elementClass);let v=this._whenDefinedPromises.get(y);return v===void 0&&(v={},v.promise=new Promise(_=>v.resolve=_),this._whenDefinedPromises.set(y,v)),v.promise}_upgradeWhenDefined(y,b,v){let _=this._awaitingUpgrade.get(b);_||this._awaitingUpgrade.set(b,_=new Set),v?_.add(y):_.delete(y)}};let d;window.HTMLElement=function(){let b=d;if(b)return d=void 0,b;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 b=Reflect.construct(t,[],v.standInClass),Object.setPrototypeOf(b,this.constructor.prototype),i.set(b,v),b},window.HTMLElement.prototype=t.prototype;let p=y=>y===document||y instanceof ShadowRoot,f=y=>{let b=y.getRootNode();if(!p(b)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;b=v.getRootNode(),p(b)||(b=c.get(b)?.getRootNode()||document)}return b.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let _=f(v)||window.customElements,L=_._getDefinition(y);return L?S(v,L):a.set(v,_),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!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=(y,b,v)=>{if(b.size===0||v===void 0)return;let _=y.prototype.setAttribute;_&&(y.prototype.setAttribute=function(J,P){let H=J.toLowerCase();if(b.has(H)){let ce=this.getAttribute(H);_.call(this,H,P),v.call(this,H,ce,P)}else _.call(this,H,P)});let L=y.prototype.removeAttribute;L&&(y.prototype.removeAttribute=function(J){let P=J.toLowerCase();if(b.has(P)){let H=this.getAttribute(P);L.call(this,P),v.call(this,P,H,null)}else L.call(this,P)});let $=y.prototype.toggleAttribute;$&&(y.prototype.toggleAttribute=function(J,P){let H=J.toLowerCase();if(b.has(H)){let ce=this.getAttribute(H);$.call(this,H,P);let et=this.getAttribute(H);v.call(this,H,ce,et)}else $.call(this,H,P)})},x=y=>{let b=Object.getPrototypeOf(y);if(b!==window.HTMLElement)return b===t?Object.setPrototypeOf(y,window.HTMLElement):x(b)},S=(y,b,v=!1)=>{Object.setPrototypeOf(y,b.elementClass.prototype),i.set(y,b),d=y;try{new b.elementClass}catch{x(b.elementClass),new b.elementClass}b.attributeChangedCallback&&b.observedAttributes.forEach(_=>{y.hasAttribute(_)&&b.attributeChangedCallback.call(y,_,null,y.getAttribute(_))}),v&&b.connectedCallback&&y.isConnected&&b.connectedCallback.call(y)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let b=w.apply(this,arguments);return y.customElements&&(b.customElements=y.customElements),b};let E=[document],A=(y,b,v=void 0)=>{let _=(v?Object.getPrototypeOf(v):y.prototype)[b];y.prototype[b]=function(){E.push(this);let L=_.apply(v||this,arguments);return L!==void 0&&c.set(L,this),E.pop(),L}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let F=(y,b)=>{let v=Object.getOwnPropertyDescriptor(y.prototype,b);Object.defineProperty(y.prototype,b,{...v,set(_){E.push(this),v.set.call(this,_),E.pop()}})};if(F(Element,"innerHTML"),F(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,b=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...J){let P=b.call(this,...J);return y.set(P,this),P},v.forEach(J=>{let P=window.ElementInternals.prototype,H=P[J];P[J]=function(...ce){let et=y.get(this);if(i.get(et).formAssociated===!0)return H?.call(this,...ce);throw new DOMException(`Failed to execute ${H} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class _ extends Array{constructor(P){super(...P),this._elements=P}get value(){return this._elements.find(P=>P.checked===!0)?.value||""}}class L{constructor(P){let H=new Map;P.forEach((ce,et)=>{let Si=ce.getAttribute("name"),oc=H.get(Si)||[];this[+et]=ce,oc.push(ce),H.set(Si,oc)}),this.length=P.length,H.forEach((ce,et)=>{ce&&(ce.length===1?this[et]=ce[0]:this[et]=new _(ce))})}namedItem(P){return this[P]}}let $=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let J=$.get.call(this,[]),P=[];for(let H of J){let ce=i.get(H);(!ce||ce.formAssociated===!0)&&P.push(H)}return new L(P)}})}}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 Ni={};U(Ni,{CSSResult:()=>gr,LitElement:()=>pt,ReactiveElement:()=>Be,_$LE:()=>_p,_$LH:()=>Li,adoptStyles:()=>Kr,css:()=>T,defaultConverter:()=>yr,getCompatibleStyle:()=>Ho,html:()=>I,isServer:()=>lg,mathml:()=>Ii,noChange:()=>le,notEqual:()=>Zr,nothing:()=>M,render:()=>Pi,supportsAdoptingStyleSheets:()=>jr,svg:()=>_i,unsafeCSS:()=>Mt});var $o=globalThis,jr=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ei=Symbol(),nc=new WeakMap,gr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ei)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(jr&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=nc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&nc.set(r,e))}return e}toString(){return this.cssText}},Mt=t=>new gr(typeof t=="string"?t:t+"",void 0,Ei),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 gr(r,t,Ei)},Kr=(t,e)=>{if(jr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),i=$o.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}},Ho=jr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Mt(r)})(t):t;var{is:bp,defineProperty:xp,getOwnPropertyDescriptor:vp,getOwnPropertyNames:Sp,getOwnPropertySymbols:Ep,getPrototypeOf:Cp}=Object,zo=globalThis,ic=zo.trustedTypes,Op=ic?ic.emptyScript:"",wp=zo.reactiveElementPolyfillSupport,qr=(t,e)=>t,yr={toAttribute(t,e){switch(e){case Boolean:t=t?Op: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}},Zr=(t,e)=>!bp(t,e),ac={attribute:!0,type:String,converter:yr,reflect:!1,useDefault:!1,hasChanged:Zr};Symbol.metadata??=Symbol("metadata"),zo.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=ac){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&&xp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){let{get:i,set:a}=vp(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)??ac}static _$Ei(){if(this.hasOwnProperty(qr("elementProperties")))return;let e=Cp(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=[...Sp(r),...Ep(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(Ho(i))}else e!==void 0&&r.push(Ho(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 Kr(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:yr).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:yr;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??Zr)(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,wp?.({ReactiveElement:Be}),(zo.reactiveElementVersions??=[]).push("2.1.2");var Oi=globalThis,sc=t=>t,Vo=Oi.trustedTypes,cc=Vo?Vo.createPolicy("lit-html",{createHTML:t=>t}):void 0,wi="$lit$",ut=`lit$${Math.random().toFixed(9).slice(2)}$`,Ai="?"+ut,Ap=`<${Ai}>`,Ut=document,Qr=()=>Ut.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",Ri=Array.isArray,hc=t=>Ri(t)||typeof t?.[Symbol.iterator]=="function",Ci=`[
|
|
2
|
-
\f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),uc=/'/g,pc=/"/g,mc=/^(?:script|style|textarea|title)$/i,Ti=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),I=Ti(1),_i=Ti(2),Ii=Ti(3),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),fc=new WeakMap,Ft=Ut.createTreeWalker(Ut,129);function gc(t,e){if(!Ri(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return cc!==void 0?cc.createHTML(e):e}var yc=(t,e)=>{let r=t.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Yr;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===Yr?f[1]==="!--"?s=lc:f[1]!==void 0?s=dc:f[2]!==void 0?(mc.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=Dt):f[3]!==void 0&&(s=Dt):s===Dt?f[0]===">"?(s=i??Yr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Dt:f[3]==='"'?pc:uc):s===pc||s===uc?s=Dt:s===lc||s===dc?s=Yr:(s=Dt,i=void 0);let x=s===Dt&&t[c+1].startsWith("/>")?" ":"";a+=s===Yr?d+Ap:h>=0?(o.push(p),d.slice(0,h)+wi+d.slice(h)+ut+x):d+ut+(h===-2?c:x)}return[gc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Jr=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]=yc(e,r);if(this.el=t.createElement(p,o),Ft.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Ft.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(wi)){let m=f[s++],x=i.getAttribute(h).split(ut),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Go:S[1]==="?"?jo:S[1]==="@"?Ko:$t}),i.removeAttribute(h)}else h.startsWith(ut)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(mc.test(i.tagName)){let h=i.textContent.split(ut),m=h.length-1;if(m>0){i.textContent=Vo?Vo.emptyScript:"";for(let x=0;x<m;x++)i.append(h[x],Qr()),Ft.nextNode(),d.push({type:2,index:++a});i.append(h[m],Qr())}}}else if(i.nodeType===8)if(i.data===Ai)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(ut,h+1))!==-1;)d.push({type:7,index:a}),h+=ut.length-1}a++}}static createElement(e,r){let o=Ut.createElement("template");return o.innerHTML=e,o}};function Bt(t,e,r=t,o){if(e===le)return e;let i=o!==void 0?r._$Co?.[o]:r._$Cl,a=Xr(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=Bt(t,i._$AS(t,e.values),i,o)),e}var Wo=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??Ut).importNode(r,!0);Ft.currentNode=i;let a=Ft.nextNode(),s=0,c=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new br(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new qo(a,this,e)),this._$AV.push(p),d=o[++c]}s!==d?.index&&(a=Ft.nextNode(),s++)}return Ft.currentNode=Ut,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++}},br=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,i){this.type=2,this._$AH=M,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=Bt(this,e,r),Xr(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):hc(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!==M&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ut.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=Jr.createElement(gc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Wo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=fc.get(e.strings);return r===void 0&&fc.set(e.strings,r=new Jr(e)),r}k(e){Ri(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(Qr()),this.O(Qr()),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=sc(e).nextSibling;sc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},$t=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,i,a){this.type=1,this._$AH=M,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=M}_$AI(e,r=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Bt(this,e,r,0),s=!Xr(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=Bt(this,c[o+d],r,d),p===le&&(p=this._$AH[d]),s||=!Xr(p)||p!==this._$AH[d],p===M?e=M:e!==M&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Go=class extends $t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},jo=class extends $t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},Ko=class extends $t{constructor(e,r,o,i,a){super(e,r,o,i,a),this.type=5}_$AI(e,r=this){if((e=Bt(this,e,r,0)??M)===le)return;let o=this._$AH,i=e===M&&o!==M||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==M&&(o===M||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)}},qo=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){Bt(this,e)}},Li={M:wi,P:ut,A:Ai,C:1,L:yc,R:Wo,D:hc,V:Bt,I:br,H:$t,N:jo,U:Ko,B:Go,F:qo},Rp=Oi.litHtmlPolyfillSupport;Rp?.(Jr,br),(Oi.litHtmlVersions??=[]).push("3.3.3");var Pi=(t,e,r)=>{let o=r?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=r?.renderBefore??null;o._$litPart$=i=new br(e.insertBefore(Qr(),a),a,void 0,r??{})}return i._$AI(t),i};var ki=globalThis,pt=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=Pi(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return le}};pt._$litElement$=!0,pt.finalized=!0,ki.litElementHydrateSupport?.({LitElement:pt});var Tp=ki.litElementPolyfillSupport;Tp?.({LitElement:pt});var _p={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(ki.litElementVersions??=[]).push("4.2.2");var lg=!1;var Fi={};U(Fi,{customElement:()=>Ip,eventOptions:()=>Pp,property:()=>g,query:()=>ee,queryAll:()=>Np,queryAssignedElements:()=>Mi,queryAssignedNodes:()=>Di,queryAsync:()=>Mp,standardProperty:()=>bc,state:()=>D});var Ip=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Lp={attribute:!0,type:String,converter:yr,reflect:!1,hasChanged:Zr},bc=(t=Lp,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"?bc(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 D(t){return g({...t,state:!0,attribute:!1})}function Pp(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 kp;function Np(t){return(e,r)=>je(e,r,{get(){return(this.renderRoot??(kp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Mp(t){return(e,r)=>je(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Mi(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 Di(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 Ui={};U(Ui,{repeat:()=>vr});var tt={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:Dp}=Li,xc=t=>t;var Sc=t=>t.strings===void 0,vc=()=>document.createComment(""),xr=(t,e,r)=>{let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(vc(),i),s=o.insertBefore(vc(),i);r=new Dp(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=xc(d).nextSibling;xc(o).insertBefore(d,i),d=p}}}return r},Et=(t,e,r=t)=>(t._$AI(e,r),t),Fp={},Ec=(t,e=Fp)=>t._$AH=e,Cc=t=>t._$AH,Zo=t=>{t._$AR(),t._$AA.remove()};var Oc=(t,e,r)=>{let o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},vr=Ie(class extends $e{constructor(t){if(super(t),t.type!==tt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let 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=Cc(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]=Et(i[h],a[x]),h++,x++;else if(c[m]===s[S])d[S]=Et(i[m],a[S]),m--,S--;else if(c[h]===s[S])d[S]=Et(i[h],a[S]),xr(t,d[S+1],i[h]),h++,S--;else if(c[m]===s[x])d[x]=Et(i[m],a[x]),xr(t,i[h],i[m]),m--,x++;else if(p===void 0&&(p=Oc(s,x,S),f=Oc(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 A=xr(t,i[h]);Et(A,a[x]),d[x]=A}else d[x]=Et(E,a[x]),xr(t,i[h],E),i[w]=null;x++}else Zo(i[m]),m--;else Zo(i[h]),h++;for(;x<=S;){let w=xr(t,d[S+1]);Et(w,a[x]),d[x++]=w}for(;h<=m;){let w=i[h++];w!==null&&Zo(w)}return this.ut=s,Ec(t,d),le}});var Bi={};U(Bi,{classMap:()=>Le});var Le=Ie(class extends $e{constructor(t){if(super(t),t.type!==tt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let 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 $i={};U($i,{styleMap:()=>Bp});var wc="important",Up=" !"+wc,Bp=Ie(class extends $e{constructor(t){if(super(t),t.type!==tt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(Up);o.includes("-")||a?r.setProperty(o,a?i.slice(0,-11):i,a?wc:""):r[o]=i}}return le}});var zi={};U(zi,{UnsafeHTMLDirective:()=>Sr,unsafeHTML:()=>Hi});var Sr=class extends $e{constructor(e){if(super(e),this.it=M,e.type!==tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===M||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:[]}}};Sr.directiveName="unsafeHTML",Sr.resultType=1;var Hi=Ie(Sr);var Vi={};U(Vi,{splitBreadcrumbForMenu:()=>$p});function $p(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 ea={};U(ea,{CacheRegistry:()=>ot,ClearCacheEvent:()=>no});var Wi={};U(Wi,{CancelablePromise:()=>Yo,CanceledPromiseError:()=>Pe,cancelable:()=>Er});var Pe=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Yo=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}},Er=t=>new Yo((e,r)=>t.then(e).catch(r));var Ji={};U(Ji,{FtNotificationEvent:()=>oo,PostResizeEvent:()=>Xi,PreResizeEvent:()=>Qi,WithEventBus:()=>ht,withEventBus:()=>en});var Yi={};U(Yi,{applyMixinOnce:()=>ie,customElements:()=>K,dateReviver:()=>Wp,deepCopy:()=>ke,deepEqual:()=>he,delay:()=>Xo,eventPathContainsMatchingElement:()=>ro,everyDeep:()=>Vp,flatDeep:()=>Rc,forEachDeep:()=>Tc,getComposedPathTo:()=>Ki,groupBy:()=>Kp,hasChanged:()=>He,ignoreComposingEvents:()=>Zi,last:()=>jp,minmax:()=>ft,parseDate:()=>Ic,randomId:()=>qi,someDeep:()=>_c,unslotText:()=>Jo,waitFor:()=>to,waitUntil:()=>ji});var Gi={};U(Gi,{customElement:()=>eo,dateProperty:()=>zp,isNumber:()=>Ac,jsonProperty:()=>de,jsonPropertyConverter:()=>Qo,numberProperty:()=>rt,optionalNumberProperty:()=>Hp});var eo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Qo=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:Qo(t),hasChanged:He,...e??{}})}function Hp(t){return rt(t)}function rt(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 Ac(e)?ft(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Ac(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 Xo=t=>new Promise(e=>setTimeout(e,t));async function ji(t,e=10,r=2e4){await to(async()=>await t()||void 0,e,r)}async function to(t,e=10,r=2e4){let o=await t(),i=performance.now(),a=i;for(;o==null&&(!r||a-i<r);)await Xo(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Rc(t,e){return t.flatMap(r=>[r,...Rc(e(r),e)])}function Tc(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 _c(t,e,r){let o=!1;return Tc(t,e,(i,a,s,c)=>(o=!!r(i,a,s,c),!o)),o}function Vp(t,e,r){return!_c(t,e,(o,i,a,s)=>!r(o,i,a,s))}function Wp(...t){return(e,r)=>t.includes(e)?Ic(r):r}function Ic(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 Gp(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 Gp(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function ro(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 ft(t,e,r){return Math.min(Math.max(t,e),r)}function jp(t){return t[t.length-1]}function Jo(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Jo(e)).join(""):t?.textContent||""}function Ki(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 qi(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ie(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 Zi(){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 K(t){for(let[e,r]of Object.entries(t))eo(e)(r)}function Kp(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 oo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Qi=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Xi=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},en=ie(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)}}}),ht=class extends en(Object){};var no=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},ot=class extends ht{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 no(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new no([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=Er(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 aa={};U(aa,{ClusteringHelper:()=>At,formatHierarchicalValues:()=>ia});var na={};U(na,{accessBreadcrumb:()=>tf,accessResult:()=>wt,accessResultId:()=>ef,accessResultUrl:()=>io,enrichReaderUrl:()=>oa});var ra={};U(ra,{SearchPlaceConverter:()=>Ke,SearchPlaceQueryParams:()=>N,isSearchPlaceQueryParams:()=>fl,serializeRequest:()=>Xp});var qp=t=>typeof t=="object"&&t!=null;var Zp=t=>typeof t=="number",tn=t=>typeof t=="string",ta=t=>qp(t)&&tn(t.endpoint)&&tn(t.method)&&tn(t.statusText)&&tn(t.body)&&Zp(t.status),Lc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Lc||(Lc={}));var Pc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pc||(Pc={}));var kc;(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"})(kc||(kc={}));var Ct;(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"})(Ct||(Ct={}));var Nc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Nc||(Nc={}));var Mc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Mc||(Mc={}));var rn;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(rn||(rn={}));var Ht;(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"})(Ht||(Ht={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Fc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Fc||(Fc={}));var Uc;(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"})(Uc||(Uc={}));var Bc;(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"})(Bc||(Bc={}));var $c;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})($c||($c={}));var Hc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hc||(Hc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var Vc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Vc||(Vc={}));var Wc;(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"})(Wc||(Wc={}));var Ot;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ot||(Ot={}));var Gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Gc||(Gc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var zt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(zt||(zt={}));var Qc=t=>Object.keys(zt).includes(t);var Kc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Kc||(Kc={}));var on;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(on||(on={}));var qc;(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"})(qc||(qc={}));var Cr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cr||(Cr={}));var Xc=t=>Object.keys(Cr).includes(t);var nt;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nt||(nt={}));var Or;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Or||(Or={}));var Zc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Zc||(Zc={}));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 ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var Yc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Yc||(Yc={}));var Jc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Jc||(Jc={}));var el;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(el||(el={}));var tl;(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"})(tl||(tl={}));var rl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(rl||(rl={}));var ol;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ol||(ol={}));var nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(nl||(nl={}));var il;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(il||(il={}));var al;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(al||(al={}));var sl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(sl||(sl={}));var cl;(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"})(cl||(cl={}));var ll;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ll||(ll={}));var Yp={[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 dl(t,e){return t===e||(Yp[t]??[]).some(r=>dl(r,e))}function Ve(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=>dl(o,e))}function ul(t,...e){return t==null?!1:e.some(r=>Ve(t,r))}function Qp(t){return`"${t}"`}function pl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Xp(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 Jp=new Set(Object.values(N));function fl(t){return Jp.has(t)}var Ke=class t{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,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(y=>y.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let y=w.map(b=>{var v;return`${b.key}~${(v=b.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");m.append(N.DATE_FILTERS,y)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(y=>y.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let y=E.map(b=>{var v,_;return`${b.key}~${(v=b.rangeFilter)===null||v===void 0?void 0:v.from}_${(_=b.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");m.append(N.RANGE_FILTERS,y)}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 A=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let y in A)m.append(y,A[y]);let F=new Array;return m.forEach((y,b)=>{F.push(this.encodeQueryString(b)+"="+this.encodeQueryString(y))}),encodeURI(F.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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(N.LOCALE)==="all"?void 0:d.get(N.LOCALE),f=((o=d.get(N.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),h=(r=d.get(N.SORT))===null||r===void 0?void 0:r.toLowerCase(),m=(i=d.get(N.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(N.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(N.KEYWORD_MATCH),w=S?S.toUpperCase()===Ot.MANDATORY?Ot.MANDATORY:Ot.OPTIONAL:void 0,E={};for(let A of d.keys())fl(A)||(E[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(N.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[m])!==null&&c!==void 0?c:"DEFAULT",virtualField:Qc(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:ft(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:E}}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(pl).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Cr[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(Xc(e))return[{key:"ft:lastEdition",dateFilter:{type:Cr[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=>Qp(pl(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 wt(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 ef(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 io(t,e){var r,o,i,a,s,c,d,p,f;return(f=(p=(d=(c=oa((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&c!==void 0?c:oa((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 tf(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 oa(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 ia(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var At=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=wt(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(ia(c)),s.push(ia(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 sa={};U(sa,{Debouncer:()=>Y});var Y=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 ua={};U(ua,{designSystemVariables:()=>k});var da={};U(da,{DesignSystemFamily:()=>ao,DesignSystemSize:()=>so,FtCssVariableFactory:()=>n,badge:()=>xf,banner:()=>bf,button:()=>nf,card:()=>sf,chart:()=>Mf,checkbox:()=>uf,chip:()=>mf,chipChoice:()=>hf,chipGroup:()=>gf,collapsible:()=>kf,combobox:()=>Lf,dateRangePicker:()=>$f,drawer:()=>Af,eventCard:()=>cf,floatingMenu:()=>If,foundation:()=>l,link:()=>yf,modal:()=>Of,notice:()=>Ff,notification:()=>Uf,pageDesigner:()=>Df,pageFooter:()=>Ef,pageHeader:()=>Sf,pageLayout:()=>Cf,popover:()=>Pf,radio:()=>pf,reorderableList:()=>wf,resolveFamilyClass:()=>ca,resolveSizeClass:()=>la,semantic:()=>u,setVariable:()=>q,switch_:()=>Nf,table:()=>ff,tabs:()=>Rf,textArea:()=>_f,textInput:()=>Tf,titleBreadcrumb:()=>vf,toc:()=>df,toggle:()=>af,tooltip:()=>Bf,treeList:()=>lf,typographies:()=>rf,typographyBody1Medium:()=>xl,typographyBody1Regular:()=>bl,typographyBody1Semibold:()=>vl,typographyBody2Medium:()=>El,typographyBody2MediumUnderline:()=>Cl,typographyBody2Regular:()=>Sl,typographyBody2Semibold:()=>Ol,typographyCaption1Medium:()=>wl,typographyCaption1Semibold:()=>Al,typographyCaption2Bold:()=>_l,typographyCaption2Medium:()=>Rl,typographyCaption2Semibold:()=>Tl,typographyDisplay:()=>hl,typographyTitle1:()=>ml,typographyTitle2:()=>gl,typographyTitle3:()=>yl,typographyVariants:()=>of});var Rt=t=>typeof t=="string"?Mt(t):t,n=class{static create(e,r,o,i){let a=c=>Rt(c??i),s=T`var(${Rt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=c=>q(s,c??a(i)),s.get=c=>T`var(${Rt(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(${Rt(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=>q(s,c??a(i)),s.get=c=>T`var(${Rt(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(${Rt(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(${Rt(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function q(t,e){return Rt(`${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)")},hl={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")},ml={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")},gl={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")},yl={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")},bl={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")},xl={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")},vl={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")},Sl={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")},El={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")},Cl={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")},Ol={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")},wl={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")},Al={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")},Rl={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")},Tl={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")},_l={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")},rf={display:hl,"title-1":ml,"title-2":gl,"title-3":yl,"body-1-regular":bl,"body-1-medium":xl,"body-1-semibold":vl,"body-2-regular":Sl,"body-2-medium":El,"body-2-medium-underline":Cl,"body-2-semibold":Ol,"caption-1-medium":wl,"caption-1-semibold":Al,"caption-2-medium":Rl,"caption-2-semibold":Tl,"caption-2-bold":_l},of=["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 nf={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 af={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 sf={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 cf={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 lf={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 df={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",l.spacing2),top:n.create("--ftds-toc-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","3px"),itemRootDefaultLabelColor:n.extend("--ftds-toc-item-root-default-label-color","",u.contentGlobalSecondary),itemRootDefaultBorderColor:n.extend("--ftds-toc-item-root-default-border-color","",u.borderGlobalSubtle),itemRootHoverLabelColor:n.extend("--ftds-toc-item-root-hover-label-color","",u.contentGlobalSecondary),itemRootHoverBorderColor:n.extend("--ftds-toc-item-root-hover-border-color","",u.borderGlobalSubtle),itemRootHoverStateLayerColor:n.extend("--ftds-toc-item-root-hover-state-layer-color","",u.contentGlobalSecondary),itemRootHoverStateLayerOpacity:n.extend("--ftds-toc-item-root-hover-state-layer-opacity","",l.opacity8),itemRootFocusLabelColor:n.extend("--ftds-toc-item-root-focus-label-color","",u.contentGlobalSecondary),itemRootFocusStateLayerColor:n.extend("--ftds-toc-item-root-focus-state-layer-color","",u.contentGlobalSecondary),itemRootFocusStateLayerOpacity:n.extend("--ftds-toc-item-root-focus-state-layer-opacity","",l.opacity8),itemRootSelectedLabelColor:n.extend("--ftds-toc-item-root-selected-label-color","",u.contentActionPrimary),itemRootSelectedBorderColor:n.extend("--ftds-toc-item-root-selected-border-color","",u.borderActionPrimary),itemRootSelectedBorderWidth:n.create("--ftds-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:n.extend("--ftds-toc-item-root-selected-state-layer-color","",u.contentActionPrimary),itemRootSelectedStateLayerOpacity:n.extend("--ftds-toc-item-root-selected-state-layer-opacity","",l.opacity8),itemRootChildrenActiveLabelColor:n.extend("--ftds-toc-item-root-children-active-label-color","",u.contentActionPrimary),itemRootChildrenActiveBorderColor:n.extend("--ftds-toc-item-root-children-active-border-color","",u.borderGlobalSubtle),itemChildDefaultLabelColor:n.extend("--ftds-toc-item-child-default-label-color","",u.contentGlobalSubtle),itemChildDefaultBorderColor:n.extend("--ftds-toc-item-child-default-border-color","",u.borderGlobalSubtle),itemChildHoverLabelColor:n.extend("--ftds-toc-item-child-hover-label-color","",u.contentGlobalSubtle),itemChildHoverBorderColor:n.extend("--ftds-toc-item-child-hover-border-color","",u.borderGlobalSubtle),itemChildHoverStateLayerColor:n.extend("--ftds-toc-item-child-hover-state-layer-color","",u.contentGlobalSecondary),itemChildHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-hover-state-layer-opacity","",l.opacity8),itemChildFocusLabelColor:n.extend("--ftds-toc-item-child-focus-label-color","",u.contentGlobalSubtle),itemChildFocusStateLayerColor:n.extend("--ftds-toc-item-child-focus-state-layer-color","",u.contentGlobalSecondary),itemChildFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-focus-state-layer-opacity","",l.opacity8),itemChildSelectedLabelColor:n.extend("--ftds-toc-item-child-selected-label-color","",u.contentActionPrimary),itemChildSelectedBorderColor:n.extend("--ftds-toc-item-child-selected-border-color","",u.borderActionPrimary),itemChildSelectedBorderWidth:n.create("--ftds-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:n.extend("--ftds-toc-item-child-selected-state-layer-color","",u.contentActionPrimary),itemChildSelectedStateLayerOpacity:n.extend("--ftds-toc-item-child-selected-state-layer-opacity","",l.opacity8)};var uf={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 pf={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 ff={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 hf={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 mf={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 gf={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 yf={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 bf={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 xf={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 vf={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 Sf={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 Ef={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 Cf={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var Of={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 wf={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 Af={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 Rf={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 Tf={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),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 _f={backgroundColor:n.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:n.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:n.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-area-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-area-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-area-warning-helper-icon-color","",u.contentWarningIconOnly),focusFocusRingColor:n.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:n.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:n.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:n.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:n.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:n.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:n.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:n.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var If={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 Lf={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 Pf={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 kf={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 Nf={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 Mf={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 Df={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 Ff={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 Uf={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 Bf={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 $f={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 ao;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ao||(ao={}));var so;(function(t){t.large="large",t.medium="medium",t.small="small"})(so||(so={}));function ca(t){return`ftds--family-${t}`}function la(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 pa={};U(pa,{DynamicImporter:()=>nn,dynamicImporter:()=>Hf});var nn=class{async import(e){if(e)return import(e)}},Hf=new nn;var Oa={};U(Oa,{computeOffsetAutoPosition:()=>uh,computeOffsetPosition:()=>ho});var Ll=["top","right","bottom","left"],Il=["start","end"],ha=Ll.reduce((t,e)=>t.concat(e,e+"-"+Il[0],e+"-"+Il[1]),[]),Vt=Math.min,it=Math.max,co=Math.round;var at=t=>({x:t,y:t}),zf={left:"right",right:"left",bottom:"top",top:"bottom"};function Pl(t,e,r){return it(t,Vt(e,r))}function wr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function st(t){return t.split("-")[1]}function ma(t){return t==="x"?"y":"x"}function ga(t){return t==="y"?"height":"width"}function Ar(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ya(t){return ma(Ar(t))}function kl(t,e,r){r===void 0&&(r=!1);let o=st(t),i=ya(t),a=ga(i),s=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=fa(s)),[s,fa(s)]}function Nl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function fa(t){let e=Wt(t);return zf[e]+t.slice(e.length)}function Vf(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 Ml(t){return typeof t!="number"?Vf(t):{top:t,right:t,bottom:t,left:t}}function Gt(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 Dl(t,e,r){let{reference:o,floating:i}=t,a=Ar(e),s=ya(e),c=ga(s),d=Wt(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=st(e);return S&&(x[s]+=m*(S==="end"?1:-1)*(r&&p?-1:1)),x}async function Fl(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}=wr(e,t),S=Ml(x),E=c[m?h==="floating"?"reference":"floating":h],A=Gt(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})),F=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},v=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:F,offsetParent:y,strategy:d}):F);return{top:(A.top-v.top+S.top)/b.y,bottom:(v.bottom-A.bottom+S.bottom)/b.y,left:(A.left-v.left+S.left)/b.x,right:(v.right-A.right+S.right)/b.x}}var Wf=50,Ul=async(t,e,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:Fl},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Dl(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:A,fn:F}=E,{x:y,y:b,data:v,reset:_}=await F({x:f,y:h,initialPlacement:o,placement:m,strategy:i,middlewareData:S,rects:p,platform:c,elements:{reference:t,floating:e}});f=y??f,h=b??h,S[A]={...S[A],...v},_&&x<Wf&&(x++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):_.rects),{x:f,y:h}=Dl(p,m,d)),w=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:S}};function Gf(t,e,r){return(t?[...r.filter(i=>st(i)===t),...r.filter(i=>st(i)!==t)]:r.filter(i=>Wt(i)===i)).filter(i=>t?st(i)===t||(e?Nl(i)!==i:!1):!0)}var Bl=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=ha,autoAlignment:x=!0,...S}=wr(t,e),w=h!==void 0||m===ha?Gf(h||null,x,m):m,E=((r=s.autoPlacement)==null?void 0:r.index)||0,A=w[E];if(A==null)return{};if(c!==A)return{reset:{placement:w[0]}};let F=await d.detectOverflow(e,S),y=kl(A,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),b=[F[Wt(A)],F[y[0]],F[y[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:b}],_=w[E+1];if(_)return{data:{index:E+1,overflows:v},reset:{placement:_}};let L=v.map(P=>{let H=st(P.placement);return[P.placement,H&&f?P.overflows.slice(0,2).reduce((ce,et)=>ce+et,0):P.overflows[0],P.overflows]}).sort((P,H)=>P[1]-H[1]),J=((i=L.filter(P=>P[2].slice(0,st(P[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||L[0][0];return J!==c?{data:{index:E+1,overflows:v},reset:{placement:J}}:{}}}};var jf=new Set(["left","top"]);async function Kf(t,e){let{placement:r,platform:o,elements:i}=t,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Wt(r),c=st(r),d=Ar(r)==="y",p=jf.has(s)?-1:1,f=a&&d?-1:1,h=wr(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 $l=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 Kf(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}}}}},Hl=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:F=>{let{x:y,y:b}=F;return{x:y,y:b}}},...p}=wr(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=Ar(i),x=ma(m),S=f[x],w=f[m],E=(F,y)=>Pl(y+h[F==="y"?"top":"left"],y,y-h[F==="y"?"bottom":"right"]);s&&(S=E(x,S)),c&&(w=E(m,w));let A=d.fn({...e,[x]:S,[m]:w});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[x]:s,[m]:c}}}}}};var zl=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}=wr(t,e),d=await i.detectOverflow(e,c),p=Wt(r),f=st(r),h=Ar(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,A=m-d.left-d.right,F=Vt(x-d[S],E),y=Vt(m-d[w],A),b=e.middlewareData.shift,v=!b,_=F,L=y;b!=null&&b.enabled.x&&(L=A),b!=null&&b.enabled.y&&(_=E),v&&!f&&(h?L=m-2*it(d.left,d.right):_=x-2*it(d.top,d.bottom)),await s({...e,availableWidth:L,availableHeight:_});let $=await i.getDimensions(a.floating);return m!==$.width||x!==$.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function Kt(t){return Wl(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(Wl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Wl(t){return sn()?t instanceof Node||t instanceof Re(t).Node:!1}function qe(t){return sn()?t instanceof Element||t instanceof Re(t).Element:!1}function gt(t){return sn()?t instanceof HTMLElement||t instanceof Re(t).HTMLElement:!1}function Vl(t){return!sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function lo(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 Gl(t){return/^(table|td|th)$/.test(Kt(t))}function uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var qf=/transform|translate|scale|rotate|perspective|filter/,Zf=/paint|layout|strict|content/,jt=t=>!!t&&t!=="none",ba;function Rr(t){let e=qe(t)?Ze(t):t;return jt(e.transform)||jt(e.translate)||jt(e.scale)||jt(e.rotate)||jt(e.perspective)||!cn()&&(jt(e.backdropFilter)||jt(e.filter))||qf.test(e.willChange||"")||Zf.test(e.contain||"")}function jl(t){let e=Tt(t);for(;gt(e)&&!Tr(e);){if(Rr(e))return e;if(uo(e))return null;e=Tt(e)}return null}function cn(){return ba==null&&(ba=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ba}function Tr(t){return/^(html|body|#document)$/.test(Kt(t))}function Ze(t){return Re(t).getComputedStyle(t)}function po(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(Kt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vl(t)&&t.host||mt(t);return Vl(e)?e.host:e}function Kl(t){let e=Tt(t);return Tr(e)?(t.ownerDocument||t).body:gt(e)&&lo(e)?e:Kl(e)}function an(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Kl(t),a=i===((o=t.ownerDocument)==null?void 0:o.body),s=Re(i);if(a){let c=ln(s);return e.concat(s,s.visualViewport||[],lo(i)?i:[],c&&r?an(c):[])}else return e.concat(i,an(i,[],r))}function ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Yl(t){let e=Ze(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=gt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:o,c=co(r)!==a||co(o)!==s;return c&&(r=a,o=s),{width:r,height:o,$:c}}function Ql(t){return qe(t)?t:t.contextElement}function _r(t){let e=Ql(t);if(!gt(e))return at(1);let r=e.getBoundingClientRect(),{width:o,height:i,$:a}=Yl(e),s=(a?co(r.width):r.width)/o,c=(a?co(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Yf=at(0);function Xl(t){let e=Re(t);return!cn()||!e.visualViewport?Yf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qf(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Re(t)}function fo(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Ql(t),s=at(1);e&&(o?qe(o)&&(s=_r(o)):s=_r(t));let c=Qf(a,r,o)?Xl(a):at(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=ln(S);for(;w&&x!==S;){let E=_r(w),A=w.getBoundingClientRect(),F=Ze(w),y=A.left+(w.clientLeft+parseFloat(F.paddingLeft))*E.x,b=A.top+(w.clientTop+parseFloat(F.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=y,p+=b,S=Re(w),w=ln(S)}}return Gt({width:f,height:h,x:d,y:p})}function dn(t,e){let r=po(t).scrollLeft;return e?e.left+r:fo(mt(t)).left+r}function Jl(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-dn(t,r),i=r.top+e.scrollTop;return{x:o,y:i}}function Xf(t){let{elements:e,rect:r,offsetParent:o,strategy:i}=t,a=i==="fixed",s=mt(o),c=e?uo(e.floating):!1;if(o===s||c&&a)return r;let d={scrollLeft:0,scrollTop:0},p=at(1),f=at(0),h=gt(o);if((h||!a)&&((Kt(o)!=="body"||lo(s))&&(d=po(o)),h)){let x=fo(o);p=_r(o),f.x=x.x+o.clientLeft,f.y=x.y+o.clientTop}let m=s&&!h&&!a?Jl(s,d):at(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 Jf(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function eh(t){let e=po(t),r=t.ownerDocument.body,o=it(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=it(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+dn(t),s=-e.scrollTop;return Ze(r).direction==="rtl"&&(a+=it(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}var th=25;function rh(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",i=Re(t),a=mt(t),s=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let m=!cn()||e==="fixed";o?m||(p=-s.offsetLeft,f=-s.offsetTop):(c=s.width,d=s.height,m&&(p=s.offsetLeft,f=s.offsetTop))}if(dn(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),A=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;A<=th&&(c-=A)}return{width:c,height:d,x:p,y:f}}function oh(t,e){let r=fo(t,!0,e==="fixed"),o=r.top+t.clientTop,i=r.left+t.clientLeft,a=_r(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 ql(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=rh(t,r,e);else if(e==="document")o=eh(mt(t));else if(qe(e))o=oh(e,r);else{let i=Xl(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Gt(o)}function nh(t,e){let r=e.get(t);if(r)return r;let o=an(t,[],!1).filter(c=>qe(c)&&Kt(c)!=="body"),i=null,a=Ze(t).position==="fixed",s=a?Tt(t):t;for(;qe(s)&&!Tr(s);){let c=Ze(s),d=Rr(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&c.position==="static")?o=o.filter(h=>h!==s):i=c,s=Tt(s)}return e.set(t,o),o}function ih(t){let{element:e,boundary:r,rootBoundary:o,strategy:i}=t,s=[...r==="clippingAncestors"?uo(e)?[]:nh(e,this._c):[].concat(r),o],c=ql(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=ql(e,s[m],i);d=it(x.top,d),p=Vt(x.right,p),f=Vt(x.bottom,f),h=it(x.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function ah(t){let{width:e,height:r}=Yl(t);return{width:e,height:r}}function sh(t,e,r){let o=gt(e),i=mt(e),a=r==="fixed",s=fo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},d=at(0);if((o||!a)&&((Kt(e)!=="body"||lo(i))&&(c=po(e)),o)){let m=fo(e,!0,a,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!o&&i&&(d.x=dn(i));let p=i&&!o&&!a?Jl(i,c):at(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 xa(t){return Ze(t).position==="static"}function Zl(t,e){if(!gt(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mt(t)===r&&(r=r.ownerDocument.body),r}function ed(t,e){let r=Re(t);if(uo(t))return r;if(!gt(t)){let i=Tt(t);for(;i&&!Tr(i);){if(qe(i)&&!xa(i))return i;i=Tt(i)}return r}let o=Zl(t,e);for(;o&&Gl(o)&&xa(o);)o=Zl(o,e);return o&&Tr(o)&&xa(o)&&!Rr(o)?r:o||jl(t)||r}var ch=async function(t){let e=this.getOffsetParent||ed,r=this.getDimensions,o=await r(t.floating);return{reference:sh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lh(t){return Ze(t).direction==="rtl"}var Ir={convertOffsetParentRelativeRectToViewportRelativeRect:Xf,getDocumentElement:mt,getClippingRect:ih,getOffsetParent:ed,getElementRects:ch,getClientRects:Jf,getDimensions:ah,getScale:_r,isElement:qe,isRTL:lh};var td=$l,va=Bl,rd=Hl;var od=zl;var Sa=(t,e,r)=>{let o=new Map,i=r??{},a={...Ir,...i.platform,_c:o};return Ul(t,e,{...i,platform:a})};function Ca(t){return dh(t)}function Ea(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function dh(t){for(let e=t;e;e=Ea(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ea(t);e;e=Ea(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Rr(r)||e.tagName==="BODY"))return e}return null}async function ho(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Sa(t,e,{strategy:o.strategy,platform:{...Ir,getOffsetParent:i=>Ir.getOffsetParent(i,Ca)},middleware:[rd({crossAxis:!0}),va({allowedPlacements:[o.placement]})]})}async function uh(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,Sa(t,e,{placement:c,strategy:i,platform:{...Ir,getOffsetParent:p=>Ir.getOffsetParent(p,Ca)},middleware:[td(s??4),va({allowedPlacements:o}),od({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 wa={};U(wa,{isSlotEmptyOrWithoutContent:()=>ph});var ph=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 La={};U(La,{FtdsBase:()=>Ia,toFtdsBase:()=>dd});var _a={};U(_a,{ExportpartsUpdatedEvent:()=>qt,FtLitElement:()=>z});var Aa={};U(Aa,{ScopedRegistryLitElement:()=>mo});var mo=class extends pt{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 Kr(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){eo(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 Ta={};U(Ta,{shadowQuerySelector:()=>Ra,shadowQuerySelectorAll:()=>fh});function Ra(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 fh(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 Lr=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},sd,nd=Symbol("constructorPrototype"),id=Symbol("constructorName"),cd=Symbol("exportpartsDebouncer"),ad=Symbol("dynamicDependenciesLoaded"),qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};qt.eventName="exportparts-updated";var z=class extends mo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[sd]=new Y(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[cd].run(()=>{var 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[id]=this.constructor.name,this[nd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[id]&&Object.setPrototypeOf(this,this[nd])}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[ad]||(r[ad]=!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=Ra(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(", ")}};sd=cd;Lr([g()],z.prototype,"exportpartsPrefix",void 0);Lr([de([])],z.prototype,"exportpartsPrefixes",void 0);Lr([g({reflect:!0})],z.prototype,"exportparts",void 0);Lr([g()],z.prototype,"customStylesheet",void 0);Lr([g()],z.prototype,"elementToFocus",void 0);Lr([D()],z.prototype,"useAdoptedStyleSheets",void 0);var ld=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},dd=ie(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=so.medium,this.family=ao.neutral}getDesignSystemBaseClasses(){return{[ca(this.family)]:!0,[la(this.size)]:!0}}}return ld([g()],e.prototype,"size",void 0),ld([g()],e.prototype,"family",void 0),e}),Ia=class extends dd(z){};var ud={};var Na={};U(Na,{highlightHtml:()=>ka,highlightHtmlColorCssVariable:()=>pd,highlightHtmlStyles:()=>mh});var Zt=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 go=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 Zt(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 Zt.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=Zt.matches(o,r),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Pa(t){let e=new go(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 hh=Pa,pd=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),mh=T`
|
|
1
|
+
"use strict";(()=>{var yp=Object.defineProperty;var U=(t,e)=>{for(var r in e)yp(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 N={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,N),this._definitionsByClass.set(y,N);let z=r.call(o,b);z||(z=h(b),e.call(o,b,z)),this===window.customElements&&(s.set(y,N),N.standInClass=z);let oe=this._awaitingUpgrade.get(b);if(oe){this._awaitingUpgrade.delete(b);for(let $ of oe)a.delete($),S($,N,!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,N=A._getDefinition(b);return N?S(v,N):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 N=b.prototype.removeAttribute;N&&(b.prototype.removeAttribute=function(oe){let L=oe.toLowerCase();if(y.has(L)){let $=this.getAttribute(L);N.call(this,L),v.call(this,L,$,null)}else N.call(this,L)});let z=b.prototype.toggleAttribute;z&&(b.prototype.toggleAttribute=function(oe,L){let $=oe.toLowerCase();if(y.has($)){let ce=this.getAttribute($);z.call(this,$,L);let tt=this.getAttribute($);v.call(this,$,ce,tt)}else z.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 N=A.apply(v||this,arguments);return N!==void 0&&c.set(N,this),E.pop(),N}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");let F=(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(F(Element,"innerHTML"),F(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 N{constructor(L){let $=new Map;L.forEach((ce,tt)=>{let Ei=ce.getAttribute("name"),nc=$.get(Ei)||[];this[+tt]=ce,nc.push(ce),$.set(Ei,nc)}),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 z=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let oe=z.get.call(this,[]),L=[];for(let $ of oe){let ce=i.get($);(!ce||ce.formAssociated===!0)&&L.push($)}return new N(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 Mi={};U(Mi,{CSSResult:()=>gr,LitElement:()=>ft,ReactiveElement:()=>Be,_$LE:()=>_p,_$LH:()=>Pi,adoptStyles:()=>Kr,css:()=>T,defaultConverter:()=>yr,getCompatibleStyle:()=>Ho,html:()=>I,isServer:()=>lg,mathml:()=>Li,noChange:()=>le,notEqual:()=>Zr,nothing:()=>M,render:()=>ki,supportsAdoptingStyleSheets:()=>jr,svg:()=>Ii,unsafeCSS:()=>Mt});var $o=globalThis,jr=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ci=Symbol(),ic=new WeakMap,gr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ci)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(jr&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=ic.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ic.set(r,e))}return e}toString(){return this.cssText}},Mt=t=>new gr(typeof t=="string"?t:t+"",void 0,Ci),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 gr(r,t,Ci)},Kr=(t,e)=>{if(jr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),i=$o.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}},Ho=jr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Mt(r)})(t):t;var{is:bp,defineProperty:xp,getOwnPropertyDescriptor:vp,getOwnPropertyNames:Sp,getOwnPropertySymbols:Ep,getPrototypeOf:Cp}=Object,zo=globalThis,ac=zo.trustedTypes,Op=ac?ac.emptyScript:"",wp=zo.reactiveElementPolyfillSupport,qr=(t,e)=>t,yr={toAttribute(t,e){switch(e){case Boolean:t=t?Op: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}},Zr=(t,e)=>!bp(t,e),sc={attribute:!0,type:String,converter:yr,reflect:!1,useDefault:!1,hasChanged:Zr};Symbol.metadata??=Symbol("metadata"),zo.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=sc){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&&xp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){let{get:i,set:a}=vp(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)??sc}static _$Ei(){if(this.hasOwnProperty(qr("elementProperties")))return;let e=Cp(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=[...Sp(r),...Ep(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(Ho(i))}else e!==void 0&&r.push(Ho(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 Kr(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:yr).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:yr;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??Zr)(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,wp?.({ReactiveElement:Be}),(zo.reactiveElementVersions??=[]).push("2.1.2");var wi=globalThis,cc=t=>t,Vo=wi.trustedTypes,lc=Vo?Vo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ai="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ri="?"+pt,Ap=`<${Ri}>`,Ut=document,Qr=()=>Ut.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",Ti=Array.isArray,mc=t=>Ti(t)||typeof t?.[Symbol.iterator]=="function",Oi=`[
|
|
2
|
+
\f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dc=/-->/g,uc=/>/g,Dt=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pc=/'/g,fc=/"/g,gc=/^(?:script|style|textarea|title)$/i,_i=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),I=_i(1),Ii=_i(2),Li=_i(3),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),hc=new WeakMap,Ft=Ut.createTreeWalker(Ut,129);function yc(t,e){if(!Ti(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return lc!==void 0?lc.createHTML(e):e}var bc=(t,e)=>{let r=t.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Yr;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===Yr?f[1]==="!--"?s=dc:f[1]!==void 0?s=uc:f[2]!==void 0?(gc.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=Dt):f[3]!==void 0&&(s=Dt):s===Dt?f[0]===">"?(s=i??Yr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Dt:f[3]==='"'?fc:pc):s===fc||s===pc?s=Dt:s===dc||s===uc?s=Yr:(s=Dt,i=void 0);let x=s===Dt&&t[c+1].startsWith("/>")?" ":"";a+=s===Yr?d+Ap:h>=0?(o.push(p),d.slice(0,h)+Ai+d.slice(h)+pt+x):d+pt+(h===-2?c:x)}return[yc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Jr=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]=bc(e,r);if(this.el=t.createElement(p,o),Ft.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Ft.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Ai)){let m=f[s++],x=i.getAttribute(h).split(pt),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Go:S[1]==="?"?jo:S[1]==="@"?Ko:$t}),i.removeAttribute(h)}else h.startsWith(pt)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(gc.test(i.tagName)){let h=i.textContent.split(pt),m=h.length-1;if(m>0){i.textContent=Vo?Vo.emptyScript:"";for(let x=0;x<m;x++)i.append(h[x],Qr()),Ft.nextNode(),d.push({type:2,index:++a});i.append(h[m],Qr())}}}else if(i.nodeType===8)if(i.data===Ri)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(pt,h+1))!==-1;)d.push({type:7,index:a}),h+=pt.length-1}a++}}static createElement(e,r){let o=Ut.createElement("template");return o.innerHTML=e,o}};function Bt(t,e,r=t,o){if(e===le)return e;let i=o!==void 0?r._$Co?.[o]:r._$Cl,a=Xr(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=Bt(t,i._$AS(t,e.values),i,o)),e}var Wo=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??Ut).importNode(r,!0);Ft.currentNode=i;let a=Ft.nextNode(),s=0,c=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new br(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new qo(a,this,e)),this._$AV.push(p),d=o[++c]}s!==d?.index&&(a=Ft.nextNode(),s++)}return Ft.currentNode=Ut,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++}},br=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,i){this.type=2,this._$AH=M,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=Bt(this,e,r),Xr(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):mc(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!==M&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ut.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=Jr.createElement(yc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Wo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=hc.get(e.strings);return r===void 0&&hc.set(e.strings,r=new Jr(e)),r}k(e){Ti(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(Qr()),this.O(Qr()),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=cc(e).nextSibling;cc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},$t=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,i,a){this.type=1,this._$AH=M,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=M}_$AI(e,r=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Bt(this,e,r,0),s=!Xr(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=Bt(this,c[o+d],r,d),p===le&&(p=this._$AH[d]),s||=!Xr(p)||p!==this._$AH[d],p===M?e=M:e!==M&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Go=class extends $t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},jo=class extends $t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},Ko=class extends $t{constructor(e,r,o,i,a){super(e,r,o,i,a),this.type=5}_$AI(e,r=this){if((e=Bt(this,e,r,0)??M)===le)return;let o=this._$AH,i=e===M&&o!==M||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==M&&(o===M||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)}},qo=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){Bt(this,e)}},Pi={M:Ai,P:pt,A:Ri,C:1,L:bc,R:Wo,D:mc,V:Bt,I:br,H:$t,N:jo,U:Ko,B:Go,F:qo},Rp=wi.litHtmlPolyfillSupport;Rp?.(Jr,br),(wi.litHtmlVersions??=[]).push("3.3.3");var ki=(t,e,r)=>{let o=r?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=r?.renderBefore??null;o._$litPart$=i=new br(e.insertBefore(Qr(),a),a,void 0,r??{})}return i._$AI(t),i};var Ni=globalThis,ft=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=ki(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return le}};ft._$litElement$=!0,ft.finalized=!0,Ni.litElementHydrateSupport?.({LitElement:ft});var Tp=Ni.litElementPolyfillSupport;Tp?.({LitElement:ft});var _p={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Ni.litElementVersions??=[]).push("4.2.2");var lg=!1;var Ui={};U(Ui,{customElement:()=>Ip,eventOptions:()=>Pp,property:()=>g,query:()=>te,queryAll:()=>Np,queryAssignedElements:()=>Di,queryAssignedNodes:()=>Fi,queryAsync:()=>Mp,standardProperty:()=>xc,state:()=>D});var Ip=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Lp={attribute:!0,type:String,converter:yr,reflect:!1,hasChanged:Zr},xc=(t=Lp,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"?xc(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 D(t){return g({...t,state:!0,attribute:!1})}function Pp(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 te(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 kp;function Np(t){return(e,r)=>je(e,r,{get(){return(this.renderRoot??(kp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Mp(t){return(e,r)=>je(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Di(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 Fi(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 Bi={};U(Bi,{repeat:()=>vr});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:Dp}=Pi,vc=t=>t;var Ec=t=>t.strings===void 0,Sc=()=>document.createComment(""),xr=(t,e,r)=>{let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(Sc(),i),s=o.insertBefore(Sc(),i);r=new Dp(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=vc(d).nextSibling;vc(o).insertBefore(d,i),d=p}}}return r},Et=(t,e,r=t)=>(t._$AI(e,r),t),Fp={},Cc=(t,e=Fp)=>t._$AH=e,Oc=t=>t._$AH,Zo=t=>{t._$AR(),t._$AA.remove()};var wc=(t,e,r)=>{let o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},vr=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=Oc(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]=Et(i[h],a[x]),h++,x++;else if(c[m]===s[S])d[S]=Et(i[m],a[S]),m--,S--;else if(c[h]===s[S])d[S]=Et(i[h],a[S]),xr(t,d[S+1],i[h]),h++,S--;else if(c[m]===s[x])d[x]=Et(i[m],a[x]),xr(t,i[h],i[m]),m--,x++;else if(p===void 0&&(p=wc(s,x,S),f=wc(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=xr(t,i[h]);Et(R,a[x]),d[x]=R}else d[x]=Et(E,a[x]),xr(t,i[h],E),i[w]=null;x++}else Zo(i[m]),m--;else Zo(i[h]),h++;for(;x<=S;){let w=xr(t,d[S+1]);Et(w,a[x]),d[x++]=w}for(;h<=m;){let w=i[h++];w!==null&&Zo(w)}return this.ut=s,Cc(t,d),le}});var $i={};U($i,{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 Hi={};U(Hi,{styleMap:()=>Bp});var Ac="important",Up=" !"+Ac,Bp=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(Up);o.includes("-")||a?r.setProperty(o,a?i.slice(0,-11):i,a?Ac:""):r[o]=i}}return le}});var Vi={};U(Vi,{UnsafeHTMLDirective:()=>Sr,unsafeHTML:()=>zi});var Sr=class extends $e{constructor(e){if(super(e),this.it=M,e.type!==rt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===M||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:[]}}};Sr.directiveName="unsafeHTML",Sr.resultType=1;var zi=Ie(Sr);var Wi={};U(Wi,{splitBreadcrumbForMenu:()=>$p});function $p(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 ta={};U(ta,{CacheRegistry:()=>nt,ClearCacheEvent:()=>no});var Gi={};U(Gi,{CancelablePromise:()=>Yo,CanceledPromiseError:()=>Pe,cancelable:()=>Er});var Pe=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Yo=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}},Er=t=>new Yo((e,r)=>t.then(e).catch(r));var ea={};U(ea,{FtNotificationEvent:()=>oo,PostResizeEvent:()=>Ji,PreResizeEvent:()=>Xi,WithEventBus:()=>mt,withEventBus:()=>en});var Qi={};U(Qi,{applyMixinOnce:()=>ie,customElements:()=>q,dateReviver:()=>Wp,deepCopy:()=>ke,deepEqual:()=>he,delay:()=>Xo,eventPathContainsMatchingElement:()=>ro,everyDeep:()=>Vp,flatDeep:()=>Tc,forEachDeep:()=>_c,getComposedPathTo:()=>qi,groupBy:()=>Kp,hasChanged:()=>He,ignoreComposingEvents:()=>Yi,last:()=>jp,minmax:()=>ht,parseDate:()=>Lc,randomId:()=>Zi,someDeep:()=>Ic,unslotText:()=>Jo,waitFor:()=>to,waitUntil:()=>Ki});var ji={};U(ji,{customElement:()=>eo,dateProperty:()=>zp,isNumber:()=>Rc,jsonProperty:()=>de,jsonPropertyConverter:()=>Qo,numberProperty:()=>ot,optionalNumberProperty:()=>Hp});var eo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Qo=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:Qo(t),hasChanged:He,...e??{}})}function Hp(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 Rc(e)?ht(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Rc(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 Xo=t=>new Promise(e=>setTimeout(e,t));async function Ki(t,e=10,r=2e4){await to(async()=>await t()||void 0,e,r)}async function to(t,e=10,r=2e4){let o=await t(),i=performance.now(),a=i;for(;o==null&&(!r||a-i<r);)await Xo(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Tc(t,e){return t.flatMap(r=>[r,...Tc(e(r),e)])}function _c(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 Ic(t,e,r){let o=!1;return _c(t,e,(i,a,s,c)=>(o=!!r(i,a,s,c),!o)),o}function Vp(t,e,r){return!Ic(t,e,(o,i,a,s)=>!r(o,i,a,s))}function Wp(...t){return(e,r)=>t.includes(e)?Lc(r):r}function Lc(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 Gp(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 Gp(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function ro(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 ht(t,e,r){return Math.min(Math.max(t,e),r)}function jp(t){return t[t.length-1]}function Jo(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Jo(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 Zi(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ie(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 Yi(){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))eo(e)(r)}function Kp(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 oo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Xi=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ji=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},en=ie(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)}}}),mt=class extends en(Object){};var no=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},nt=class extends mt{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 no(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new no([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=Er(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 sa={};U(sa,{ClusteringHelper:()=>At,formatHierarchicalValues:()=>aa});var ia={};U(ia,{accessBreadcrumb:()=>tf,accessResult:()=>wt,accessResultId:()=>ef,accessResultUrl:()=>io,enrichReaderUrl:()=>na});var oa={};U(oa,{SearchPlaceConverter:()=>Ke,SearchPlaceQueryParams:()=>k,isSearchPlaceQueryParams:()=>hl,serializeRequest:()=>Xp});var qp=t=>typeof t=="object"&&t!=null;var Zp=t=>typeof t=="number",tn=t=>typeof t=="string",ra=t=>qp(t)&&tn(t.endpoint)&&tn(t.method)&&tn(t.statusText)&&tn(t.body)&&Zp(t.status),Pc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Pc||(Pc={}));var kc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(kc||(kc={}));var Nc;(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"})(Nc||(Nc={}));var Ct;(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"})(Ct||(Ct={}));var Mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Mc||(Mc={}));var Dc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Dc||(Dc={}));var rn;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(rn||(rn={}));var Ht;(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"})(Ht||(Ht={}));var Fc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Fc||(Fc={}));var Uc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Uc||(Uc={}));var Bc;(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"})(Bc||(Bc={}));var $c;(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"})($c||($c={}));var Hc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Hc||(Hc={}));var zc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(zc||(zc={}));var Vc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Vc||(Vc={}));var Wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wc||(Wc={}));var Gc;(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"})(Gc||(Gc={}));var Ot;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ot||(Ot={}));var jc;(function(t){t.ASC="ASC",t.DESC="DESC"})(jc||(jc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var zt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(zt||(zt={}));var Xc=t=>Object.keys(zt).includes(t);var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var on;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(on||(on={}));var Zc;(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"})(Zc||(Zc={}));var Cr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cr||(Cr={}));var Jc=t=>Object.keys(Cr).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 Or;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Or||(Or={}));var Yc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Yc||(Yc={}));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 ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var Qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Qc||(Qc={}));var el;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(el||(el={}));var tl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var ol;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(ol||(ol={}));var nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(nl||(nl={}));var il;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(il||(il={}));var al;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(al||(al={}));var sl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(sl||(sl={}));var cl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(cl||(cl={}));var ll;(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"})(ll||(ll={}));var dl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(dl||(dl={}));var Yp={[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 ul(t,e){return t===e||(Yp[t]??[]).some(r=>ul(r,e))}function Ve(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=>ul(o,e))}function pl(t,...e){return t==null?!1:e.some(r=>Ve(t,r))}function Qp(t){return`"${t}"`}function fl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Xp(t,e){return new Ke(t).serialize(e)}var k;(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"})(k||(k={}));var Jp=new Set(Object.values(k));function hl(t){return Jp.has(t)}var Ke=class t{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,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(k.LOCALE,e.contentLocale):m.append(k.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&m.append(k.QUERY,e.query);let x=t.serializeValueFilters(e.metadataFilters);x&&m.append(k.VALUE_FILTERS,x);let S=t.serializeNegativeValueFilters(e.metadataFilters);S&&m.append(k.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(k.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(k.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(k.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&m.append(k.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&m.append(k.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(k.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&m.append(k.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 F=new Array;return m.forEach((b,y)=>{F.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI(F.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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(R){console.warn("Could not decode search request query params, fallback on raw value",R)}let d=new URLSearchParams(e),p=d.get(k.LOCALE)==="all"?void 0:d.get(k.LOCALE),f=((o=d.get(k.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),h=(r=d.get(k.SORT))===null||r===void 0?void 0:r.toLowerCase(),m=(i=d.get(k.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(k.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(k.KEYWORD_MATCH),w=S?S.toUpperCase()===Ot.MANDATORY?Ot.MANDATORY:Ot.OPTIONAL:void 0,E={};for(let R of d.keys())hl(R)||(E[R]=d.get(R));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(k.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[m])!==null&&c!==void 0?c:"DEFAULT",virtualField:Xc(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:ht(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:E}}parseCompatFilters(e){var r,o,i,a,s,c,d;let p=[];return e.has(k.FILTERS)&&(p=t.parseValueFilters((r=e.get(k.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(k.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(k.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(k.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(k.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((c=e.get(k.DATE_FILTERS))!==null&&c!==void 0?c:""),...this.parseRangeFilters((d=e.get(k.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(fl).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Cr[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(Jc(e))return[{key:"ft:lastEdition",dateFilter:{type:Cr[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=>Qp(fl(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[k.LOCALE,k.FILTERS,k.VALUE_FILTERS,k.NEGATIVE_VALUE_FILTERS,k.DATE_FILTERS,k.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(k.LOCALE),r!==void 0&&o.searchParams.append(k.LOCALE,r),o.toString()}};Ke.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function wt(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 ef(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 io(t,e){var r,o,i,a,s,c,d,p,f;return(f=(p=(d=(c=na((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&c!==void 0?c:na((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 tf(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 na(t,e){if(e&&t){let r=URL.parse(t),o=Ke.serializeValueFilters(e);if(o&&r?.searchParams.append(k.VALUE_FILTERS,o),r)return r.toString()}return t}function aa(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var At=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=wt(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(aa(c)),s.push(aa(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 ca={};U(ca,{Debouncer:()=>Y});var Y=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 pa={};U(pa,{designSystemVariables:()=>P});var ua={};U(ua,{DesignSystemFamily:()=>ao,DesignSystemSize:()=>so,FtCssVariableFactory:()=>n,badge:()=>xf,banner:()=>bf,button:()=>nf,card:()=>sf,chart:()=>Mf,checkbox:()=>uf,chip:()=>mf,chipChoice:()=>hf,chipGroup:()=>gf,collapsible:()=>kf,combobox:()=>Lf,dateRangePicker:()=>$f,drawer:()=>Af,eventCard:()=>cf,floatingMenu:()=>If,foundation:()=>l,link:()=>yf,modal:()=>Of,notice:()=>Ff,notification:()=>Uf,pageDesigner:()=>Df,pageFooter:()=>Ef,pageHeader:()=>Sf,pageLayout:()=>Cf,popover:()=>Pf,radio:()=>pf,reorderableList:()=>wf,resolveFamilyClass:()=>la,resolveSizeClass:()=>da,semantic:()=>u,setVariable:()=>G,switch_:()=>Nf,table:()=>ff,tabs:()=>Rf,textArea:()=>_f,textInput:()=>Tf,titleBreadcrumb:()=>vf,toc:()=>df,toggle:()=>af,tooltip:()=>Bf,treeList:()=>lf,typographies:()=>rf,typographyBody1Medium:()=>vl,typographyBody1Regular:()=>xl,typographyBody1Semibold:()=>Sl,typographyBody2Medium:()=>Cl,typographyBody2MediumUnderline:()=>Ol,typographyBody2Regular:()=>El,typographyBody2Semibold:()=>wl,typographyCaption1Medium:()=>Al,typographyCaption1Semibold:()=>Rl,typographyCaption2Bold:()=>Il,typographyCaption2Medium:()=>Tl,typographyCaption2Semibold:()=>_l,typographyDisplay:()=>ml,typographyTitle1:()=>gl,typographyTitle2:()=>yl,typographyTitle3:()=>bl,typographyVariants:()=>of});var Rt=t=>typeof t=="string"?Mt(t):t,n=class{static create(e,r,o,i){let a=c=>Rt(c??i),s=T`var(${Rt(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(${Rt(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(${Rt(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(${Rt(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(${Rt(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(${Rt(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function G(t,e){return Rt(`${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)")},ml={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")},gl={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")},yl={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")},bl={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")},xl={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")},vl={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")},Sl={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")},El={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")},Cl={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")},Ol={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")},wl={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")},Al={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")},Rl={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")},Tl={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")},_l={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")},Il={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")},rf={display:ml,"title-1":gl,"title-2":yl,"title-3":bl,"body-1-regular":xl,"body-1-medium":vl,"body-1-semibold":Sl,"body-2-regular":El,"body-2-medium":Cl,"body-2-medium-underline":Ol,"body-2-semibold":wl,"caption-1-medium":Al,"caption-1-semibold":Rl,"caption-2-medium":Tl,"caption-2-semibold":_l,"caption-2-bold":Il},of=["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 nf={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 af={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 sf={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 cf={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 lf={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 df={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",l.spacing2),top:n.create("--ftds-toc-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","3px"),itemRootDefaultLabelColor:n.extend("--ftds-toc-item-root-default-label-color","",u.contentGlobalSecondary),itemRootDefaultBorderColor:n.extend("--ftds-toc-item-root-default-border-color","",u.borderGlobalSubtle),itemRootHoverLabelColor:n.extend("--ftds-toc-item-root-hover-label-color","",u.contentGlobalSecondary),itemRootHoverBorderColor:n.extend("--ftds-toc-item-root-hover-border-color","",u.borderGlobalSubtle),itemRootHoverStateLayerColor:n.extend("--ftds-toc-item-root-hover-state-layer-color","",u.contentGlobalSecondary),itemRootHoverStateLayerOpacity:n.extend("--ftds-toc-item-root-hover-state-layer-opacity","",l.opacity8),itemRootFocusLabelColor:n.extend("--ftds-toc-item-root-focus-label-color","",u.contentGlobalSecondary),itemRootFocusStateLayerColor:n.extend("--ftds-toc-item-root-focus-state-layer-color","",u.contentGlobalSecondary),itemRootFocusStateLayerOpacity:n.extend("--ftds-toc-item-root-focus-state-layer-opacity","",l.opacity8),itemRootSelectedLabelColor:n.extend("--ftds-toc-item-root-selected-label-color","",u.contentActionPrimary),itemRootSelectedBorderColor:n.extend("--ftds-toc-item-root-selected-border-color","",u.borderActionPrimary),itemRootSelectedBorderWidth:n.create("--ftds-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:n.extend("--ftds-toc-item-root-selected-state-layer-color","",u.contentActionPrimary),itemRootSelectedStateLayerOpacity:n.extend("--ftds-toc-item-root-selected-state-layer-opacity","",l.opacity8),itemRootChildrenActiveLabelColor:n.extend("--ftds-toc-item-root-children-active-label-color","",u.contentActionPrimary),itemRootChildrenActiveBorderColor:n.extend("--ftds-toc-item-root-children-active-border-color","",u.borderGlobalSubtle),itemChildDefaultLabelColor:n.extend("--ftds-toc-item-child-default-label-color","",u.contentGlobalSubtle),itemChildDefaultBorderColor:n.extend("--ftds-toc-item-child-default-border-color","",u.borderGlobalSubtle),itemChildHoverLabelColor:n.extend("--ftds-toc-item-child-hover-label-color","",u.contentGlobalSubtle),itemChildHoverBorderColor:n.extend("--ftds-toc-item-child-hover-border-color","",u.borderGlobalSubtle),itemChildHoverStateLayerColor:n.extend("--ftds-toc-item-child-hover-state-layer-color","",u.contentGlobalSecondary),itemChildHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-hover-state-layer-opacity","",l.opacity8),itemChildFocusLabelColor:n.extend("--ftds-toc-item-child-focus-label-color","",u.contentGlobalSubtle),itemChildFocusStateLayerColor:n.extend("--ftds-toc-item-child-focus-state-layer-color","",u.contentGlobalSecondary),itemChildFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-focus-state-layer-opacity","",l.opacity8),itemChildSelectedLabelColor:n.extend("--ftds-toc-item-child-selected-label-color","",u.contentActionPrimary),itemChildSelectedBorderColor:n.extend("--ftds-toc-item-child-selected-border-color","",u.borderActionPrimary),itemChildSelectedBorderWidth:n.create("--ftds-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:n.extend("--ftds-toc-item-child-selected-state-layer-color","",u.contentActionPrimary),itemChildSelectedStateLayerOpacity:n.extend("--ftds-toc-item-child-selected-state-layer-opacity","",l.opacity8)};var uf={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 pf={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 ff={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 hf={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 mf={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 gf={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 yf={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 bf={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 xf={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 vf={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 Sf={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 Ef={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 Cf={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var Of={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 wf={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 Af={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 Rf={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 Tf={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),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 _f={backgroundColor:n.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:n.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:n.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-area-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-area-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-area-warning-helper-icon-color","",u.contentWarningIconOnly),focusFocusRingColor:n.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:n.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:n.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:n.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:n.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:n.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:n.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:n.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var If={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 Lf={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 Pf={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 kf={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 Nf={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 Mf={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 Df={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 Ff={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 Uf={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 Bf={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 $f={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 ao;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ao||(ao={}));var so;(function(t){t.large="large",t.medium="medium",t.small="small"})(so||(so={}));function la(t){return`ftds--family-${t}`}function da(t){return`ftds--size-${t}`}var P={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 fa={};U(fa,{DynamicImporter:()=>nn,dynamicImporter:()=>Hf});var nn=class{async import(e){if(e)return import(e)}},Hf=new nn;var wa={};U(wa,{computeOffsetAutoPosition:()=>uh,computeOffsetPosition:()=>ho});var Pl=["top","right","bottom","left"],Ll=["start","end"],ma=Pl.reduce((t,e)=>t.concat(e,e+"-"+Ll[0],e+"-"+Ll[1]),[]),Vt=Math.min,at=Math.max,co=Math.round;var st=t=>({x:t,y:t}),zf={left:"right",right:"left",bottom:"top",top:"bottom"};function kl(t,e,r){return at(t,Vt(e,r))}function wr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function ct(t){return t.split("-")[1]}function ga(t){return t==="x"?"y":"x"}function ya(t){return t==="y"?"height":"width"}function Ar(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ba(t){return ga(Ar(t))}function Nl(t,e,r){r===void 0&&(r=!1);let o=ct(t),i=ba(t),a=ya(i),s=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ha(s)),[s,ha(s)]}function Ml(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ha(t){let e=Wt(t);return zf[e]+t.slice(e.length)}function Vf(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 Dl(t){return typeof t!="number"?Vf(t):{top:t,right:t,bottom:t,left:t}}function Gt(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 Fl(t,e,r){let{reference:o,floating:i}=t,a=Ar(e),s=ba(e),c=ya(s),d=Wt(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 Ul(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}=wr(e,t),S=Dl(x),E=c[m?h==="floating"?"reference":"floating":h],R=Gt(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})),F=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=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:F,offsetParent:b,strategy:d}):F);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 Wf=50,Bl=async(t,e,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:Ul},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Fl(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:F}=E,{x:b,y,data:v,reset:A}=await F({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<Wf&&(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}=Fl(p,m,d)),w=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:S}};function Gf(t,e,r){return(t?[...r.filter(i=>ct(i)===t),...r.filter(i=>ct(i)!==t)]:r.filter(i=>Wt(i)===i)).filter(i=>t?ct(i)===t||(e?Ml(i)!==i:!1):!0)}var $l=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=ma,autoAlignment:x=!0,...S}=wr(t,e),w=h!==void 0||m===ma?Gf(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 F=await d.detectOverflow(e,S),b=Nl(R,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[F[Wt(R)],F[b[0]],F[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 N=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=N.filter(L=>L[2].slice(0,ct(L[0])?2:3).every($=>$<=0))[0])==null?void 0:i[0])||N[0][0];return oe!==c?{data:{index:E+1,overflows:v},reset:{placement:oe}}:{}}}};var jf=new Set(["left","top"]);async function Kf(t,e){let{placement:r,platform:o,elements:i}=t,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Wt(r),c=ct(r),d=Ar(r)==="y",p=jf.has(s)?-1:1,f=a&&d?-1:1,h=wr(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 Hl=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 Kf(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:F=>{let{x:b,y}=F;return{x:b,y}}},...p}=wr(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=Ar(i),x=ga(m),S=f[x],w=f[m],E=(F,b)=>kl(b+h[F==="y"?"top":"left"],b,b-h[F==="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 Vl=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}=wr(t,e),d=await i.detectOverflow(e,c),p=Wt(r),f=ct(r),h=Ar(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,F=Vt(x-d[S],E),b=Vt(m-d[w],R),y=e.middlewareData.shift,v=!y,A=F,N=b;y!=null&&y.enabled.x&&(N=R),y!=null&&y.enabled.y&&(A=E),v&&!f&&(h?N=m-2*at(d.left,d.right):A=x-2*at(d.top,d.bottom)),await s({...e,availableWidth:N,availableHeight:A});let z=await i.getDimensions(a.floating);return m!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function Kt(t){return Gl(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function gt(t){var e;return(e=(Gl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gl(t){return sn()?t instanceof Node||t instanceof Re(t).Node:!1}function qe(t){return sn()?t instanceof Element||t instanceof Re(t).Element:!1}function yt(t){return sn()?t instanceof HTMLElement||t instanceof Re(t).HTMLElement:!1}function Wl(t){return!sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function lo(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(Kt(t))}function uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var qf=/transform|translate|scale|rotate|perspective|filter/,Zf=/paint|layout|strict|content/,jt=t=>!!t&&t!=="none",xa;function Rr(t){let e=qe(t)?Ze(t):t;return jt(e.transform)||jt(e.translate)||jt(e.scale)||jt(e.rotate)||jt(e.perspective)||!cn()&&(jt(e.backdropFilter)||jt(e.filter))||qf.test(e.willChange||"")||Zf.test(e.contain||"")}function Kl(t){let e=Tt(t);for(;yt(e)&&!Tr(e);){if(Rr(e))return e;if(uo(e))return null;e=Tt(e)}return null}function cn(){return xa==null&&(xa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xa}function Tr(t){return/^(html|body|#document)$/.test(Kt(t))}function Ze(t){return Re(t).getComputedStyle(t)}function po(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(Kt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Wl(t)&&t.host||gt(t);return Wl(e)?e.host:e}function ql(t){let e=Tt(t);return Tr(e)?(t.ownerDocument||t).body:yt(e)&&lo(e)?e:ql(e)}function an(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=ql(t),a=i===((o=t.ownerDocument)==null?void 0:o.body),s=Re(i);if(a){let c=ln(s);return e.concat(s,s.visualViewport||[],lo(i)?i:[],c&&r?an(c):[])}else return e.concat(i,an(i,[],r))}function ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ql(t){let e=Ze(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=yt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:o,c=co(r)!==a||co(o)!==s;return c&&(r=a,o=s),{width:r,height:o,$:c}}function Xl(t){return qe(t)?t:t.contextElement}function _r(t){let e=Xl(t);if(!yt(e))return st(1);let r=e.getBoundingClientRect(),{width:o,height:i,$:a}=Ql(e),s=(a?co(r.width):r.width)/o,c=(a?co(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Yf=st(0);function Jl(t){let e=Re(t);return!cn()||!e.visualViewport?Yf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qf(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Re(t)}function fo(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Xl(t),s=st(1);e&&(o?qe(o)&&(s=_r(o)):s=_r(t));let c=Qf(a,r,o)?Jl(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=ln(S);for(;w&&x!==S;){let E=_r(w),R=w.getBoundingClientRect(),F=Ze(w),b=R.left+(w.clientLeft+parseFloat(F.paddingLeft))*E.x,y=R.top+(w.clientTop+parseFloat(F.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=b,p+=y,S=Re(w),w=ln(S)}}return Gt({width:f,height:h,x:d,y:p})}function dn(t,e){let r=po(t).scrollLeft;return e?e.left+r:fo(gt(t)).left+r}function ed(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-dn(t,r),i=r.top+e.scrollTop;return{x:o,y:i}}function Xf(t){let{elements:e,rect:r,offsetParent:o,strategy:i}=t,a=i==="fixed",s=gt(o),c=e?uo(e.floating):!1;if(o===s||c&&a)return r;let d={scrollLeft:0,scrollTop:0},p=st(1),f=st(0),h=yt(o);if((h||!a)&&((Kt(o)!=="body"||lo(s))&&(d=po(o)),h)){let x=fo(o);p=_r(o),f.x=x.x+o.clientLeft,f.y=x.y+o.clientTop}let m=s&&!h&&!a?ed(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 Jf(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function eh(t){let e=po(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+dn(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 th=25;function rh(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",i=Re(t),a=gt(t),s=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let m=!cn()||e==="fixed";o?m||(p=-s.offsetLeft,f=-s.offsetTop):(c=s.width,d=s.height,m&&(p=s.offsetLeft,f=s.offsetTop))}if(dn(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<=th&&(c-=R)}return{width:c,height:d,x:p,y:f}}function oh(t,e){let r=fo(t,!0,e==="fixed"),o=r.top+t.clientTop,i=r.left+t.clientLeft,a=_r(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 Zl(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=rh(t,r,e);else if(e==="document")o=eh(gt(t));else if(qe(e))o=oh(e,r);else{let i=Jl(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Gt(o)}function nh(t,e){let r=e.get(t);if(r)return r;let o=an(t,[],!1).filter(c=>qe(c)&&Kt(c)!=="body"),i=null,a=Ze(t).position==="fixed",s=a?Tt(t):t;for(;qe(s)&&!Tr(s);){let c=Ze(s),d=Rr(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&c.position==="static")?o=o.filter(h=>h!==s):i=c,s=Tt(s)}return e.set(t,o),o}function ih(t){let{element:e,boundary:r,rootBoundary:o,strategy:i}=t,s=[...r==="clippingAncestors"?uo(e)?[]:nh(e,this._c):[].concat(r),o],c=Zl(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=Zl(e,s[m],i);d=at(x.top,d),p=Vt(x.right,p),f=Vt(x.bottom,f),h=at(x.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function ah(t){let{width:e,height:r}=Ql(t);return{width:e,height:r}}function sh(t,e,r){let o=yt(e),i=gt(e),a=r==="fixed",s=fo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},d=st(0);if((o||!a)&&((Kt(e)!=="body"||lo(i))&&(c=po(e)),o)){let m=fo(e,!0,a,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!o&&i&&(d.x=dn(i));let p=i&&!o&&!a?ed(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 va(t){return Ze(t).position==="static"}function Yl(t,e){if(!yt(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return gt(t)===r&&(r=r.ownerDocument.body),r}function td(t,e){let r=Re(t);if(uo(t))return r;if(!yt(t)){let i=Tt(t);for(;i&&!Tr(i);){if(qe(i)&&!va(i))return i;i=Tt(i)}return r}let o=Yl(t,e);for(;o&&jl(o)&&va(o);)o=Yl(o,e);return o&&Tr(o)&&va(o)&&!Rr(o)?r:o||Kl(t)||r}var ch=async function(t){let e=this.getOffsetParent||td,r=this.getDimensions,o=await r(t.floating);return{reference:sh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lh(t){return Ze(t).direction==="rtl"}var Ir={convertOffsetParentRelativeRectToViewportRelativeRect:Xf,getDocumentElement:gt,getClippingRect:ih,getOffsetParent:td,getElementRects:ch,getClientRects:Jf,getDimensions:ah,getScale:_r,isElement:qe,isRTL:lh};var rd=Hl,Sa=$l,od=zl;var nd=Vl;var Ea=(t,e,r)=>{let o=new Map,i=r??{},a={...Ir,...i.platform,_c:o};return Bl(t,e,{...i,platform:a})};function Oa(t){return dh(t)}function Ca(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function dh(t){for(let e=t;e;e=Ca(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ca(t);e;e=Ca(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Rr(r)||e.tagName==="BODY"))return e}return null}async function ho(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Ea(t,e,{strategy:o.strategy,platform:{...Ir,getOffsetParent:i=>Ir.getOffsetParent(i,Oa)},middleware:[od({crossAxis:!0}),Sa({allowedPlacements:[o.placement]})]})}async function uh(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,Ea(t,e,{placement:c,strategy:i,platform:{...Ir,getOffsetParent:p=>Ir.getOffsetParent(p,Oa)},middleware:[rd(s??4),Sa({allowedPlacements:o}),nd({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 Aa={};U(Aa,{isSlotEmptyOrWithoutContent:()=>ph});var ph=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 Pa={};U(Pa,{FtdsBase:()=>La,toFtdsBase:()=>ud});var Ia={};U(Ia,{ExportpartsUpdatedEvent:()=>qt,FtLitElement:()=>H});var Ra={};U(Ra,{ScopedRegistryLitElement:()=>mo});var mo=class extends ft{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 Kr(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){eo(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 _a={};U(_a,{shadowQuerySelector:()=>Ta,shadowQuerySelectorAll:()=>fh});function Ta(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 fh(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 Lr=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},cd,id=Symbol("constructorPrototype"),ad=Symbol("constructorName"),ld=Symbol("exportpartsDebouncer"),sd=Symbol("dynamicDependenciesLoaded"),qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};qt.eventName="exportparts-updated";var H=class extends mo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cd]=new Y(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[ld].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[ad]=this.constructor.name,this[id]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ad]&&Object.setPrototypeOf(this,this[id])}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[sd]||(r[sd]=!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=Ta(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(", ")}};cd=ld;Lr([g()],H.prototype,"exportpartsPrefix",void 0);Lr([de([])],H.prototype,"exportpartsPrefixes",void 0);Lr([g({reflect:!0})],H.prototype,"exportparts",void 0);Lr([g()],H.prototype,"customStylesheet",void 0);Lr([g()],H.prototype,"elementToFocus",void 0);Lr([D()],H.prototype,"useAdoptedStyleSheets",void 0);var dd=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},ud=ie(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=so.medium,this.family=ao.neutral}getDesignSystemBaseClasses(){return{[la(this.family)]:!0,[da(this.size)]:!0}}}return dd([g()],e.prototype,"size",void 0),dd([g()],e.prototype,"family",void 0),e}),La=class extends ud(H){};var pd={};var Ma={};U(Ma,{highlightHtml:()=>Na,highlightHtmlColorCssVariable:()=>fd,highlightHtmlStyles:()=>mh});var Zt=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 go=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 Zt(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 Zt.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=Zt.matches(o,r),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ka(t){let e=new go(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 hh=ka,fd=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),mh=T`
|
|
5
5
|
.highlight-html-match {
|
|
6
|
-
background: ${
|
|
6
|
+
background: ${fd};
|
|
7
7
|
}
|
|
8
|
-
`;function
|
|
8
|
+
`;function Na(t,e,r){var o,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new hh(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 Fa={};U(Fa,{noTextInputDefaultClearButton:()=>yh,noTextSelect:()=>Yt,safariEllipsisFix:()=>Da,wordWrap:()=>gh});var Yt=T`
|
|
9
9
|
.ft-no-text-select {
|
|
10
10
|
-webkit-touch-callout: none;
|
|
11
11
|
-webkit-user-select: none;
|
|
@@ -26,7 +26,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
26
26
|
-webkit-hyphens: auto;
|
|
27
27
|
hyphens: auto
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Da=T`
|
|
30
30
|
.ft-safari-ellipsis-fix {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
|
|
@@ -44,7 +44,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var fd={};var Fa={};U(Fa,{ParametrizedLabelResolver:()=>yo});var yo=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 as={};U(as,{FtCommandQueue:()=>bo,FtLitElementRedux:()=>Ce,FtReduxStore:()=>Qe,FtStateManager:()=>Jt,ReduxWatcher:()=>Lt,clearAllStores:()=>pm,isFtReduxStore:()=>Pr,redux:()=>G,reduxEventListener:()=>Ba,reduxReactive:()=>Ua,watch:()=>is,withRedux:()=>hd});var Ua=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},G=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})}},Ba=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var bo=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 Pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xo=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Qt=Symbol("internalStores"),hd=ie(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[Qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Qt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Qt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Qt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Qt].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[_t].has(s.store):this[_t].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[_t].set(s,c.subscribe(()=>this.updateFromStores())),this[xo].set(s,[]),Pr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||c.name===p.store)){let h=m=>this[f](m);c.addEventListener(p.eventName,h),this[xo].get(s).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[_t].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[_t].has(s)&&this[_t].get(s)(),this[_t].delete(s),(c=this[xo].get(s))===null||c===void 0||c.forEach(d=>d()),this[xo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=_t,r=Qt,o=xo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ce=class extends hd(z){};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 bh=typeof Symbol=="function"&&Symbol.observable||"@@observable",md=bh,$a=()=>Math.random().toString(36).substring(7).split("").join("."),xh={INIT:`@@redux/INIT${$a()}`,REPLACE:`@@redux/REPLACE${$a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$a()}`},un=xh;function pn(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 Ha(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(Ha)(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,A)=>{s.set(A,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 A=!0;p();let F=c++;return s.set(F,E),function(){if(A){if(d)throw new Error(me(6));A=!1,p(),s.delete(F),a=null}}}function m(E){if(!pn(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(F=>{F()}),E}function x(E){if(typeof E!="function")throw new Error(me(10));o=E,m({type:un.REPLACE})}function S(){let E=h;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(me(11));function F(){let b=A;b.next&&b.next(f())}return F(),{unsubscribe:E(F)}},[md](){return this}}}return m({type:un.INIT}),{dispatch:m,subscribe:h,getState:f,replaceReducer:x,[md]:S}}function vh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function gd(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{vh(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 vo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function yd(...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=vo(...c)(i.dispatch),{...i,dispatch:a}}}function bd(t){return pn(t)&&"type"in t&&typeof t.type=="string"}var Rd=Symbol.for("immer-nothing"),xd=Symbol.for("immer-draftable"),xe=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,Nr=Ne.getPrototypeOf,gn="constructor",En="prototype",Ga="configurable",yn="enumerable",hn="writable",So="value",ct=t=>!!t&&!!t[xe];function Me(t){return t?Td(t)||On(t)||!!t[xd]||!!t[gn]?.[xd]||wn(t)||An(t):!1}var Sh=Ne[En][gn].toString(),vd=new WeakMap;function Td(t){if(!t||!Ja(t))return!1;let e=Nr(t);if(e===null||e===Ne[En])return!0;let r=Ne.hasOwnProperty.call(e,gn)&&e[gn];if(r===Object)return!0;if(!kr(r))return!1;let o=vd.get(r);return o===void 0&&(o=Function.toString.call(r),vd.set(r,o)),o===Sh}function Cn(t,e,r=!0){Oo(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 Oo(t){let e=t[xe];return e?e.type_:On(t)?1:wn(t)?2:An(t)?3:0}var za=(t,e,r=Oo(t))=>r===2?t.has(e):Ne[En].hasOwnProperty.call(t,e),ja=(t,e,r=Oo(t))=>r===2?t.get(e):t[e],bn=(t,e,r,o=Oo(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function Eh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var On=Array.isArray,wn=t=>t instanceof Map,An=t=>t instanceof Set,Ja=t=>typeof t=="object",kr=t=>typeof t=="function",Va=t=>typeof t=="boolean";function Ch(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var yt=t=>t.copy_||t.base_;var es=t=>t.modified_?t.copy_:t.base_;function Ka(t,e){if(wn(t))return new Map(t);if(An(t))return new Set(t);if(On(t))return Array[En].slice.call(t);let r=Td(t);if(e===!0||e==="class_only"&&!r){let o=Ne.getOwnPropertyDescriptors(t);delete o[xe];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],c=o[s];c[hn]===!1&&(c[hn]=!0,c[Ga]=!0),(c.get||c.set)&&(o[s]={[Ga]:!0,[hn]:!0,[yn]:c[yn],[So]:t[s]})}return Ne.create(Nr(t),o)}else{let o=Nr(t);if(o!==null&&r)return{...t};let i=Ne.create(o);return Ne.assign(i,t)}}function ts(t,e=!1){return Rn(t)||ct(t)||!Me(t)||(Oo(t)>1&&Ne.defineProperties(t,{set:fn,add:fn,clear:fn,delete:fn}),Ne.freeze(t),e&&Cn(t,(r,o)=>{ts(o,!0)},!1)),t}function Oh(){Ye(2)}var fn={[So]:Oh};function Rn(t){return t===null||!Ja(t)?!0:Ne.isFrozen(t)}var xn="MapSet",qa="Patches",Sd="ArrayMethods",_d={};function Xt(t){let e=_d[t];return e||Ye(0,t),e}var Ed=t=>!!_d[t];var Eo,Id=()=>Eo,wh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ed(xn)?Xt(xn):void 0,arrayMethodsPlugin_:Ed(Sd)?Xt(Sd):void 0});function Cd(t,e){e&&(t.patchPlugin_=Xt(qa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Za(t){Ya(t),t.drafts_.forEach(Ah),t.drafts_=null}function Ya(t){t===Eo&&(Eo=t.parent_)}var Od=t=>Eo=wh(Eo,t);function Ah(t){let e=t[xe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function wd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[xe].modified_&&(Za(e),Ye(4)),Me(t)&&(t=Ad(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[xe].base_,t,e)}else t=Ad(e,r);return Rh(e,t,!0),Za(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Rd?t:void 0}function Ad(t,e){if(Rn(e))return e;let r=e[xe];if(!r)return vn(e,t.handledSet_,t);if(!Tn(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);kd(r,t)}return r.copy_}function Rh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ts(e,r)}function Ld(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Tn=(t,e)=>t.scope_===e,Th=[];function Pd(t,e,r,o){let i=yt(t),a=t.type_;if(o!==void 0&&ja(i,o,a)===e){bn(i,o,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;Cn(i,(d,p)=>{if(ct(p)){let f=c.get(p)||[];f.push(d),c.set(p,f)}})}let s=t.draftLocations_.get(e)??Th;for(let c of s)bn(i,c,r,a)}function _h(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!Tn(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=es(a);Pd(t,a.draft_??a,s,r),kd(a,i)})}function kd(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)}Ld(t)}}function Ih(t,e,r){let{scope_:o}=t;if(ct(r)){let i=r[xe];Tn(i,o)&&i.callbacks_.push(function(){mn(t);let s=es(i);Pd(t,r,s,e)})}else Me(r)&&t.callbacks_.push(function(){let a=yt(t);t.type_===3?a.has(r)&&vn(r,o.handledSet_,o):ja(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&vn(ja(t.copy_,e,t.type_),o.handledSet_,o)})}function vn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ct(t)||e.has(t)||!Me(t)||Rn(t)||(e.add(t),Cn(t,(o,i)=>{if(ct(i)){let a=i[xe];if(Tn(a,r)){let s=es(a);bn(t,o,s,t.type_),Ld(a)}}else Me(i)&&vn(i,e,r)})),t}function Lh(t,e){let r=On(t),o={type_:r?1:0,scope_:e?e.scope_:Id(),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=Sn;r&&(i=[o],a=Co);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return o.draft_=c,o.revoke_=s,[c,o]}var Sn={get(t,e){if(e===xe)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=yt(t);if(!za(i,e,t.type_))return kh(t,i,e);let a=i[e];if(t.finalized_||!Me(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ch(e))return a;if(a===Wa(t.base_,e)||Ph(t,e,a)){mn(t);let s=t.type_===1?+e:e,c=Xa(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in yt(t)},ownKeys(t){return Reflect.ownKeys(yt(t))},set(t,e,r){let o=Nd(yt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let i=Wa(yt(t),e),a=i?.[xe];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Eh(r,i)&&(r!==void 0||za(t.base_,e,t.type_)))return!0;mn(t),Qa(t)}return t.copy_[e]===r&&(r!==void 0||za(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Ih(t,e,r)),!0},deleteProperty(t,e){return mn(t),Wa(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Qa(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=yt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[hn]:!0,[Ga]:t.type_!==1||e!=="length",[yn]:o[yn],[So]:r[e]}},defineProperty(){Ye(11)},getPrototypeOf(t){return Nr(t.base_)},setPrototypeOf(){Ye(12)}},Co={};for(let t in Sn){let e=Sn[t];Co[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)};Co.set=function(t,e,r){return Sn.set.call(this,t[0],e,r,t[0])};function Wa(t,e){let r=t[xe];return(r?yt(r):t)[e]}function Ph(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Me(r)||r[xe]?!1:t.baseRefs_.has(r)}function kh(t,e,r){let o=Nd(e,r);return o?So in o?o[So]:o.get?.call(t.draft_):void 0}function Nd(t,e){if(!(e in t))return;let r=Nr(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Nr(r)}}function Qa(t){t.modified_||(t.modified_=!0,t.parent_&&Qa(t.parent_))}function mn(t){t.copy_||(t.assigned_=new Map,t.copy_=Ka(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Nh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(kr(e)&&!kr(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,f=>r.call(this,f,...p))}}kr(r)||Ye(6),o!==void 0&&!kr(o)&&Ye(7);let i;if(Me(e)){let a=Od(this),s=Xa(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?Za(a):Ya(a)}return Cd(a,o),wd(i,a)}else if(!e||!Ja(e)){if(i=r(e),i===void 0&&(i=e),i===Rd&&(i=void 0),this.autoFreeze_&&ts(i,!0),o){let a=[],s=[];Xt(qa).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Ye(1,e)},this.produceWithPatches=(e,r)=>{if(kr(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]},Va(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Va(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Va(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Me(t)||Ye(8),ct(t)&&(t=Md(t));let e=Od(this),r=Xa(e,t,void 0);return r[xe].isManual_=!0,Ya(e),r}finishDraft(t,e){let r=t&&t[xe];(!r||!r.isManual_)&&Ye(9);let{scope_:o}=r;return Cd(o,e),wd(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=Xt(qa).applyPatches_;return ct(t)?o(t,e):this.produce(t,i=>o(i,e))}};function Xa(t,e,r,o){let[i,a]=wn(e)?Xt(xn).proxyMap_(e,r):An(e)?Xt(xn).proxySet_(e,r):Lh(e,r);return(r?.scope_??Id()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?_h(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 Md(t){return ct(t)||Ye(10,t),Dd(t)}function Dd(t){if(!Me(t)||Rn(t))return t;let e=t[xe],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Ka(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=Ka(t,!0);return Cn(r,(i,a)=>{bn(r,i,Dd(a))},o),e&&(e.finalized_=!1),r}var Mh=globalThis.Iterator,uS=typeof Mh?.from=="function";var Dh=new Nh,rs=Dh.produce;function Fd(t){return({dispatch:r,getState:o})=>i=>a=>typeof a=="function"?a(r,o,t):i(a)}var Ud=Fd(),Bd=Fd;var Fh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vo:vo.apply(null,arguments)},bS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Uh=t=>t&&typeof t.match=="function";function It(t,e){function r(...o){if(e){let i=e(...o);if(!i)throw new Error(bt(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=>bd(o)&&o.type===t,r}var Wd=class wo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,wo.prototype)}static get[Symbol.species](){return wo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new wo(...e[0].concat(this)):new wo(...e.concat(this))}};function $d(t){return Me(t)?rs(t,()=>{}):t}function _n(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Bh(t){return typeof t=="boolean"}var $h=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Wd;return r&&(Bh(r)?s.push(Ud):s.push(Bd(r.extraArgument))),s},Hh="RTK_autoBatch";var Hd=t=>e=>{setTimeout(e,t)},zh=(t,e)=>r=>{let o=!1,i=()=>{o||(o=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(i),s=setTimeout(i,e)},Vh=(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):Hd(10):t.type==="callback"?t.queueNotification:Hd(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?.[Hh],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Wh=t=>function(r){let{autoBatch:o=!0}=r??{},i=new Wd(t);return o&&i.push(Vh(typeof o=="object"?o:void 0)),i};function Gd(t){let e=$h(),{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(pn(r))d=gd(r);else throw new Error(bt(1));let p;typeof o=="function"?p=o(e):p=e();let f=vo;i&&(f=Fh({trace:!1,...typeof i=="object"&&i}));let h=yd(...p),m=Wh(h),x=typeof c=="function"?c(m):m(),S=f(...x);return Ha(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(bt(28));if(c in e)throw new Error(bt(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 Gh(t){return typeof t=="function"}function jh(t,e){let[r,o,i]=jd(e),a;if(Gh(t))a=()=>$d(t());else{let c=$d(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(ct(f)){let x=h(f,d);return x===void 0?f:x}else{if(Me(f))return rs(f,m=>h(m,d));{let m=h(f,d);if(m===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return f},c)}return s.getInitialState=a,s}var Kh=(t,e)=>Uh(t)?t.match(e):t(e);function qh(...t){return e=>t.some(r=>Kh(r,e))}var Zh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yh=(t=21)=>{let e="",r=t;for(;r--;)e+=Zh[Math.random()*64|0];return e},Qh=["name","message","stack","code"],os=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},zd=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Xh=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Qh)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Vd="External signal was aborted",Jh=(()=>{function t(e,r,o){let i=It(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=It(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=It(e+"/rejected",(d,p,f,h,m)=>({payload:h,error:(o&&o.serializeError||Xh)(d||"Rejected"),meta:{...m||{},arg:f,requestId:p,rejectedWithValue:!!h,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):Yh(),S=new AbortController,w,E;function A(y){E=y,S.abort()}p&&(p.aborted?A(Vd):p.addEventListener("abort",()=>A(Vd),{once:!0}));let F=(async function(){let y;try{let v=o?.condition?.(d,{getState:h,extra:m});if(tm(v)&&(v=await v),v===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((L,$)=>{w=()=>{$({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}))),y=await Promise.race([_,Promise.resolve(r(d,{dispatch:f,getState:h,extra:m,requestId:x,signal:S.signal,abort:A,rejectWithValue:((L,$)=>new os(L,$)),fulfillWithValue:((L,$)=>new zd(L,$))})).then(L=>{if(L instanceof os)throw L;return L instanceof zd?i(L.payload,x,d,L.meta):i(L,x,d)})])}catch(v){y=v instanceof os?s(null,x,d,v.payload,v.meta):s(v,x,d)}finally{w&&S.signal.removeEventListener("abort",w)}return o&&!o.dispatchConditionRejection&&s.match(y)&&y.meta.condition||f(y),y})();return Object.assign(F,{abort:A,requestId:x,arg:d,unwrap(){return F.then(em)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:qh(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function em(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Kd=Symbol.for("rtk-slice-createasyncthunk"),vS={[Kd]:Jh};function rm(t,e){return`${t}/${e}`}function om({creators:t}={}){let e=t?.asyncThunk?.[Kd];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(bt(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(im()):o.reducers)||{},c=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,b){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(bt(12));if(v in d.sliceCaseReducersByType)throw new Error(bt(13));return d.sliceCaseReducersByType[v]=b,p},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),p},exposeAction(y,b){return d.actionCreators[y]=b,p},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,p}};c.forEach(y=>{let b=s[y],v={reducerName:y,type:rm(i,y),createNotation:typeof o.reducers=="function"};sm(b)?lm(v,b,p,e):am(v,b,p)});function f(){let[y={},b=[],v=void 0]=typeof o.extraReducers=="function"?jd(o.extraReducers):[o.extraReducers],_={...y,...d.sliceCaseReducersByType};return jh(o.initialState,L=>{for(let $ in _)L.addCase($,_[$]);for(let $ of d.sliceMatchers)L.addMatcher($.matcher,$.reducer);for(let $ of b)L.addMatcher($.matcher,$.reducer);v&&L.addDefaultCase(v)})}let h=y=>y,m=new Map,x=new WeakMap,S;function w(y,b){return S||(S=f()),S(y,b)}function E(){return S||(S=f()),S.getInitialState()}function A(y,b=!1){function v(L){let $=L[y];return typeof $>"u"&&b&&($=_n(x,v,E)),$}function _(L=h){let $=_n(m,b,()=>new WeakMap);return _n($,L,()=>{let J={};for(let[P,H]of Object.entries(o.selectors??{}))J[P]=nm(H,L,()=>_n(x,L,E),b);return J})}return{reducerPath:y,getSelectors:_,get selectors(){return _(v)},selectSlice:v}}let F={name:i,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...A(a),injectInto(y,{reducerPath:b,...v}={}){let _=b??a;return y.inject({reducerPath:_,reducer:w},v),{...F,...A(_,!0)}}};return F}}function nm(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 qd=om();function im(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function am({type:t,reducerName:e,createNotation:r},o,i){let a,s;if("reducer"in o){if(r&&!cm(o))throw new Error(bt(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?It(t,s):It(t))}function sm(t){return t._reducerDefinitionType==="asyncThunk"}function cm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function lm({type:t,reducerName:e},r,o,i){if(!i)throw new Error(bt(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||In,pending:c||In,rejected:d||In,settled:p||In})}function In(){}var Zd="listener",Yd="completed",Qd="cancelled",SS=`task-${Qd}`,ES=`task-${Yd}`,CS=`${Zd}-${Qd}`,OS=`${Zd}-${Yd}`;var{assign:Xd}=Object;var ns="listenerMiddleware";var dm=Xd(It(`${ns}/add`),{withTypes:()=>dm}),wS=It(`${ns}/removeAll`),um=Xd(It(`${ns}/remove`),{withTypes:()=>um});function bt(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 ht{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(Pr(a))return a;if(i==null)return;let s=qd({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Gd({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)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new bo,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,p=a[d];return p?(...f)=>{let h=p(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{let h=d,m=this.getState()[h];he(m,f)||this.setState({[h]:i(f)})}}}),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 pm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Pr(e)&&e.clear()}var Lt=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 is(t,e,r){return new Lt(t,e,r).watch()}var Jt=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 ls={};U(ls,{scrollHelper:()=>fm});var ss,Ln=new Map,cs=class{lock(e,r){if(r){let o=Ln.get(r);if(o==null||o===e)return Ln.set(r,e),r}}release(e,r){r&&Ln.get(r)===e&&Ln.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of Ki(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=ft(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=(ss=window.FluidTopicsScrollHelper)!==null&&ss!==void 0?ss:new cs;var fm=window.FluidTopicsScrollHelper;var ps={};U(ps,{toFtFormComponent:()=>us});var ds=Symbol("elementInternals"),us=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ds].form}constructor(...o){super(o),this[ds]=this.attachInternals()}setFormValue(o){this[ds].setFormValue(o)}}return e});var fs={};U(fs,{DateFormatter:()=>er});var er=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 ms={};U(ms,{ALL_KEYS_VALUE:()=>hs,SameWindowStorageEvent:()=>Mr});var hs="__all__",Mr=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==hs}};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 Mr(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 Mr(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Mr(hs))}});var ys={};U(ys,{FocusMainContentEvent:()=>gs});var gs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Jd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function hm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function mm(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",hm);document.addEventListener("click",mm);var eu=T`
|
|
47
|
+
`;var hd={};var Ua={};U(Ua,{ParametrizedLabelResolver:()=>yo});var yo=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 ss={};U(ss,{FtCommandQueue:()=>bo,FtLitElementRedux:()=>we,FtReduxStore:()=>Qe,FtStateManager:()=>Jt,ReduxWatcher:()=>Lt,clearAllStores:()=>pm,isFtReduxStore:()=>Pr,redux:()=>j,reduxEventListener:()=>$a,reduxReactive:()=>Ba,watch:()=>as,withRedux:()=>md});var Ba=()=>(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})}},$a=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var bo=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 Pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xo=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Qt=Symbol("internalStores"),md=ie(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[Qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Qt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Qt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Qt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Qt].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[_t].has(s.store):this[_t].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[_t].set(s,c.subscribe(()=>this.updateFromStores())),this[xo].set(s,[]),Pr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||c.name===p.store)){let h=m=>this[f](m);c.addEventListener(p.eventName,h),this[xo].get(s).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[_t].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[_t].has(s)&&this[_t].get(s)(),this[_t].delete(s),(c=this[xo].get(s))===null||c===void 0||c.forEach(d=>d()),this[xo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=_t,r=Qt,o=xo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),we=class extends md(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 bh=typeof Symbol=="function"&&Symbol.observable||"@@observable",gd=bh,Ha=()=>Math.random().toString(36).substring(7).split("").join("."),xh={INIT:`@@redux/INIT${Ha()}`,REPLACE:`@@redux/REPLACE${Ha()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ha()}`},un=xh;function pn(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 za(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(za)(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 F=c++;return s.set(F,E),function(){if(R){if(d)throw new Error(me(6));R=!1,p(),s.delete(F),a=null}}}function m(E){if(!pn(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(F=>{F()}),E}function x(E){if(typeof E!="function")throw new Error(me(10));o=E,m({type:un.REPLACE})}function S(){let E=h;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(me(11));function F(){let y=R;y.next&&y.next(f())}return F(),{unsubscribe:E(F)}},[gd](){return this}}}return m({type:un.INIT}),{dispatch:m,subscribe:h,getState:f,replaceReducer:x,[gd]:S}}function vh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function Va(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{vh(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 vo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function yd(...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=vo(...c)(i.dispatch),{...i,dispatch:a}}}function bd(t){return pn(t)&&"type"in t&&typeof t.type=="string"}var Rd=Symbol.for("immer-nothing"),xd=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,Nr=Ne.getPrototypeOf,gn="constructor",En="prototype",Ka="configurable",yn="enumerable",hn="writable",So="value",lt=t=>!!t&&!!t[ve];function Me(t){return t?Td(t)||On(t)||!!t[xd]||!!t[gn]?.[xd]||wn(t)||An(t):!1}var Sh=Ne[En][gn].toString(),vd=new WeakMap;function Td(t){if(!t||!ts(t))return!1;let e=Nr(t);if(e===null||e===Ne[En])return!0;let r=Ne.hasOwnProperty.call(e,gn)&&e[gn];if(r===Object)return!0;if(!kr(r))return!1;let o=vd.get(r);return o===void 0&&(o=Function.toString.call(r),vd.set(r,o)),o===Sh}function Cn(t,e,r=!0){Oo(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 Oo(t){let e=t[ve];return e?e.type_:On(t)?1:wn(t)?2:An(t)?3:0}var Wa=(t,e,r=Oo(t))=>r===2?t.has(e):Ne[En].hasOwnProperty.call(t,e),qa=(t,e,r=Oo(t))=>r===2?t.get(e):t[e],bn=(t,e,r,o=Oo(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function Eh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var On=Array.isArray,wn=t=>t instanceof Map,An=t=>t instanceof Set,ts=t=>typeof t=="object",kr=t=>typeof t=="function",Ga=t=>typeof t=="boolean";function Ch(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var bt=t=>t.copy_||t.base_;var rs=t=>t.modified_?t.copy_:t.base_;function Za(t,e){if(wn(t))return new Map(t);if(An(t))return new Set(t);if(On(t))return Array[En].slice.call(t);let r=Td(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[hn]===!1&&(c[hn]=!0,c[Ka]=!0),(c.get||c.set)&&(o[s]={[Ka]:!0,[hn]:!0,[yn]:c[yn],[So]:t[s]})}return Ne.create(Nr(t),o)}else{let o=Nr(t);if(o!==null&&r)return{...t};let i=Ne.create(o);return Ne.assign(i,t)}}function Rn(t,e=!1){return Tn(t)||lt(t)||!Me(t)||(Oo(t)>1&&Ne.defineProperties(t,{set:fn,add:fn,clear:fn,delete:fn}),Ne.freeze(t),e&&Cn(t,(r,o)=>{Rn(o,!0)},!1)),t}function Oh(){Ye(2)}var fn={[So]:Oh};function Tn(t){return t===null||!ts(t)?!0:Ne.isFrozen(t)}var xn="MapSet",Ya="Patches",Sd="ArrayMethods",_d={};function Xt(t){let e=_d[t];return e||Ye(0,t),e}var Ed=t=>!!_d[t];var Eo,Id=()=>Eo,wh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ed(xn)?Xt(xn):void 0,arrayMethodsPlugin_:Ed(Sd)?Xt(Sd):void 0});function Cd(t,e){e&&(t.patchPlugin_=Xt(Ya),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Qa(t){Xa(t),t.drafts_.forEach(Ah),t.drafts_=null}function Xa(t){t===Eo&&(Eo=t.parent_)}var Od=t=>Eo=wh(Eo,t);function Ah(t){let e=t[ve];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function wd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ve].modified_&&(Qa(e),Ye(4)),Me(t)&&(t=Ad(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[ve].base_,t,e)}else t=Ad(e,r);return Rh(e,t,!0),Qa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Rd?t:void 0}function Ad(t,e){if(Tn(e))return e;let r=e[ve];if(!r)return vn(e,t.handledSet_,t);if(!_n(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);kd(r,t)}return r.copy_}function Rh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Rn(e,r)}function Ld(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var _n=(t,e)=>t.scope_===e,Th=[];function Pd(t,e,r,o){let i=bt(t),a=t.type_;if(o!==void 0&&qa(i,o,a)===e){bn(i,o,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;Cn(i,(d,p)=>{if(lt(p)){let f=c.get(p)||[];f.push(d),c.set(p,f)}})}let s=t.draftLocations_.get(e)??Th;for(let c of s)bn(i,c,r,a)}function _h(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!_n(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=rs(a);Pd(t,a.draft_??a,s,r),kd(a,i)})}function kd(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)}Ld(t)}}function Ih(t,e,r){let{scope_:o}=t;if(lt(r)){let i=r[ve];_n(i,o)&&i.callbacks_.push(function(){mn(t);let s=rs(i);Pd(t,r,s,e)})}else Me(r)&&t.callbacks_.push(function(){let a=bt(t);t.type_===3?a.has(r)&&vn(r,o.handledSet_,o):qa(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&vn(qa(t.copy_,e,t.type_),o.handledSet_,o)})}function vn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||lt(t)||e.has(t)||!Me(t)||Tn(t)||(e.add(t),Cn(t,(o,i)=>{if(lt(i)){let a=i[ve];if(_n(a,r)){let s=rs(a);bn(t,o,s,t.type_),Ld(a)}}else Me(i)&&vn(i,e,r)})),t}function Lh(t,e){let r=On(t),o={type_:r?1:0,scope_:e?e.scope_:Id(),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=Sn;r&&(i=[o],a=Co);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return o.draft_=c,o.revoke_=s,[c,o]}var Sn={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=bt(t);if(!Wa(i,e,t.type_))return kh(t,i,e);let a=i[e];if(t.finalized_||!Me(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ch(e))return a;if(a===ja(t.base_,e)||Ph(t,e,a)){mn(t);let s=t.type_===1?+e:e,c=es(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in bt(t)},ownKeys(t){return Reflect.ownKeys(bt(t))},set(t,e,r){let o=Nd(bt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let i=ja(bt(t),e),a=i?.[ve];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Eh(r,i)&&(r!==void 0||Wa(t.base_,e,t.type_)))return!0;mn(t),Ja(t)}return t.copy_[e]===r&&(r!==void 0||Wa(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Ih(t,e,r)),!0},deleteProperty(t,e){return mn(t),ja(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Ja(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=bt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[hn]:!0,[Ka]:t.type_!==1||e!=="length",[yn]:o[yn],[So]:r[e]}},defineProperty(){Ye(11)},getPrototypeOf(t){return Nr(t.base_)},setPrototypeOf(){Ye(12)}},Co={};for(let t in Sn){let e=Sn[t];Co[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)};Co.set=function(t,e,r){return Sn.set.call(this,t[0],e,r,t[0])};function ja(t,e){let r=t[ve];return(r?bt(r):t)[e]}function Ph(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Me(r)||r[ve]?!1:t.baseRefs_.has(r)}function kh(t,e,r){let o=Nd(e,r);return o?So in o?o[So]:o.get?.call(t.draft_):void 0}function Nd(t,e){if(!(e in t))return;let r=Nr(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Nr(r)}}function Ja(t){t.modified_||(t.modified_=!0,t.parent_&&Ja(t.parent_))}function mn(t){t.copy_||(t.assigned_=new Map,t.copy_=Za(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Nh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(kr(e)&&!kr(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,f=>r.call(this,f,...p))}}kr(r)||Ye(6),o!==void 0&&!kr(o)&&Ye(7);let i;if(Me(e)){let a=Od(this),s=es(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?Qa(a):Xa(a)}return Cd(a,o),wd(i,a)}else if(!e||!ts(e)){if(i=r(e),i===void 0&&(i=e),i===Rd&&(i=void 0),this.autoFreeze_&&Rn(i,!0),o){let a=[],s=[];Xt(Ya).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Ye(1,e)},this.produceWithPatches=(e,r)=>{if(kr(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]},Ga(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ga(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ga(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Me(t)||Ye(8),lt(t)&&(t=Md(t));let e=Od(this),r=es(e,t,void 0);return r[ve].isManual_=!0,Xa(e),r}finishDraft(t,e){let r=t&&t[ve];(!r||!r.isManual_)&&Ye(9);let{scope_:o}=r;return Cd(o,e),wd(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=Xt(Ya).applyPatches_;return lt(t)?o(t,e):this.produce(t,i=>o(i,e))}};function es(t,e,r,o){let[i,a]=wn(e)?Xt(xn).proxyMap_(e,r):An(e)?Xt(xn).proxySet_(e,r):Lh(e,r);return(r?.scope_??Id()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?_h(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 Md(t){return lt(t)||Ye(10,t),Dd(t)}function Dd(t){if(!Me(t)||Tn(t))return t;let e=t[ve],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Za(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=Za(t,!0);return Cn(r,(i,a)=>{bn(r,i,Dd(a))},o),e&&(e.finalized_=!1),r}var Mh=globalThis.Iterator,uS=typeof Mh?.from=="function";var Dh=new Nh,os=Dh.produce;function Fd(t){return({dispatch:r,getState:o})=>i=>a=>typeof a=="function"?a(r,o,t):i(a)}var Ud=Fd(),Bd=Fd;var Fh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vo:vo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Uh=t=>t&&typeof t.match=="function";function It(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=>bd(o)&&o.type===t,r}var Wd=class wo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,wo.prototype)}static get[Symbol.species](){return wo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new wo(...e[0].concat(this)):new wo(...e.concat(this))}};function $d(t){return Me(t)?os(t,()=>{}):t}function In(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Bh(t){return typeof t=="boolean"}var $h=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Wd;return r&&(Bh(r)?s.push(Ud):s.push(Bd(r.extraArgument))),s},Hh="RTK_autoBatch";var Hd=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)},Vh=(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):Hd(10):t.type==="callback"?t.queueNotification:Hd(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?.[Hh],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Wh=t=>function(r){let{autoBatch:o=!0}=r??{},i=new Wd(t);return o&&i.push(Vh(typeof o=="object"?o:void 0)),i};function Gd(t){let e=$h(),{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(pn(r))d=Va(r);else throw new Error(dt(1));let p;typeof o=="function"?p=o(e):p=e();let f=vo;i&&(f=Fh({trace:!1,...typeof i=="object"&&i}));let h=yd(...p),m=Wh(h),x=typeof c=="function"?c(m):m(),S=f(...x);return za(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(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 Gh(t){return typeof t=="function"}function jh(t,e){let[r,o,i]=jd(e),a;if(Gh(t))a=()=>$d(t());else{let c=$d(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 os(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 Kh=(t,e)=>Uh(t)?t.match(e):t(e);function qh(...t){return e=>t.some(r=>Kh(r,e))}var Zh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yh=(t=21)=>{let e="",r=t;for(;r--;)e+=Zh[Math.random()*64|0];return e},Qh=["name","message","stack","code"],ns=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}},Xh=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Qh)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Vd="External signal was aborted",Jh=(()=>{function t(e,r,o){let i=It(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=It(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=It(e+"/rejected",(d,p,f,h,m)=>({payload:h,error:(o&&o.serializeError||Xh)(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):Yh(),S=new AbortController,w,E;function R(b){E=b,S.abort()}p&&(p.aborted?R(Vd):p.addEventListener("abort",()=>R(Vd),{once:!0}));let F=(async function(){let b;try{let y=o?.condition?.(d,{getState:h,extra:m});if(tm(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,N)=>{w=()=>{N({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,N)=>new ns(A,N)),fulfillWithValue:((A,N)=>new zd(A,N))})).then(A=>{if(A instanceof ns)throw A;return A instanceof zd?i(A.payload,x,d,A.meta):i(A,x,d)})])}catch(y){b=y instanceof ns?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(F,{abort:R,requestId:x,arg:d,unwrap(){return F.then(em)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:qh(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function em(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Kd=Symbol.for("rtk-slice-createasyncthunk"),xS={[Kd]:Jh};function rm(t,e){return`${t}/${e}`}function om({creators:t}={}){let e=t?.asyncThunk?.[Kd];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(im()):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:rm(i,b),createNotation:typeof o.reducers=="function"};sm(y)?lm(v,y,p,e):am(v,y,p)});function f(){let[b={},y=[],v=void 0]=typeof o.extraReducers=="function"?jd(o.extraReducers):[o.extraReducers],A={...b,...d.sliceCaseReducersByType};return jh(o.initialState,N=>{for(let z in A)N.addCase(z,A[z]);for(let z of d.sliceMatchers)N.addMatcher(z.matcher,z.reducer);for(let z of y)N.addMatcher(z.matcher,z.reducer);v&&N.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(N){let z=N[b];return typeof z>"u"&&y&&(z=In(x,v,E)),z}function A(N=h){return In(In(m,y,()=>new WeakMap),N,()=>{let z={};for(let[oe,L]of Object.entries(o.selectors??{}))z[oe]=nm(L,N,()=>In(x,N,E),y);return z})}return{reducerPath:b,getSelectors:A,get selectors(){return A(v)},selectSlice:v}}let F={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),{...F,...R(A,!0)}}};return F}}function nm(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 qd=om();function im(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function am({type:t,reducerName:e,createNotation:r},o,i){let a,s;if("reducer"in o){if(r&&!cm(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?It(t,s):It(t))}function sm(t){return t._reducerDefinitionType==="asyncThunk"}function cm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function lm({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||Ln,pending:c||Ln,rejected:d||Ln,settled:p||Ln})}function Ln(){}var Zd="listener",Yd="completed",Qd="cancelled",vS=`task-${Qd}`,SS=`task-${Yd}`,ES=`${Zd}-${Qd}`,CS=`${Zd}-${Yd}`;var{assign:Xd}=Object;var is="listenerMiddleware";var dm=Xd(It(`${is}/add`),{withTypes:()=>dm}),OS=It(`${is}/removeAll`),um=Xd(It(`${is}/remove`),{withTypes:()=>um});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 mt{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(Pr(a))return a;if(i==null)return;let s=qd({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Gd({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)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new bo,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,p=a[d];return p?(...f)=>{let h=p(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{let h=d,m=this.getState()[h];he(m,f)||this.setState({[h]:i(f)})}}}),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 pm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Pr(e)&&e.clear()}var Lt=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 as(t,e,r){return new Lt(t,e,r).watch()}var Jt=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 ds={};U(ds,{scrollHelper:()=>fm});var cs,Pn=new Map,ls=class{lock(e,r){if(r){let o=Pn.get(r);if(o==null||o===e)return Pn.set(r,e),r}}release(e,r){r&&Pn.get(r)===e&&Pn.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=ht(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=(cs=window.FluidTopicsScrollHelper)!==null&&cs!==void 0?cs:new ls;var fm=window.FluidTopicsScrollHelper;var fs={};U(fs,{toFtFormComponent:()=>ps});var us=Symbol("elementInternals"),ps=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[us].form}constructor(...o){super(o),this[us]=this.attachInternals()}setFormValue(o){this[us].setFormValue(o)}}return e});var hs={};U(hs,{DateFormatter:()=>er});var er=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 gs={};U(gs,{ALL_KEYS_VALUE:()=>ms,SameWindowStorageEvent:()=>Mr});var ms="__all__",Mr=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==ms}};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 Mr(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 Mr(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Mr(ms))}});var bs={};U(bs,{FocusMainContentEvent:()=>ys});var ys=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Jd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function hm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function mm(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",hm);document.addEventListener("click",mm);var eu=T`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
|
@@ -68,7 +68,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
68
68
|
width:auto;
|
|
69
69
|
height:auto;
|
|
70
70
|
}
|
|
71
|
-
`;var
|
|
71
|
+
`;var xs={};U(xs,{withAriaNotification:()=>ym});var gm={checkVisibility:!0},ym=ie(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,i){let{checkVisibility:a}={...gm,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new oo({type:"aria",message:o})))},20)}}return e});var vs={};U(vs,{withConditionalVisibility:()=>bm});var tu=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 bm(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 tu([g({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),tu([D()],e.prototype,"isVisible",void 0),e}var Es={};U(Es,{FormController:()=>Ss});function xm(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Ss=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=xm(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=ra(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 Cs={};U(Cs,{MetadataValueLocalizer:()=>Dr});var Dr=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 Os(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function ru(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},tr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(tr||(tr={}));var Pt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Pt||(Pt={}));var ws=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var lE=ie(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=tr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Pt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===tr.blur||this.validateOn===tr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==Pt.default&&this.validateOn===tr.blurWithStatusResolutionOnInput||this.validateOn===tr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Os(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Os(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new ws(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
|
${vr(this.errorMessages,o=>I`
|
|
@@ -81,7 +81,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Pt.error:this.warningMessages.length?Pt.warning:Pt.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([D()],e.prototype,"errorMessages",void 0),ue([D()],e.prototype,"warningMessages",void 0),ue([D()],e.prototype,"status",void 0),ue([D()],e.prototype,"focused",void 0),ue([D()],e.prototype,"additionalWarningRules",void 0),ue([D()],e.prototype,"additionalErrorRules",void 0),ue([D()],e.prototype,"forceErrorMessages",void 0),e});var Ao=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Ao(o,e);return!0},
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Pt.error:this.warningMessages.length?Pt.warning:Pt.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([D()],e.prototype,"errorMessages",void 0),ue([D()],e.prototype,"warningMessages",void 0),ue([D()],e.prototype,"status",void 0),ue([D()],e.prototype,"focused",void 0),ue([D()],e.prototype,"additionalWarningRules",void 0),ue([D()],e.prototype,"additionalErrorRules",void 0),ue([D()],e.prototype,"forceErrorMessages",void 0),e});var Ao=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Ao(o,e);return!0},kn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ou=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),Cm(e)}};function Sm(t){this._$AN!==void 0?(kn(this),this._$AM=t,ou(this)):this._$AM=t}function Em(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++)Ao(o[a],!1),kn(o[a]);else o!=null&&(Ao(o,!1),kn(o));else Ao(this,t)}var Cm=t=>{t.type==rt.CHILD&&(t._$AP??=Em,t._$AQ??=Sm)},Fr=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),ou(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ao(this,e),kn(this))}setValue(e){if(Ec(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 As=class extends Fr{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){for(let o=e;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},ME=Ie(As);var nu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(nu||(nu={}));var Om={sm:640,md:768,lg:1024,xl:1280},Rs=class extends Fr{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??(()=>M);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Om[e]}},BE=Ie(Rs);var Nn=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 Ts,_s,Is,Ls,Ro=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Is=(_s=(Ts=window.safari)===null||Ts===void 0?void 0:Ts.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Is!==void 0?Is:"")==="[object SafariRemoteNotification]",wm="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ls=window.ftGlobals)!==null&&Ls!==void 0?Ls:{lit:Mi,litDecorators:Ui,litRepeat:Bi,litClassMap:$i,litStyleMap:Hi,litUnsafeHTML:Vi,wcUtils:{...Wi,...ta,...Gi,...sa,...hs,...ca,...ji,...pa,...ea,...wa,...bs,...Jd,...ds,...Aa,...ua,...Pa,...fs,...Ia,...xs,...vs,...pd,...Qi,...Ma,...Cs,...fa,...Fa,...eu,...hd,...Ua,...ss,...gs,...Ra,..._a,...oa,...ia,...Es,isSafari:Ro,isTouchScreen:wm,setVariable:G}};var iu=T`
|
|
85
85
|
:host {
|
|
86
86
|
display: inline-block;
|
|
87
87
|
}
|
|
@@ -101,7 +101,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
101
101
|
all: unset;
|
|
102
102
|
position: relative;
|
|
103
103
|
}
|
|
104
|
-
`;var xt;(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"})(xt||(xt={}));var
|
|
104
|
+
`;var xt;(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"})(xt||(xt={}));var Mn=class extends CustomEvent{constructor(e){super(xt.requestedTopicFiltered,{detail:e})}},vt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(vt||(vt={}));var Am=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},ks=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ps=Symbol("registerInterval"),Rm=ie(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[Ps]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ps]):this.dispatchEvent(new ks)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ps,Am([D()],r.prototype,"stateManager",void 0),r}),Dn=class extends Rm(we){};var su=Symbol.for(""),Tm=t=>{if(t?.r===su)return t?._$litStatic$},Ns=t=>({_$litStatic$:t,r:su});var au=new Map,Ms=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=Tm(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=au.get(h))===void 0&&(s.raw=s,au.set(h,e=s)),r=c}return t(e,...r)},Ds=Ms(I),jC=Ms(Ii),KC=Ms(Li);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 cu=n.extend("--ft-typography-font-family","",P.titleFont),St=n.extend("--ft-typography-font-family","",P.contentFont),_={fontFamily:St,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")},rr={fontFamily:n.extend("--ft-typography-title-font-family","",cu),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")},or={fontFamily:n.extend("--ft-typography-title-dense-font-family","",cu),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")},nr={fontFamily:n.extend("--ft-typography-subtitle1-font-family","",St),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")},ir={fontFamily:n.extend("--ft-typography-subtitle2-font-family","",St),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")},ar={fontFamily:n.extend("--ft-typography-body1-font-family","",St),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","",St),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")},sr={fontFamily:n.extend("--ft-typography-caption-font-family","",St),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")},cr={fontFamily:n.extend("--ft-typography-breadcrumb-font-family","",St),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")},lr={fontFamily:n.extend("--ft-typography-overline-font-family","",St),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")},Xe={fontFamily:n.extend("--ft-typography-button-font-family","",St),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")},lu=T`
|
|
105
105
|
.ft-typography--title {
|
|
106
106
|
font-family: ${rr.fontFamily};
|
|
107
107
|
font-size: ${rr.fontSize};
|
|
@@ -206,15 +206,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
206
206
|
.ft-typography {
|
|
207
207
|
vertical-align: inherit;
|
|
208
208
|
}
|
|
209
|
-
`;var vu=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
|
|
210
|
-
<${
|
|
209
|
+
`;var vu=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?Ds`
|
|
210
|
+
<${Ns(this.element)}
|
|
211
211
|
part="text"
|
|
212
212
|
class="ft-typography ft-typography--${this.variant}">
|
|
213
213
|
<slot></slot>
|
|
214
|
-
</${
|
|
215
|
-
`:
|
|
214
|
+
</${Ns(this.element)}>
|
|
215
|
+
`:Ds`
|
|
216
216
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}};ge.styles=[lu,du,uu,pu,fu,hu,mu,gu,yu,bu,xu];vu([g()],ge.prototype,"element",void 0);vu([g()],ge.prototype,"variant",void 0);var Su={"ft-typography":ge};
|
|
217
|
+
`}};ge.styles=[lu,du,uu,pu,fu,hu,mu,gu,yu,bu,xu];vu([g()],ge.prototype,"element",void 0);vu([g()],ge.prototype,"variant",void 0);var Su={"ft-typography":ge};q(Su);var To={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","",P.borderRadiusS),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","150px")},Eu=T`
|
|
218
218
|
.ft-tooltip--container {
|
|
219
219
|
display: block;
|
|
220
220
|
}
|
|
@@ -245,15 +245,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
245
245
|
position: relative;
|
|
246
246
|
word-break: break-word;
|
|
247
247
|
}
|
|
248
|
-
`;var _m="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var _o=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};_o.eventName="ui-locale-changed";var Im={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Fe(e.payload)),0))}},O=Qe.get({name:_m,reducers:Im,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 Dn=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},Cu=ie(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(O)}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=>er.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Dn([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Dn([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Dn([G({store:O.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),Dn([G({store:O.name})],e.prototype,"uiLocale",void 0),e});var dr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=O.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=O.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Ur=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:dr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):dr.await()}};var pe=class extends Ur{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 ot,this.cache=e?i.commonCache:new ot}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 Fn=class extends pe{async listMySearches(){let{session:e}=O.getState();return Ve(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Un=class extends pe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Bn=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=O.getState().session;return!!e?.sessionAuthenticated}};var $n=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=O.getState().session;return!!e?.sessionAuthenticated}};var Lm="ft-user-assets",Pm={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ze).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;Fs(t,r,[...Ds(t,r),i]),Ou(t,r,1,o),wu(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Fs(t,r,Ds(t,r).map(i=>i.id===o.id?o:i)),wu(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;Fs(t,r,Ds(t,r).filter(a=>a.id!==i)),Ou(t,r,-1,o)}},Au={[ze.SEARCHES]:"savedSearches",[ze.BOOKMARKS]:"bookmarks",[ze.BOOKS]:void 0,[ze.COLLECTIONS]:void 0},Ds=(t,e)=>{var r;let o=Au[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Fs=(t,e,r)=>{let o=Au[e];o&&(t[o]=r)},Ou=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===ze.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},wu=(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)},Oe=Qe.get({name:Lm,reducers:Pm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Us=class{constructor(e=new Bn,r=new $n){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Un,this.savedSearchesService=new Fn,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.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(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Oe.getState().assetCounts.allAsset[e]!==r.count&&Oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Oe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;e===ze.BOOKMARKS&&r&&Oe.actions.clearBookmarkCountByMap(),Oe.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;Oe.actions.bookmarks(r)}}},Bs=new Us;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Bs);var $s=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $s;var Ru,Br=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},km=Symbol("clearAfterUnitTest"),Hn=class extends en(pe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ru]=()=>{this.defaultMessages={},this.cache=new ot,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.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 yo((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 Br({loadedContexts:e})),this.dispatchEvent(new Br({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Br({loadedContexts:[e]})),this.dispatchEvent(new Br({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Xo(0).then(()=>o()).catch(()=>null)))}};Ru=km;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,zn=window.FluidTopicsCustomI18nService;var Hs=class{highlightHtml(e,r,o){ka(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Hs;var zs=class{isDate(e){var r,o,i,a;return(a=(o=((i=(r=O.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 er.format(e,(o=r?.locale)!==null&&o!==void 0?o:O.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 Io=class{static get(e,r){var o,i,a,s;let c=O.getState(),{lang:d,region:p}=(s=(i=(o=c.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Ke(c.baseUrl,e??20,(a=c.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${d}-${p}`)}};var Hr=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 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 Vs=class{urlToSearchRequest(e){return Io.get().parse(e)}searchRequestToUrl(e){return Io.get().serialize(e)}};window.FluidTopicsUrlService=new Vs;var ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};ur.eventName="before-location-change";var pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};pr.eventName="change";var Ws=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))}},Tu=new Ws;var Vn=class t extends ht{static build(){return new t(window.history,Tu,()=>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 pr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=new ur(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(ur.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(ur.eventName,e)}addHistoryChangeListener(e){this.addEventListener(pr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(pr.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=Vn.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 _u=T`
|
|
249
|
-
`;function Iu(t,e){let{authenticationRequired:r,session:o}=O.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var
|
|
248
|
+
`;var _m="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var _o=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};_o.eventName="ui-locale-changed";var Im={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Fe(e.payload)),0))}},O=Qe.get({name:_m,reducers:Im,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 Fn=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},Cu=ie(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(O)}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=>er.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Fn([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Fn([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Fn([j({store:O.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),Fn([j({store:O.name})],e.prototype,"uiLocale",void 0),e});var dr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=O.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=O.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Ur=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:dr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):dr.await()}};var pe=class extends Ur{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 Un=class extends pe{async listMySearches(){let{session:e}=O.getState();return Ve(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Bn=class extends pe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var $n=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=O.getState().session;return!!e?.sessionAuthenticated}};var Hn=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=O.getState().session;return!!e?.sessionAuthenticated}};var Lm="ft-user-assets",Pm={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ze).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;Us(t,r,[...Fs(t,r),i]),Ou(t,r,1,o),wu(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Us(t,r,Fs(t,r).map(i=>i.id===o.id?o:i)),wu(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;Us(t,r,Fs(t,r).filter(a=>a.id!==i)),Ou(t,r,-1,o)}},Au={[ze.SEARCHES]:"savedSearches",[ze.BOOKMARKS]:"bookmarks",[ze.BOOKS]:void 0,[ze.COLLECTIONS]:void 0},Fs=(t,e)=>{var r;let o=Au[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Us=(t,e,r)=>{let o=Au[e];o&&(t[o]=r)},Ou=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===ze.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},wu=(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:Lm,reducers:Pm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bs=class{constructor(e=new $n,r=new Hn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Bn,this.savedSearchesService=new Un,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.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===ze.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)}}},$s=new Bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$s);var Hs=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hs;var Ru,Br=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},km=Symbol("clearAfterUnitTest"),zn=class extends en(pe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ru]=()=>{this.defaultMessages={},this.cache=new nt,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.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 yo((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 Br({loadedContexts:e})),this.dispatchEvent(new Br({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Br({loadedContexts:[e]})),this.dispatchEvent(new Br({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Xo(0).then(()=>o()).catch(()=>null)))}};Ru=km;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,Vn=window.FluidTopicsCustomI18nService;var zs=class{highlightHtml(e,r,o){Na(e,r,o)}};window.FluidTopicsHighlightHtmlService=new zs;var Vs=class{isDate(e){var r,o,i,a;return(a=(o=((i=(r=O.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 er.format(e,(o=r?.locale)!==null&&o!==void 0?o:O.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 Vs;var Io=class{static get(e,r){var o,i,a,s;let c=O.getState(),{lang:d,region:p}=(s=(i=(o=c.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Ke(c.baseUrl,e??20,(a=c.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${d}-${p}`)}};var Hr=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 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 Ws=class{urlToSearchRequest(e){return Io.get().parse(e)}searchRequestToUrl(e){return Io.get().serialize(e)}};window.FluidTopicsUrlService=new Ws;var ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};ur.eventName="before-location-change";var pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};pr.eventName="change";var Gs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Tu=new Gs;var Wn=class t extends mt{static build(){return new t(window.history,Tu,()=>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 pr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=new ur(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(ur.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(ur.eventName,e)}addHistoryChangeListener(e){this.addEventListener(pr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(pr.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=Wn.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 _u=T`
|
|
249
|
+
`;function Iu(t,e){let{authenticationRequired:r,session:o}=O.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Gn=class extends Ur{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var js=class t extends Jt{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new nt,this.withManualResources=!0,this.userLocaleService=new Gn,this.cleanSessionDebouncer=new Y,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Y(500),this.apiProvider=r??(()=>dr.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",()=>Iu(()=>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 _o(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 pl(O.getState().session,...e)}},Lo=js.build();var fr=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 Po=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 fr(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},Q=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=Lo,this.contextRoot=new Po}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=>$r.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())}};Q.elementDefinitions={};Q.styles=_u;fe([g()],Q.prototype,"baseUrl",void 0);fe([g()],Q.prototype,"tenantId",void 0);fe([g()],Q.prototype,"apiIntegrationIdentifier",void 0);fe([g()],Q.prototype,"apiIntegrationAppVersion",void 0);fe([g()],Q.prototype,"uiLocale",void 0);fe([de(null)],Q.prototype,"availableUiLocales",void 0);fe([de(null)],Q.prototype,"metadataConfiguration",void 0);fe([g({type:Boolean})],Q.prototype,"editorMode",void 0);fe([g({type:Boolean})],Q.prototype,"noCustom",void 0);fe([g({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomCode",void 0);fe([g({type:Boolean})],Q.prototype,"withManualResources",void 0);fe([g({type:Boolean})],Q.prototype,"navigatorOnline",void 0);fe([g({type:Boolean})],Q.prototype,"forcedOffline",void 0);fe([g({type:Boolean})],Q.prototype,"authenticationRequired",void 0);fe([de([])],Q.prototype,"messageContexts",void 0);fe([de(void 0)],Q.prototype,"session",void 0);var Lu={"ft-app-context":Q};
|
|
252
|
-
`;var Vr=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
|
|
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=>$r.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())}};Q.elementDefinitions={};Q.styles=_u;fe([g()],Q.prototype,"baseUrl",void 0);fe([g()],Q.prototype,"tenantId",void 0);fe([g()],Q.prototype,"apiIntegrationIdentifier",void 0);fe([g()],Q.prototype,"apiIntegrationAppVersion",void 0);fe([g()],Q.prototype,"uiLocale",void 0);fe([de(null)],Q.prototype,"availableUiLocales",void 0);fe([de(null)],Q.prototype,"metadataConfiguration",void 0);fe([g({type:Boolean})],Q.prototype,"editorMode",void 0);fe([g({type:Boolean})],Q.prototype,"noCustom",void 0);fe([g({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);fe([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomCode",void 0);fe([g({type:Boolean})],Q.prototype,"withManualResources",void 0);fe([g({type:Boolean})],Q.prototype,"navigatorOnline",void 0);fe([g({type:Boolean})],Q.prototype,"forcedOffline",void 0);fe([g({type:Boolean})],Q.prototype,"authenticationRequired",void 0);fe([de([])],Q.prototype,"messageContexts",void 0);fe([de(void 0)],Q.prototype,"session",void 0);var Lu={"ft-app-context":Q};q(Lu);var Ks=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,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-]+$/)}},zr=new Ks;var Dm=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},No=Symbol("i18nAttributes"),Pu=Symbol("i18nListAttributes"),Mo=Symbol("i18nProperties"),jn=Symbol("i18nContexts"),ko=Symbol("i18nUnsubs"),Zn=ie(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?Vn:$r}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(zr.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[No])===null||s===void 0||s.forEach((f,h)=>d[h]=p(f,h,d[h])),(c=this[Pu])===null||c===void 0||c.forEach((f,h)=>{var m;return d[h]=(m=d[h])===null||m===void 0?void 0:m.map(x=>p(f,h,x))})}updateI18nProperties(a){var s;(s=this[Mo])===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[jn].set(d,{isCustomContext:c}),this[ko].has(d)||this[ko].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(a){return this[jn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ko].forEach(a=>a()),this[ko].clear()}}return e=jn,r=ko,Dm([g({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Kn=class extends Zn(H){},qn=class extends Zn(we){};var qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?zr.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Fm=new qs;var ku=(t,e)=>(r,o)=>{var i;r.constructor.createProperty(o,{type:Object,hasChanged:He,converter:zr,...e}),r[No]=(i=r[No])!==null&&i!==void 0?i:new Map,r[No].set(o,t??{})};var Yn=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?Vn:$r}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 Nu=(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[Mo]=(a=r[Mo])!==null&&a!==void 0?a:new Map,r[Mo].set(o,s)};var Mu=T`
|
|
252
|
+
`;var Vr=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 qn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:M: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=Mu;Vr([
|
|
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=Mu;Vr([j()],Ge.prototype,"editorMode",void 0);Vr([g()],Ge.prototype,"context",void 0);Vr([g()],Ge.prototype,"key",void 0);Vr([de([])],Ge.prototype,"args",void 0);Vr([g()],Ge.prototype,"defaultMessage",void 0);Vr([D()],Ge.prototype,"editorMessage",void 0);var Du={"ft-i18n":Ge};q(Du);var Je=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},ae=class extends Kn{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 Y,this.revealDebouncer=new Y,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&&ho(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 ${
|
|
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&&ho(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 ${P.transitionDuration}, left ${P.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return ro(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ae.elementDefinitions={"ft-typography":ge};ae.styles=Eu;Je([ku()],ae.prototype,"text",void 0);Je([g({type:Boolean})],ae.prototype,"manual",void 0);Je([g({type:Boolean})],ae.prototype,"inline",void 0);Je([ot()],ae.prototype,"delay",void 0);Je([g()],ae.prototype,"position",void 0);Je([de([])],ae.prototype,"ignoreMatchingElements",void 0);Je([Fi()],ae.prototype,"slotNodes",void 0);Je([te(".ft-tooltip--container")],ae.prototype,"container",void 0);Je([te(".ft-tooltip")],ae.prototype,"tooltip",void 0);Je([te(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);Je([D()],ae.prototype,"visible",void 0);var Fu={"ft-tooltip":ae};q(Fu);var Uu=n.extend("--ft-ripple-color","",P.colorContent),ye={color:Uu,backgroundColor:n.extend("--ft-ripple-background-color","",Uu),opacityContentOnSurfacePressed:n.external(P.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:n.external(P.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:n.external(P.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:n.external(P.opacityContentOnSurfaceSelected,"Design system"),borderRadius:n.create("--ft-ripple-border-radius","","SIZE","0px")},Bu=n.extend("--ft-ripple-color","",P.colorPrimary),$u={color:Bu,backgroundColor:n.extend("--ft-ripple-background-color","",Bu)},Hu=n.extend("--ft-ripple-color","",P.colorSecondary),zu={color:Hu,backgroundColor:n.extend("--ft-ripple-background-color","",Hu)},Vu=T`
|
|
272
272
|
:host {
|
|
273
273
|
display: contents;
|
|
274
274
|
}
|
|
@@ -281,7 +281,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
281
281
|
|
|
282
282
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
283
283
|
overflow: hidden;
|
|
284
|
-
border-radius: ${
|
|
284
|
+
border-radius: ${ye.borderRadius};
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.ft-ripple .ft-ripple--background,
|
|
@@ -315,11 +315,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-ripple .ft-ripple--background {
|
|
318
|
-
background-color: ${
|
|
318
|
+
background-color: ${ye.backgroundColor};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-ripple .ft-ripple--effect {
|
|
322
|
-
background-color: ${
|
|
322
|
+
background-color: ${ye.color};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -365,22 +365,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
368
|
-
opacity: ${
|
|
368
|
+
opacity: ${ye.opacityContentOnSurfaceHover};
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
372
|
-
opacity: ${
|
|
372
|
+
opacity: ${ye.opacityContentOnSurfaceSelected};
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
376
|
-
opacity: ${
|
|
376
|
+
opacity: ${ye.opacityContentOnSurfaceFocused};
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
380
|
-
opacity: ${
|
|
380
|
+
opacity: ${ye.opacityContentOnSurfacePressed};
|
|
381
381
|
transform: translate(-50%, -50%) scale(1);
|
|
382
382
|
}
|
|
383
|
-
`;var Te=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},
|
|
383
|
+
`;var Te=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},K=class extends H{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Y(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Y(10),this.moveRipple=e=>{var r,o;let{x:i,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return I`
|
|
384
384
|
<style>
|
|
385
385
|
.ft-ripple .ft-ripple--effect {
|
|
386
386
|
left: ${this.originX}px;
|
|
@@ -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()}};
|
|
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=Vu;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([D()],K.prototype,"hovered",void 0);Te([D()],K.prototype,"focused",void 0);Te([D()],K.prototype,"pressed",void 0);Te([D()],K.prototype,"rippling",void 0);Te([D()],K.prototype,"originX",void 0);Te([D()],K.prototype,"originY",void 0);Te([te(".ft-ripple")],K.prototype,"ripple",void 0);Te([te(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var Wu={"ft-ripple":K};q(Wu);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")},Gu=[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
|
-
`,Yt];var
|
|
442
|
+
`,Yt];var ut;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ut||(ut={}));var Qn;(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="󨃱"})(Qn||(Qn={}));var C;(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=""})(C||(C={}));var wT=new Map([...["abw"].map(t=>[t,C.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,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.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,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.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,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.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,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var AT={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var Do=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=M}render(){let e=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=e!==ut.material||!!this.value;return I`
|
|
443
443
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
444
|
-
${
|
|
444
|
+
${zi(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 ut.file_format:this.resolvedIcon=(e=C[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case ut.material:this.resolvedIcon=this.value||M;break;default:this.resolvedIcon=(r=Qn[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};be.elementDefinitions={};be.styles=Gu;Do([g()],be.prototype,"variant",void 0);Do([g()],be.prototype,"value",void 0);Do([g({reflect:!0,attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);Do([D()],be.prototype,"resolvedIcon",void 0);Do([te("slot")],be.prototype,"slottedContent",void 0);var ju={"ft-icon":be};q(ju);var hr={color:n.extend("--ft-loader-color","",P.colorPrimary),size:n.create("--ft-loader-size","","SIZE","80px")},Ku=T`
|
|
448
448
|
:host {
|
|
449
449
|
line-height: 0;
|
|
450
450
|
}
|
|
@@ -513,14 +513,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
513
513
|
transform: translate(calc(0.35 * ${hr.size}), 0);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
`;var mr=class extends
|
|
516
|
+
`;var mr=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
|
-
`}};mr.styles=Ku;var qu={"ft-loader":mr};
|
|
523
|
+
`}};mr.styles=Ku;var qu={"ft-loader":mr};q(qu);var Wr=t=>t??M;var Zu=n.extend("--ft-button-color","",P.colorPrimary),X={backgroundColor:n.extend("--ft-button-background-color","",P.colorSurface),borderRadius:n.extend("--ft-button-border-radius","",P.borderRadiusL),color:Zu,fontSize:n.extend("--ft-button-font-size","",Xe.fontSize),iconSize:n.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:n.extend("--ft-button-ripple-color","",Zu),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(P.colorOpacityDisabled,"Design system")},Yu=n.extend("--ft-button-primary-color","",n.extend("--ft-button-color","",P.colorOnPrimary)),Zs={backgroundColor:n.extend("--ft-button-primary-background-color","",n.extend("--ft-button-background-color","",P.colorPrimary)),color:Yu,rippleColor:n.extend("--ft-button-primary-ripple-color","",Yu)},et={borderRadius:n.extend("--ft-button-dense-border-radius","",n.extend("--ft-button-border-radius","",P.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")},Qu=T`
|
|
524
524
|
:host {
|
|
525
525
|
display: inline-block;
|
|
526
526
|
max-width: 100%;
|
|
@@ -529,33 +529,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
529
529
|
|
|
530
530
|
.ft-button {
|
|
531
531
|
box-shadow: 0px 0px 0px transparent;
|
|
532
|
-
border: 0px solid transparent;
|
|
533
532
|
text-shadow: 0px 0px 0px transparent;
|
|
534
|
-
font-size: ${
|
|
533
|
+
font-size: ${X.fontSize};
|
|
535
534
|
text-decoration: none;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.ft-button:hover {
|
|
539
|
-
box-shadow: 0px 0px 0px transparent;
|
|
540
|
-
border: 0px solid transparent;
|
|
541
|
-
text-shadow: 0px 0px 0px transparent;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.ft-button:active {
|
|
545
|
-
outline: none;
|
|
546
|
-
border: none;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.ft-button:focus {
|
|
550
|
-
outline: none;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.ft-button:focus-visible {
|
|
554
|
-
outline: 2px solid ${k.colorPrimary};
|
|
555
|
-
outline-offset: 2px;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.ft-button {
|
|
559
535
|
position: relative;
|
|
560
536
|
display: flex;
|
|
561
537
|
justify-content: center;
|
|
@@ -565,99 +541,128 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
565
541
|
border: none;
|
|
566
542
|
pointer-events: auto;
|
|
567
543
|
|
|
568
|
-
--button-internal-line-height: max(calc(${
|
|
569
|
-
--button-internal-color: ${
|
|
570
|
-
${
|
|
571
|
-
${
|
|
572
|
-
${
|
|
544
|
+
--button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
545
|
+
--button-internal-color: ${X.color};
|
|
546
|
+
${G(Ue.size,X.iconSize)};
|
|
547
|
+
${G(ye.color,X.rippleColor)};
|
|
548
|
+
${G(ye.borderRadius,X.borderRadius)};
|
|
573
549
|
|
|
574
|
-
border-radius: ${
|
|
575
|
-
padding: ${
|
|
576
|
-
background-color: ${
|
|
550
|
+
border-radius: ${X.borderRadius};
|
|
551
|
+
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
552
|
+
background-color: ${X.backgroundColor};
|
|
577
553
|
color: var(--button-internal-color);
|
|
578
|
-
}
|
|
579
554
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
555
|
+
.ft-button--label {
|
|
556
|
+
position: relative;
|
|
557
|
+
overflow: hidden;
|
|
558
|
+
white-space: nowrap;
|
|
559
|
+
text-overflow: ellipsis;
|
|
560
|
+
display: block;
|
|
561
|
+
margin: 0 ${X.iconPadding};
|
|
562
|
+
${G(Xe.fontSize,"1em")};
|
|
563
|
+
${G(Xe.lineHeight,"var(--button-internal-line-height)")};
|
|
564
|
+
}
|
|
584
565
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
566
|
+
[part="icon"] {
|
|
567
|
+
flex-shrink: 0;
|
|
568
|
+
position: relative;
|
|
569
|
+
}
|
|
590
570
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
571
|
+
&:hover {
|
|
572
|
+
box-shadow: 0px 0px 0px transparent;
|
|
573
|
+
border: 0px solid transparent;
|
|
574
|
+
text-shadow: 0px 0px 0px transparent;
|
|
594
575
|
|
|
595
|
-
.ft-button:not([disabled]):hover {
|
|
596
|
-
cursor: pointer;
|
|
597
|
-
}
|
|
598
576
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
577
|
+
&:not([disabled]) {
|
|
578
|
+
cursor: pointer;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
602
581
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
582
|
+
&:active {
|
|
583
|
+
outline: none;
|
|
584
|
+
border: none;
|
|
585
|
+
}
|
|
606
586
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
587
|
+
&:focus {
|
|
588
|
+
outline: none;
|
|
589
|
+
}
|
|
611
590
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
}
|
|
591
|
+
&:focus-visible {
|
|
592
|
+
outline: 2px solid ${P.colorPrimary};
|
|
593
|
+
outline-offset: 2px;
|
|
594
|
+
}
|
|
617
595
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
text-overflow: ellipsis;
|
|
623
|
-
display: block;
|
|
624
|
-
margin: 0 ${te.iconPadding};
|
|
625
|
-
${q(Xe.fontSize,"1em")};
|
|
626
|
-
${q(Xe.lineHeight,"var(--button-internal-line-height)")};
|
|
627
|
-
}
|
|
596
|
+
&[disabled] {
|
|
597
|
+
filter: grayscale(1);
|
|
598
|
+
opacity: ${X.opacityDisabled};
|
|
599
|
+
}
|
|
628
600
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
601
|
+
&.ft-button--primary {
|
|
602
|
+
background-color: ${Zs.backgroundColor};
|
|
603
|
+
--button-internal-color: ${Zs.color};
|
|
604
|
+
${G(ye.color,Zs.rippleColor)};
|
|
605
|
+
}
|
|
632
606
|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
607
|
+
&.ft-button--outlined {
|
|
608
|
+
border: 1px solid var(--button-internal-color);
|
|
609
|
+
padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
|
|
610
|
+
}
|
|
636
611
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
612
|
+
&.ft-button--dense {
|
|
613
|
+
padding: ${et.verticalPadding} ${et.horizontalPadding};
|
|
614
|
+
border-radius: ${et.borderRadius};
|
|
615
|
+
${G(ye.borderRadius,et.borderRadius)};
|
|
641
616
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
617
|
+
.ft-button--label {
|
|
618
|
+
margin: 0 ${et.iconPadding};
|
|
619
|
+
}
|
|
620
|
+
}
|
|
646
621
|
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
622
|
+
&.ft-button--dense.ft-button--outlined {
|
|
623
|
+
padding: calc(${et.verticalPadding} - 1px) calc(${et.horizontalPadding} - 1px);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
&.ft-button--round {
|
|
627
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${X.verticalPadding});
|
|
628
|
+
${G(ye.borderRadius,T`calc(var(--button-internal-line-height) / 2 + ${X.verticalPadding})`)};
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
&.ft-button--round.ft-button--dense {
|
|
632
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${et.verticalPadding});
|
|
633
|
+
${G(ye.borderRadius,T`calc(var(--button-internal-line-height) / 2 + ${et.verticalPadding})`)};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
&.ft-button--no-text {
|
|
637
|
+
.ft-button--label {
|
|
638
|
+
margin: 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
padding: ${X.verticalPadding};
|
|
642
|
+
|
|
643
|
+
&.ft-button--dense {
|
|
644
|
+
padding: ${et.verticalPadding};
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
&.ft-button--outlined {
|
|
648
|
+
padding: calc(${X.verticalPadding} - 1px);
|
|
649
|
+
}
|
|
651
650
|
|
|
652
|
-
|
|
653
|
-
|
|
651
|
+
&.ft-button--outlined.ft-button--dense {
|
|
652
|
+
padding: calc(${et.verticalPadding} - 1px);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
&:not(.ft-button--trailing-icon) [part="label"] {
|
|
657
|
+
order: 2;
|
|
658
|
+
}
|
|
654
659
|
}
|
|
655
660
|
|
|
656
661
|
ft-loader {
|
|
657
|
-
${
|
|
658
|
-
${
|
|
662
|
+
${G(hr.size,X.iconSize)};
|
|
663
|
+
${G(hr.color,"var(--button-internal-color)")};
|
|
659
664
|
}
|
|
660
|
-
`;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
|
|
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 ps(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.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":Ro},a=I`
|
|
661
666
|
<ft-ripple part="ripple"
|
|
662
667
|
?disabled=${this.isDisabled()}
|
|
663
668
|
?activated=${this.activated}
|
|
@@ -698,7 +703,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
698
703
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
699
704
|
`:I`
|
|
700
705
|
<slot part="icon" name="icon"></slot>
|
|
701
|
-
`}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":
|
|
706
|
+
`}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":ae,"ft-icon":be,"ft-loader":mr,"ft-typography":ge};B.styles=[Da,Qu,Yt];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()],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([te(".ft-button")],B.prototype,"button",void 0);Z([te(".ft-button--label")],B.prototype,"labelContainer",void 0);Z([D()],B.prototype,"hasTextContent",void 0);Z([te(".ft-button--label slot")],B.prototype,"slottedContent",void 0);Z([te("[part=tooltip]")],B.prototype,"tooltip",void 0);var Xu={"ft-button":B};q(Xu);var Ju=n.extend("--ft-chip-color","",P.colorOnSurface),_e={backgroundColor:n.extend("--ft-chip-background-color","",P.colorSurface),color:Ju,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","",Ju),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","",P.colorOutline),opacityDisabled:n.external(P.colorOpacityDisabled,"Design system")},ep=n.extend("--ft-chip-highlighted-color","",n.extend("--ft-chip-color","",P.colorOnPrimary)),Ys={backgroundColor:n.extend("--ft-chip-highlighted-background-color","",n.extend("--ft-chip-background-color","",P.colorPrimary)),color:ep,rippleColor:n.extend("--ft-chip-highlighted-ripple-color","",ep)},tp={horizontalPadding:n.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:n.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},rp=[Yt,T`
|
|
702
707
|
:host {
|
|
703
708
|
display: inline-block;
|
|
704
709
|
max-width: 100%;
|
|
@@ -717,7 +722,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
717
722
|
--chip-internal-font-size: ${_e.fontSize};
|
|
718
723
|
--chip-internal-font-weight: ${_e.fontWeight};
|
|
719
724
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
720
|
-
${
|
|
725
|
+
${G(Ue.size,_e.iconSize)};
|
|
721
726
|
--chip-internal-vertical-padding: ${_e.verticalPadding};
|
|
722
727
|
--chip-internal-horizontal-padding: ${_e.horizontalPadding};
|
|
723
728
|
--chip-internal-icon-padding: 3px;
|
|
@@ -725,7 +730,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
725
730
|
|
|
726
731
|
border: 1px solid ${_e.borderColor};
|
|
727
732
|
color: ${_e.color};
|
|
728
|
-
${
|
|
733
|
+
${G(ye.color,_e.rippleColor)};
|
|
729
734
|
border-radius: var(${Mt(_e.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
730
735
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
731
736
|
background-color: ${_e.backgroundColor};
|
|
@@ -757,9 +762,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
757
762
|
.ft-chip--highlighted {
|
|
758
763
|
border: none;
|
|
759
764
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
760
|
-
background-color: ${
|
|
761
|
-
${
|
|
762
|
-
color: ${
|
|
765
|
+
background-color: ${Ys.backgroundColor};
|
|
766
|
+
${G(ye.color,Ys.rippleColor)};
|
|
767
|
+
color: ${Ys.color};
|
|
763
768
|
}
|
|
764
769
|
|
|
765
770
|
.ft-chip--clickable {
|
|
@@ -768,7 +773,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
768
773
|
}
|
|
769
774
|
|
|
770
775
|
.ft-chip:focus {
|
|
771
|
-
outline: 2px solid ${
|
|
776
|
+
outline: 2px solid ${P.colorPrimary};
|
|
772
777
|
outline-offset: 2px;
|
|
773
778
|
}
|
|
774
779
|
|
|
@@ -790,9 +795,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
790
795
|
}
|
|
791
796
|
|
|
792
797
|
.ft-chip--icon-button {
|
|
793
|
-
${
|
|
794
|
-
${
|
|
795
|
-
${
|
|
798
|
+
${G(X.iconSize,_e.iconSize)};
|
|
799
|
+
${G(X.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
800
|
+
${G(X.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
796
801
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
797
802
|
}
|
|
798
803
|
|
|
@@ -800,9 +805,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
800
805
|
vertical-align: bottom;
|
|
801
806
|
display: block;
|
|
802
807
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
803
|
-
${
|
|
804
|
-
${
|
|
805
|
-
${
|
|
808
|
+
${G(De.fontSize,"var(--chip-internal-font-size)")};
|
|
809
|
+
${G(De.fontWeight,"var(--chip-internal-font-weight)")};
|
|
810
|
+
${G(De.lineHeight,"var(--chip-internal-content-height)")};
|
|
806
811
|
}
|
|
807
812
|
|
|
808
813
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -838,19 +843,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
838
843
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
839
844
|
order: -1;
|
|
840
845
|
}
|
|
841
|
-
`];var
|
|
846
|
+
`];var Se=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},Xn=class extends CustomEvent{constructor(){super("icon-click")}},J=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":Ro};return I`
|
|
842
847
|
<div class="${Le(r)}"
|
|
843
|
-
aria-label="${this.getLabel()}"
|
|
848
|
+
aria-label="${this.labelOnIconOnly?M:this.getLabel()}"
|
|
844
849
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
845
850
|
@keyup=${this.onKeyUp}
|
|
846
851
|
part="chip">
|
|
847
852
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
848
|
-
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
853
|
+
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
854
|
+
aria-hidden="${this.labelOnIconOnly?"true":M}">
|
|
849
855
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
850
856
|
</ft-typography>
|
|
851
857
|
${this.internalIcon?this.renderIcon():null}
|
|
852
858
|
</div>
|
|
853
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?I`
|
|
859
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?I`
|
|
854
860
|
<ft-button round
|
|
855
861
|
class="ft-chip--icon-button"
|
|
856
862
|
@click=${this.onIconClick}
|
|
@@ -865,7 +871,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
865
871
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
866
872
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
867
873
|
</div>
|
|
868
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
874
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Xn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Xn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Jo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};J.elementDefinitions={"ft-ripple":K,"ft-typography":ge,"ft-icon":be,"ft-button":B};J.styles=rp;Se([g({type:Boolean})],J.prototype,"highlighted",void 0);Se([g({type:Boolean})],J.prototype,"removable",void 0);Se([g({type:Boolean})],J.prototype,"disabled",void 0);Se([g({type:Boolean})],J.prototype,"clickable",void 0);Se([g({type:Boolean})],J.prototype,"iconClickable",void 0);Se([g({type:Boolean})],J.prototype,"dense",void 0);Se([g({type:Boolean})],J.prototype,"multiLine",void 0);Se([g()],J.prototype,"label",void 0);Se([g()],J.prototype,"iconLabel",void 0);Se([g({type:Boolean})],J.prototype,"hideIconTooltip",void 0);Se([g({type:Boolean})],J.prototype,"accessibleLabelOnIcon",void 0);Se([g()],J.prototype,"icon",void 0);Se([g()],J.prototype,"iconVariant",void 0);Se([g({type:Boolean})],J.prototype,"trailingIcon",void 0);Se([g()],J.prototype,"typographyVariant",void 0);Se([te("ft-typography slot")],J.prototype,"slottedContent",void 0);var op={"ft-chip":J};q(op);var Um={iconColor:n.extend("--ft-floating-menu-icon-color","",P.colorOnSurfaceMedium)},np=T`
|
|
869
875
|
.ft-floating-menu-item {
|
|
870
876
|
cursor: pointer;
|
|
871
877
|
display: flex;
|
|
@@ -900,7 +906,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
900
906
|
word-break: break-word;
|
|
901
907
|
hyphens: auto;
|
|
902
908
|
}
|
|
903
|
-
`;var Gr=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},
|
|
909
|
+
`;var Gr=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},Jn=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Ee=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`
|
|
904
910
|
<div class="${Le(this.floatingClasses)}"
|
|
905
911
|
tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
|
|
906
912
|
aria-disabled="${this.disabled}"
|
|
@@ -916,7 +922,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
916
922
|
<slot></slot>
|
|
917
923
|
</ft-typography>
|
|
918
924
|
</div>
|
|
919
|
-
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new
|
|
925
|
+
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Jn(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Jn(this.value)))}};Ee.elementDefinitions={"ft-icon":be,"ft-ripple":K,"ft-typography":ge};Ee.styles=np;Gr([g()],Ee.prototype,"iconVariant",void 0);Gr([g()],Ee.prototype,"icon",void 0);Gr([g()],Ee.prototype,"value",void 0);Gr([g({type:Boolean})],Ee.prototype,"notFocusable",void 0);Gr([g({type:Boolean})],Ee.prototype,"disabled",void 0);Gr([Yi()],Ee.prototype,"onKeyDown",null);var kt={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","",P.colorOnSurfaceHigh),colorSurface:n.external(P.colorSurface,"Design system"),menuElevation:n.external(P.elevation02,"Design system"),borderRadiusS:n.external(P.borderRadiusS,"Design system")},ip=T`
|
|
920
926
|
.ft-floating-menu {
|
|
921
927
|
color: ${kt.textColor};
|
|
922
928
|
display: contents;
|
|
@@ -947,7 +953,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
947
953
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
948
954
|
display: block;
|
|
949
955
|
}
|
|
950
|
-
`;var
|
|
956
|
+
`;var Ce=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},ei=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var ti=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ee=class extends H{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=ut.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 ei(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`
|
|
951
957
|
<div part="container" class="${Le(e)}" @keydown=${this.onKeyDown}>
|
|
952
958
|
<slot name="toggle"
|
|
953
959
|
part="toggle"
|
|
@@ -978,7 +984,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
978
984
|
</div>
|
|
979
985
|
</div>
|
|
980
986
|
</div>
|
|
981
|
-
`}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
|
|
987
|
+
`}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 ti(e.detail)),this.closeMenu()}onContentClick(e){ro(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 ho(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())}};ee.elementDefinitions={"ft-floating-menu-item":Ee,"ft-button":B};ee.styles=ip;Ce([g()],ee.prototype,"horizontalAlignment",void 0);Ce([g()],ee.prototype,"verticalAlignment",void 0);Ce([de([])],ee.prototype,"closeMenuMatchers",void 0);Ce([g({type:Boolean})],ee.prototype,"primary",void 0);Ce([g()],ee.prototype,"label",void 0);Ce([g()],ee.prototype,"tooltipPosition",void 0);Ce([g()],ee.prototype,"icon",void 0);Ce([g()],ee.prototype,"iconVariant",void 0);Ce([g()],ee.prototype,"text",void 0);Ce([g({type:Boolean})],ee.prototype,"disabled",void 0);Ce([D()],ee.prototype,"menuOpen",void 0);Ce([D()],ee.prototype,"forceMenuOpen",void 0);Ce([te(".ft-floating-menu")],ee.prototype,"container",void 0);Ce([te(".ft-floating-menu--wrapper")],ee.prototype,"menuWrapper",void 0);Ce([te("#actions-button")],ee.prototype,"actionButton",void 0);Ce([Di({slot:"toggle"})],ee.prototype,"customToggle",void 0);var Bm={color:n.extend("--ft-floating-menu-label-color","",P.colorOnSurfaceMedium)},ap=T`
|
|
982
988
|
.ft-floating-menu-label {
|
|
983
989
|
padding: 4px 8px;
|
|
984
990
|
}
|
|
@@ -991,18 +997,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
991
997
|
overflow: hidden;
|
|
992
998
|
color: ${Bm.color}
|
|
993
999
|
}
|
|
994
|
-
`;var Nt=class extends
|
|
1000
|
+
`;var Nt=class extends H{render(){return I`
|
|
995
1001
|
<div class="ft-floating-menu-label">
|
|
996
1002
|
<ft-typography variant="${We.caption}">
|
|
997
1003
|
<slot></slot>
|
|
998
1004
|
</ft-typography>
|
|
999
1005
|
</div>
|
|
1000
|
-
`}};Nt.elementDefinitions={"ft-typography":ge};Nt.styles=ap;var sp={"ft-floating-menu":
|
|
1001
|
-
`;var Hm={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]}},lp=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:Hm});var Xs=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,A)=>(A?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,A)=>{x(E,S[A])}),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}},ti=class{convertPaginatedToc(e,r){return new Xs(e,r).build()}};var ri=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 Ve((r=(e=O.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=O.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 vt.FEEDBACK:return Ve(r??[],W.FEEDBACK_USER);case vt.RATING:return Ve(r??[],W.RATING_USER);case vt.PRINT:return Ve(r??[],W.PRINT_USER);case vt.BOOKMARK:return!!r?.sessionAuthenticated;case vt.COLLECTIONS:return Ve(r??[],W.COLLECTION_USER);case vt.PERSONAL_BOOKS:return Ve(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 oi=class t extends ri{static async build(e){return new t(new ti,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 zm="topicPivot";function ni(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(zm,o)}),r.href}var ii=class t{static build(e,r){return new t(lp(e.trim()||"context"),r??oi.build)}loaded(){return ji(()=>this._loaded)}constructor(e,r,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Y(10),this.analyticsEventsService=i??new Hr,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 to(()=>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 Nn(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(xt.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(xt.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=O.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,i;await this.loaded();let a=await to(()=>{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(xt.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=At.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=io(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=ni(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=O.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:rn.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}=O.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 ai=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},si=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},ci=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},li=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},di=class extends Event{constructor(){super("ft-reader-map-not-found")}},ui=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},pi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},fi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var dp=T`
|
|
1002
|
-
`;var Fo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Fo||(Fo={}));var Vm={setRequest:(t,e)=>{t.request=e.payload}},up=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:Vm});var hi=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 getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}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 mi=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},gi=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},yi=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o},composed:!0,bubbles:!0})}},Uo=class t extends Event{constructor(){super(t.eventName)}};Uo.eventName="search-context-clear-all-filters";var Wm=t=>t.request.virtualField===zt.TITLE_ONLY&&t.request.scope===Or.DOCUMENTS,Gm=t=>t.request.keywordMatch==Ot.MANDATORY,Bo=class t extends Jt{static build(e,r){return new t(up(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 kn(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==Fo.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(Ve(O.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.localesDebouncer=new Y(10),this.searchDebouncer=new Y(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=O.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new Y(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=O.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new hi,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new Lt(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Lt(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new Lt(O,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),O.addEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(O.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),O.removeEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return O.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,o;let i=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=c=>i.some(d=>d.lang==c);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=Lo.store.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Lo.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:ft(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:zt.TITLE_ONLY,scope:Or.DOCUMENTS},!0):this.updateSearchRequest({virtualField:zt.EVERYWHERE,scope:Or.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Wm(this.store.getState())}get keywordMatch(){return Gm(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Uo)}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)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,o,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Fo.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=Er(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=Er(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 Js=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},tc=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},pp=Symbol("registerInterval"),ec=Symbol("registerAttempts"),jm=40,Km=ie(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[ec]=0,this.tryToRegisterToContext(),this[pp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ec]>jm?window.clearInterval(this[pp]):(this[ec]++,this.dispatchEvent(new tc(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Js([D()],e.prototype,"stateManager",void 0),Js([D({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),Js([g()],e.prototype,"searchRegistrationId",void 0),e}),fp=class extends Km(Ce){};function bi(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function xi(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 vi=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 Hr,this.resultsWatcher=is(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}=O.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}=O.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ht.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:bi(e.metadataFilters),facets:e.metadataFilters.map(a=>xi(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:Ht.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==nt.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ht.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:bi(o.metadataFilters),facets:o.metadataFilters.map(s=>xi(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==nt.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ht.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:bi(o.metadataFilters),facets:o.metadataFilters.map(s=>xi(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 nt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ct.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ct.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ct.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nt.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ct.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nt.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ct.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=wt(e))===null||r===void 0?void 0:r.originUrl}};var se=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},V=class extends Ce{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Bo.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 vi(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.addStore(O)}render(){return I`
|
|
1006
|
+
`}};Nt.elementDefinitions={"ft-typography":ge};Nt.styles=ap;var sp={"ft-floating-menu":ee,"ft-floating-menu-item":Ee,"ft-floating-menu-label":Nt};q(sp);function $m(t){var e;return((e=wt(t))===null||e===void 0?void 0:e.openMode)===on.EXTERNAL}function Qs(t,e){return $m(t)?wt(t).originUrl:io(t,e)}var Xs=Yn.build("designedReaderMapMetadata");var cp=T`
|
|
1007
|
+
`;var Hm={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]}},lp=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:Hm});var Js=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}},ri=class{convertPaginatedToc(e,r){return new Js(e,r).build()}};var oi=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 Ve((r=(e=O.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(k.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=O.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 vt.FEEDBACK:return Ve(r??[],W.FEEDBACK_USER);case vt.RATING:return Ve(r??[],W.RATING_USER);case vt.PRINT:return Ve(r??[],W.PRINT_USER);case vt.BOOKMARK:return!!r?.sessionAuthenticated;case vt.COLLECTIONS:return Ve(r??[],W.COLLECTION_USER);case vt.PERSONAL_BOOKS:return Ve(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 ni=class t extends oi{static async build(e){return new t(new ri,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 zm="topicPivot";function ii(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(zm,o)}),r.href}var ai=class t{static build(e,r){return new t(lp(e.trim()||"context"),r??ni.build)}loaded(){return Ki(()=>this._loaded)}constructor(e,r,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Y(10),this.analyticsEventsService=i??new Hr,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 to(()=>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 Mn(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(xt.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(xt.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=O.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,i;await this.loaded();let a=await to(()=>{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(xt.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=At.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=io(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=ii(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=O.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:rn.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}=O.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 si=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},ci=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},li=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},di=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},ui=class extends Event{constructor(){super("ft-reader-map-not-found")}},pi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},fi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},hi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var dp=T`
|
|
1008
|
+
`;var Fo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Fo||(Fo={}));var Vm={setRequest:(t,e)=>{t.request=e.payload}},up=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:Vm});var mi=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 getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}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 gi=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},yi=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},bi=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o},composed:!0,bubbles:!0})}},Uo=class t extends Event{constructor(){super(t.eventName)}};Uo.eventName="search-context-clear-all-filters";var Wm=t=>t.request.virtualField===zt.TITLE_ONLY&&t.request.scope===Or.DOCUMENTS,Gm=t=>t.request.keywordMatch==Ot.MANDATORY,Bo=class t extends Jt{static build(e,r){return new t(up(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 Nn(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==Fo.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(Ve(O.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.localesDebouncer=new Y(10),this.searchDebouncer=new Y(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=O.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new Y(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=O.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new mi,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new Lt(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Lt(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new Lt(O,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),O.addEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(O.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),O.removeEventListener(Fe.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return O.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,o;let i=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=c=>i.some(d=>d.lang==c);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=Lo.store.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Lo.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:ht(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:zt.TITLE_ONLY,scope:Or.DOCUMENTS},!0):this.updateSearchRequest({virtualField:zt.EVERYWHERE,scope:Or.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Wm(this.store.getState())}get keywordMatch(){return Gm(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Uo)}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)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,o,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Fo.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=Er(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=Er(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 ec=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},rc=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},pp=Symbol("registerInterval"),tc=Symbol("registerAttempts"),jm=40,Km=ie(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[tc]=0,this.tryToRegisterToContext(),this[pp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[tc]>jm?window.clearInterval(this[pp]):(this[tc]++,this.dispatchEvent(new rc(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ec([D()],e.prototype,"stateManager",void 0),ec([D({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),ec([g()],e.prototype,"searchRegistrationId",void 0),e}),fp=class extends Km(we){};function xi(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function vi(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 Si=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 Hr,this.resultsWatcher=as(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}=O.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}=O.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ht.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:xi(e.metadataFilters),facets:e.metadataFilters.map(a=>vi(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:Ht.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:Ht.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:xi(o.metadataFilters),facets:o.metadataFilters.map(s=>vi(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:Ht.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:xi(o.metadataFilters),facets:o.metadataFilters.map(s=>vi(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:Ct.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case it.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ct.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case it.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ct.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case it.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ct.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case it.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ct.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=wt(e))===null||r===void 0?void 0:r.originUrl}};var se=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},V=class extends we{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Bo.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 Si(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.addStore(O)}render(){return I`
|
|
1003
1009
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
1004
1010
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
1005
|
-
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
1011
|
+
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new yi(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new bi(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let o=e.composedPath()[0];this.register(o)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new gi(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)}};V.elementDefinitions={};V.styles=dp;se([j({store:O.name})],V.prototype,"session",void 0);se([g()],V.prototype,"query",void 0);se([g()],V.prototype,"contentLocale",void 0);se([ot()],V.prototype,"pageSize",void 0);se([g({type:Boolean})],V.prototype,"searchInDocumentTitlesOnly",void 0);se([g()],V.prototype,"keywordMatch",void 0);se([g()],V.prototype,"scope",void 0);se([g()],V.prototype,"virtualField",void 0);se([g()],V.prototype,"registrationId",void 0);se([g({type:Boolean})],V.prototype,"ignoreEmptyQuery",void 0);se([g({type:Boolean})],V.prototype,"applyStickyFilters",void 0);se([j({store:O.name})],V.prototype,"openExternalDocumentInNewTab",void 0);se([de([])],V.prototype,"filters",void 0);se([g()],V.prototype,"sortId",void 0);se([de([])],V.prototype,"sort",void 0);se([de({})],V.prototype,"otherQueryParams",void 0);se([j({store:"search"})],V.prototype,"request",void 0);se([j({store:"search"})],V.prototype,"paging",void 0);se([j({store:"search",selector:t=>t.spellcheck})],V.prototype,"spellcheckAutocorrect",void 0);se([j({store:O.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],V.prototype,"_appIntegrationInfoReady",void 0);se([g({attribute:!1})],V.prototype,"searchServiceProvider",void 0);var hp={"ft-search-context":V};q(hp);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},oc=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},ne=class extends we{constructor(){super(),this.metadataFilters=[],this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new Y(5),this.navigationDebouncer=new Y(10),this.mapLoadedEventDebouncer=new Y(50),this.addStore(O)}render(){return I`
|
|
1006
1012
|
${this.importStyleIfNeeded()}
|
|
1007
1013
|
<ft-toc-filtering-search-context
|
|
1008
1014
|
registrationId="reader-toc-filtering"
|
|
@@ -1017,7 +1023,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1017
1023
|
<style>
|
|
1018
1024
|
@import "${o}"
|
|
1019
1025
|
</style>
|
|
1020
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1026
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=ai.build(this.id||Zi(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.mapId]}},...this.metadataFilters]}connectedCallback(){super.connectedCallback(),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 oc(this.stateManager)}),O.addEventListener(Fe.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),O.addEventListener(Fe.eventName,this.updateConfiguration)}update(e){var r;super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider);let o=e.has("metadataFilters")&&e.get("metadataFilters")!=null;o&&this.stateManager.setFilters((r=this.metadataFilters)!==null&&r!==void 0?r:[]),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),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 li(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 ci(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 hi),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){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new pi):r.status===403?this.dispatchEvent(new fi):r.status===404?this.dispatchEvent(new ui):this.dispatchEvent(new di(e))}reloadBookmarks(){$s.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 si(this.map,this.toc))})}};ne.elementDefinitions={"ft-toc-filtering-search-context":V};ne.styles=cp;Oe([j({store:O.name})],ne.prototype,"baseUrl",void 0);Oe([j({store:O.name})],ne.prototype,"session",void 0);Oe([g()],ne.prototype,"mapId",void 0);Oe([g()],ne.prototype,"tocId",void 0);Oe([g()],ne.prototype,"section",void 0);Oe([g()],ne.prototype,"topicPivot",void 0);Oe([g()],ne.prototype,"searchInDocumentQuery",void 0);Oe([j({store:"reader",converter:Qo([]),attribute:!0})],ne.prototype,"metadataFilters",void 0);Oe([ot({min:1})],ne.prototype,"page",void 0);Oe([j({store:"reader"})],ne.prototype,"map",void 0);Oe([j({store:"reader"})],ne.prototype,"toc",void 0);Oe([j({store:"reader"})],ne.prototype,"visibleTopics",void 0);Oe([j({store:"reader"})],ne.prototype,"currentPage",void 0);Oe([j({store:"reader"})],ne.prototype,"scrollTarget",void 0);Oe([g({attribute:!1})],ne.prototype,"readerServiceProvider",void 0);Oe([te("ft-toc-filtering-search-context")],ne.prototype,"tocFilteringContext",void 0);var mp={"ft-reader-context":ne};q(mp);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},re=class extends Cu(Zn(Dn)){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(Xs)}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`
|
|
1021
1027
|
${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
|
|
1022
1028
|
${this.hideIfEmpty()}
|
|
1023
1029
|
`}renderSwitchToRelatives(){return I`
|
|
@@ -1051,7 +1057,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1051
1057
|
</ft-tooltip>
|
|
1052
1058
|
`}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 Dr((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&i!==void 0?i:r;return I`
|
|
1053
1059
|
<a part="relative-item-link"
|
|
1054
|
-
href="${
|
|
1060
|
+
href="${Qs(e,this.metadataFilters)}"
|
|
1055
1061
|
@click=${s=>this.addTopicPivotParam(s,e)}>
|
|
1056
1062
|
<ft-ripple part="relative-item-ripple"></ft-ripple>
|
|
1057
1063
|
<ft-floating-menu-item part="relative-item" value="${a.value}" notFocusable>
|
|
@@ -1066,7 +1072,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
1066
1072
|
display: none !important;
|
|
1067
1073
|
}
|
|
1068
1074
|
</style>
|
|
1069
|
-
`:M}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=
|
|
1075
|
+
`:M}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=ii((a=Qs(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?At.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Dr((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}};re.elementDefinitions={"ft-chip":J,"ft-floating-menu":ee,"ft-floating-menu-item":Ee,"ft-floating-menu-label":Nt,"ft-ripple":K,"ft-tooltip":ae};re.styles=iu;xe([g(),Ba()],re.prototype,"key",void 0);xe([g({type:Boolean})],re.prototype,"multiLine",void 0);xe([g({type:Boolean})],re.prototype,"useForSwitchingToRelatives",void 0);xe([g({type:Boolean})],re.prototype,"displayLabel",void 0);xe([ot()],re.prototype,"hierarchicalValueTruncatingLevel",void 0);xe([g({type:Boolean})],re.prototype,"forceTooltip",void 0);xe([g({attribute:!1})],re.prototype,"editorMode",void 0);xe([g({type:Boolean})],re.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)}})],re.prototype,"metadata",void 0);xe([D()],re.prototype,"flatMetadata",void 0);xe([j({store:"reader"})],re.prototype,"map",void 0);xe([j({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.relativeTopicPivotMetadata}})],re.prototype,"relativeTopicPivotMetadata",void 0);xe([D()],re.prototype,"relatives",void 0);xe([j({store:O.name})],re.prototype,"availableContentLocales",void 0);xe([j({store:"reader"})],re.prototype,"metadataFilters",void 0);xe([Nu(Xs.properties.itemWithNoValueForSwitchToRelatives())],re.prototype,"noValueMessage",void 0);xe([$a({eventName:xt.clusteringHelperCreated})],re.prototype,"updateRelatives",null);var gp={"ft-reader-metadata":re};q(gp);})();
|
|
1070
1076
|
/*! Bundled license information:
|
|
1071
1077
|
|
|
1072
1078
|
.store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js:
|