@fluid-topics/ft-reader-search-in-document 1.3.16 → 1.3.17
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-search-in-document.light.js +310 -309
- package/build/ft-reader-search-in-document.min.js +435 -434
- package/package.json +15 -15
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var dv=Object.create;var hs=Object.defineProperty;var pv=Object.getOwnPropertyDescriptor;var uv=Object.getOwnPropertyNames;var fv=Object.getPrototypeOf,hv=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var mv=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)hs(r,t,{get:e[t],enumerable:!0})},gv=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uv(e))!hv.call(r,n)&&n!==t&&hs(r,n,{get:()=>e[n],enumerable:!(i=pv(e,n))||i.enumerable});return r};var yv=(r,e,t)=>(t=r!=null?dv(fv(r)):{},gv(e||!r||!r.__esModule?hs(t,"default",{value:r,enumerable:!0}):t,r));var vu=p(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(k,$){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get($)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=$.prototype.attributeChangedCallback,K=new Set($.observedAttributes||[]);v($,K,A);let Z={elementClass:$,connectedCallback:$.prototype.connectedCallback,disconnectedCallback:$.prototype.disconnectedCallback,adoptedCallback:$.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:$.formAssociated,formAssociatedCallback:$.prototype.formAssociatedCallback,formDisabledCallback:$.prototype.formDisabledCallback,formResetCallback:$.prototype.formResetCallback,formStateRestoreCallback:$.prototype.formStateRestoreCallback,observedAttributes:K};this._definitionsByTag.set(k,Z),this._definitionsByClass.set($,Z);let ie=t.call(i,k);ie||(ie=m(k),e.call(i,k,ie)),this===window.customElements&&(s.set($,Z),Z.standInClass=ie);let pe=this._awaitingUpgrade.get(k);if(pe){this._awaitingUpgrade.delete(k);for(let b of pe)a.delete(b),O(b,Z,!0)}let j=this._whenDefinedPromises.get(k);return j!==void 0&&(j.resolve($),this._whenDefinedPromises.delete(k)),$}upgrade(){F.push(this),i.upgrade.apply(i,arguments),F.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let $=this._getDefinition(k);if($!==void 0)return Promise.resolve($.elementClass);let A=this._whenDefinedPromises.get(k);return A===void 0&&(A={},A.promise=new Promise(K=>A.resolve=K),this._whenDefinedPromises.set(k,A)),A.promise}_upgradeWhenDefined(k,$,A){let K=this._awaitingUpgrade.get($);K||this._awaitingUpgrade.set($,K=new Set),A?K.add(k):K.delete(k)}};let d;window.HTMLElement=function(){let $=d;if($)return d=void 0,$;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return $=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf($,this.constructor.prototype),n.set($,A),$},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let $=k.getRootNode();if(!f($)){let A=F[F.length-1];if(A instanceof CustomElementRegistry)return A;$=A.getRootNode(),f($)||($=l.get($)?.getRootNode()||document)}return $.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let K=g(A)||window.customElements,Z=K._getDefinition(k);return Z?O(A,Z):a.set(A,K),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},v=(k,$,A)=>{if($.size===0||A===void 0)return;let K=k.prototype.setAttribute;K&&(k.prototype.setAttribute=function(pe,j){let b=pe.toLowerCase();if($.has(b)){let w=this.getAttribute(b);K.call(this,b,j),A.call(this,b,w,j)}else K.call(this,b,j)});let Z=k.prototype.removeAttribute;Z&&(k.prototype.removeAttribute=function(pe){let j=pe.toLowerCase();if($.has(j)){let b=this.getAttribute(j);Z.call(this,j),A.call(this,j,b,null)}else Z.call(this,j)});let ie=k.prototype.toggleAttribute;ie&&(k.prototype.toggleAttribute=function(pe,j){let b=pe.toLowerCase();if($.has(b)){let w=this.getAttribute(b);ie.call(this,b,j);let G=this.getAttribute(b);A.call(this,b,w,G)}else ie.call(this,b,j)})},C=k=>{let $=Object.getPrototypeOf(k);if($!==window.HTMLElement)return $===r?Object.setPrototypeOf(k,window.HTMLElement):C($)},O=(k,$,A=!1)=>{Object.setPrototypeOf(k,$.elementClass.prototype),n.set(k,$),d=k;try{new $.elementClass}catch{C($.elementClass),new $.elementClass}$.attributeChangedCallback&&$.observedAttributes.forEach(K=>{k.hasAttribute(K)&&$.attributeChangedCallback.call(k,K,null,k.getAttribute(K))}),A&&$.connectedCallback&&k.isConnected&&$.connectedCallback.call(k)},R=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let $=R.apply(this,arguments);return k.customElements&&($.customElements=k.customElements),$};let F=[document],N=(k,$,A=void 0)=>{let K=(A?Object.getPrototypeOf(A):k.prototype)[$];k.prototype[$]=function(){F.push(this);let Z=K.apply(A||this,arguments);return Z!==void 0&&l.set(Z,this),F.pop(),Z}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let U=(k,$)=>{let A=Object.getOwnPropertyDescriptor(k.prototype,$);Object.defineProperty(k.prototype,$,{...A,set(K){F.push(this),A.set.call(this,K),F.pop()}})};if(U(Element,"innerHTML"),U(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,$=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...pe){let j=$.call(this,...pe);return k.set(j,this),j},A.forEach(pe=>{let j=window.ElementInternals.prototype,b=j[pe];j[pe]=function(...w){let G=k.get(this);if(n.get(G).formAssociated===!0)return b?.call(this,...w);throw new DOMException(`Failed to execute ${b} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class K extends Array{constructor(j){super(...j),this._elements=j}get value(){return this._elements.find(j=>j.checked===!0)?.value||""}}class Z{constructor(j){let b=new Map;j.forEach((w,G)=>{let he=w.getAttribute("name"),Oe=b.get(he)||[];this[+G]=w,Oe.push(w),b.set(he,Oe)}),this.length=j.length,b.forEach((w,G)=>{w&&(w.length===1?this[G]=w[0]:this[G]=new K(w))})}namedItem(j){return this[j]}}let ie=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let pe=ie.get.call(this,[]),j=[];for(let b of pe){let w=n.get(b);(!w||w.formAssociated===!0)&&j.push(b)}return new Z(j)}})}}});var xu=p(()=>{"use strict";vu();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,i,n)=>{if(i!==null)try{e.bind(window.customElements)(t,i,n)}catch(a){console.info(t,i,n,a)}}}});var Tn,Di,ms,Su,Vo,Jt,L,Mi,Pn,Nn=p(()=>{Tn=globalThis,Di=Tn.ShadowRoot&&(Tn.ShadyCSS===void 0||Tn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ms=Symbol(),Su=new WeakMap,Vo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ms)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Di&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Su.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Su.set(t,e))}return e}toString(){return this.cssText}},Jt=r=>new Vo(typeof r=="string"?r:r+"",void 0,ms),L=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Vo(t,r,ms)},Mi=(r,e)=>{if(Di)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Tn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Pn=Di?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return Jt(t)})(r):r});var bv,vv,xv,Sv,Cv,Ov,Fn,Cu,Ev,wv,Ui,jo,zi,Ou,er,Hi=p(()=>{Nn();Nn();({is:bv,defineProperty:vv,getOwnPropertyDescriptor:xv,getOwnPropertyNames:Sv,getOwnPropertySymbols:Cv,getPrototypeOf:Ov}=Object),Fn=globalThis,Cu=Fn.trustedTypes,Ev=Cu?Cu.emptyScript:"",wv=Fn.reactiveElementPolyfillSupport,Ui=(r,e)=>r,jo={toAttribute(r,e){switch(e){case Boolean:r=r?Ev:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},zi=(r,e)=>!bv(r,e),Ou={attribute:!0,type:String,converter:jo,reflect:!1,useDefault:!1,hasChanged:zi};Symbol.metadata??=Symbol("metadata"),Fn.litPropertyMetadata??=new WeakMap;er=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,t=Ou){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&vv(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=xv(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ou}static _$Ei(){if(this.hasOwnProperty(Ui("elementProperties")))return;let e=Ov(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ui("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ui("properties"))){let t=this.properties,i=[...Sv(t),...Cv(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(Pn(n))}else e!==void 0&&t.push(Pn(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mi(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,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:jo).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??zi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.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(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};er.elementStyles=[],er.shadowRootOptions={mode:"open"},er[Ui("elementProperties")]=new Map,er[Ui("finalized")]=new Map,wv?.({ReactiveElement:er}),(Fn.reactiveElementVersions??=[]).push("2.1.0")});function _u(r,e){if(!xs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Eu!==void 0?Eu.createHTML(e):e}function mo(r,e,t=r,i){if(e===Je)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=ji(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=mo(r,n._$AS(r,e.values),n,i)),e}var ys,Bn,Eu,bs,Sr,vs,Rv,ho,Vi,ji,xs,ku,gs,Wi,wu,Ru,uo,Au,Lu,$u,Ss,S,Cs,Os,Je,T,Iu,fo,Tu,Gi,Dn,Go,go,Mn,Un,zn,Hn,Es,Av,ws,Ht=p(()=>{ys=globalThis,Bn=ys.trustedTypes,Eu=Bn?Bn.createPolicy("lit-html",{createHTML:r=>r}):void 0,bs="$lit$",Sr=`lit$${Math.random().toFixed(9).slice(2)}$`,vs="?"+Sr,Rv=`<${vs}>`,ho=document,Vi=()=>ho.createComment(""),ji=r=>r===null||typeof r!="object"&&typeof r!="function",xs=Array.isArray,ku=r=>xs(r)||typeof r?.[Symbol.iterator]=="function",gs=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Au=/'/g,Lu=/"/g,$u=/^(?:script|style|textarea|title)$/i,Ss=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Ss(1),Cs=Ss(2),Os=Ss(3),Je=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Iu=new WeakMap,fo=ho.createTreeWalker(ho,129);Tu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,v=0;for(;v<d.length&&(s.lastIndex=v,g=s.exec(d),g!==null);)v=s.lastIndex,s===Wi?g[1]==="!--"?s=wu:g[1]!==void 0?s=Ru:g[2]!==void 0?($u.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=uo):g[3]!==void 0&&(s=uo):s===uo?g[0]===">"?(s=n??Wi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?uo:g[3]==='"'?Lu:Au):s===Lu||s===Au?s=uo:s===wu||s===Ru?s=Wi:(s=uo,n=void 0);let C=s===uo&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+Rv:m>=0?(i.push(f),d.slice(0,m)+bs+d.slice(m)+Sr+C):d+Sr+(m===-2?l:C)}return[_u(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Gi=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Tu(e,t);if(this.el=r.createElement(f,i),fo.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=fo.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(bs)){let v=g[s++],C=n.getAttribute(m).split(Sr),O=/([.?@])?(.*)/.exec(v);d.push({type:1,index:a,name:O[2],strings:C,ctor:O[1]==="."?Mn:O[1]==="?"?Un:O[1]==="@"?zn:go}),n.removeAttribute(m)}else m.startsWith(Sr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if($u.test(n.tagName)){let m=n.textContent.split(Sr),v=m.length-1;if(v>0){n.textContent=Bn?Bn.emptyScript:"";for(let C=0;C<v;C++)n.append(m[C],Vi()),fo.nextNode(),d.push({type:2,index:++a});n.append(m[v],Vi())}}}else if(n.nodeType===8)if(n.data===vs)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Sr,m+1))!==-1;)d.push({type:7,index:a}),m+=Sr.length-1}a++}}static createElement(e,t){let i=ho.createElement("template");return i.innerHTML=e,i}};Dn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??ho).importNode(t,!0);fo.currentNode=n;let a=fo.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Go(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Hn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=fo.nextNode(),s++)}return fo.currentNode=ho,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Go=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=mo(this,e,t),ji(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==Je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ku(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!==T&&ji(this._$AH)?this._$AA.nextSibling.data=e:this.T(ho.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Gi.createElement(_u(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Dn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Iu.get(e.strings);return t===void 0&&Iu.set(e.strings,t=new Gi(e)),t}k(e){xs(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.O(Vi()),this.O(Vi()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},go=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=mo(this,e,t,0),s=!ji(e)||e!==this._$AH&&e!==Je,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=mo(this,l[i+d],t,d),f===Je&&(f=this._$AH[d]),s||=!ji(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Mn=class extends go{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Un=class extends go{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},zn=class extends go{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=mo(this,e,t,0)??T)===Je)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Hn=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){mo(this,e)}},Es={M:bs,P:Sr,A:vs,C:1,L:Tu,R:Dn,D:ku,V:mo,I:Go,H:go,N:Un,U:zn,B:Mn,F:Hn},Av=ys.litHtmlPolyfillSupport;Av?.(Gi,Go),(ys.litHtmlVersions??=[]).push("3.3.0");ws=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new Go(e.insertBefore(Vi(),a),a,void 0,t??{})}return n._$AI(r),n}});var Rs,Cr,Lv,Iv,Pu=p(()=>{Hi();Hi();Ht();Ht();Rs=globalThis,Cr=class extends er{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 t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ws(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Je}};Cr._$litElement$=!0,Cr.finalized=!0,Rs.litElementHydrateSupport?.({LitElement:Cr});Lv=Rs.litElementPolyfillSupport;Lv?.({LitElement:Cr});Iv={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Rs.litElementVersions??=[]).push("4.2.0")});var SS,Nu=p(()=>{SS=!1});var As={};ne(As,{CSSResult:()=>Vo,LitElement:()=>Cr,ReactiveElement:()=>er,_$LE:()=>Iv,_$LH:()=>Es,adoptStyles:()=>Mi,css:()=>L,defaultConverter:()=>jo,getCompatibleStyle:()=>Pn,html:()=>S,isServer:()=>SS,mathml:()=>Os,noChange:()=>Je,notEqual:()=>zi,nothing:()=>T,render:()=>ws,supportsAdoptingStyleSheets:()=>Di,svg:()=>Cs,unsafeCSS:()=>Jt});var P=p(()=>{Hi();Ht();Pu();Nu()});var kv,Fu=p(()=>{kv=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Bu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var $v,Bu,Ls=p(()=>{Hi();$v={attribute:!0,type:String,converter:jo,reflect:!1,hasChanged:zi},Bu=(r=$v,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),i==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(i==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)}});function D(r){return h({...r,state:!0,attribute:!1})}var Du=p(()=>{Ls();});function Ko(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var Mu=p(()=>{});var Wt,qo=p(()=>{Wt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function z(r,e){return(t,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof i=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return Wt(t,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Wt(t,i,{get(){return a(this)}})}}var Uu=p(()=>{qo();});function Is(r){return(e,t)=>Wt(e,t,{get(){return(this.renderRoot??(_v??=document.createDocumentFragment())).querySelectorAll(r)}})}var _v,zu=p(()=>{qo();});function Tv(r){return(e,t)=>Wt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Hu=p(()=>{qo();});function ks(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Wt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var Wu=p(()=>{qo();});function $s(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Wt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Vu=p(()=>{qo();});var _s={};ne(_s,{customElement:()=>kv,eventOptions:()=>Ko,property:()=>h,query:()=>z,queryAll:()=>Is,queryAssignedElements:()=>ks,queryAssignedNodes:()=>$s,queryAsync:()=>Tv,standardProperty:()=>Bu,state:()=>D});var Q=p(()=>{Fu();Ls();Du();Mu();Uu();zu();Hu();Wu();Vu()});var tr,Vt,kt,yo=p(()=>{tr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vt=r=>(...e)=>({_$litDirective$:r,values:e}),kt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Pv,Gu,ju,Zo,Mr,Nv,Ku,qu,Wn,Ts=p(()=>{Ht();({I:Pv}=Es),Gu=r=>r.strings===void 0,ju=()=>document.createComment(""),Zo=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(ju(),n),s=i.insertBefore(ju(),n);t=new Pv(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Mr=(r,e,t=r)=>(r._$AI(e,t),r),Nv={},Ku=(r,e=Nv)=>r._$AH=e,qu=r=>r._$AH,Wn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let i=e.nextSibling;e.remove(),e=i}}});var Zu,Te,Yu=p(()=>{Ht();yo();Ts();Zu=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Te=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,i]){let n=qu(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,v=n.length-1,C=0,O=a.length-1;for(;m<=v&&C<=O;)if(n[m]===null)m++;else if(n[v]===null)v--;else if(l[m]===s[C])d[C]=Mr(n[m],a[C]),m++,C++;else if(l[v]===s[O])d[O]=Mr(n[v],a[O]),v--,O--;else if(l[m]===s[O])d[O]=Mr(n[m],a[O]),Zo(r,d[O+1],n[m]),m++,O--;else if(l[v]===s[C])d[C]=Mr(n[v],a[C]),Zo(r,n[m],n[v]),v--,C++;else if(f===void 0&&(f=Zu(s,C,O),g=Zu(l,m,v)),f.has(l[m]))if(f.has(l[v])){let R=g.get(s[C]),F=R!==void 0?n[R]:null;if(F===null){let N=Zo(r,n[m]);Mr(N,a[C]),d[C]=N}else d[C]=Mr(F,a[C]),Zo(r,n[m],F),n[R]=null;C++}else Wn(n[v]),v--;else Wn(n[m]),m++;for(;C<=O;){let R=Zo(r,d[O+1]);Mr(R,a[C]),d[C++]=R}for(;m<=v;){let R=n[m++];R!==null&&Wn(R)}return this.ut=s,Ku(r,d),Je}})});var Ps={};ne(Ps,{repeat:()=>Te});var jt=p(()=>{Yu()});var be,Qu=p(()=>{Ht();yo();be=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return Je}})});var Ns={};ne(Ns,{classMap:()=>be});var nt=p(()=>{Qu()});var Xu,Fv,Bv,Ju=p(()=>{Ht();yo();Xu="important",Fv=" !"+Xu,Bv=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce((e,t)=>{let i=r[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Fv);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?Xu:""):t[i]=n}}return Je}})});var Fs={};ne(Fs,{styleMap:()=>Bv});var ef=p(()=>{Ju()});var Yo,bo,tf=p(()=>{Ht();yo();Yo=class extends kt{constructor(e){if(super(e),this.it=T,e.type!==tr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===Je)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 t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Yo.directiveName="unsafeHTML",Yo.resultType=1;bo=Vt(Yo)});var Bs={};ne(Bs,{UnsafeHTMLDirective:()=>Yo,unsafeHTML:()=>bo});var Ki=p(()=>{tf()});var Ds={};ne(Ds,{CancelablePromise:()=>Vn,CanceledPromiseError:()=>rr,cancelable:()=>Qo});var rr,Vn,Qo,jn=p(()=>{"use strict";rr=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Vn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new rr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new rr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Qo=r=>new Vn((e,t)=>r.then(e).catch(t))});var Hs={};ne(Hs,{FtNotificationEvent:()=>Ms,PostResizeEvent:()=>zs,PreResizeEvent:()=>Us,WithEventBus:()=>Or,withEventBus:()=>rf});function rf(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,i,n){this.eventBus.addEventListener(t,i,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,i,n){this.eventBus.removeEventListener(t,i,n)}}}var Ms,Us,zs,Or,qi=p(()=>{"use strict";Ms=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Us=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},zs=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};Or=class extends rf(Object){}});var Ws={};ne(Ws,{CacheRegistry:()=>or,ClearCacheEvent:()=>Zi});var Zi,or,Vs=p(()=>{"use strict";jn();qi();Zi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},or=class extends Or{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new Zi(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Zi([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=Qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var Ks={};ne(Ks,{ClusteringHelper:()=>Gs,formatHierarchicalValues:()=>js});function js(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var Gs,qs=p(()=>{"use strict";Gs=class r{constructor(e,t,i,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var t,i,n,a,s;let l=((a=(i=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&i!==void 0?i:(n=e.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,i){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(js(l)),s.push(js(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,i="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,v,C)=>C.findIndex(O=>O.value===m.value)===v).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,v)=>this.compareMetadata(m.metadata.value,v.metadata.value,e,t))}compareMetadata(e,t,i,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let i=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(i=>t.some(n=>n.key===i.key&&n.value===i.value)).length}}});var Zs={};ne(Zs,{Debouncer:()=>me});var me,Gn=p(()=>{"use strict";me=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,i)=>{this.resolvePromise=t,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Xs={};ne(Xs,{dateReviver:()=>Dv,deepCopy:()=>Qi,deepEqual:()=>Ze,delay:()=>Kn,eventPathContainsMatchingElement:()=>Uv,flatDeep:()=>St,getComposedPathTo:()=>Ys,hasChanged:()=>Ur,last:()=>zv,minmax:()=>vo,parseDate:()=>of,randomId:()=>Qs,unslotText:()=>Jo,waitFor:()=>Xo,waitUntil:()=>Yi});async function Yi(r,e=10,t=2e4){await Xo(async()=>await r()||void 0,e,t)}async function Xo(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await Kn(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function St(r,e){return r.flatMap(t=>[t,...St(e(t),e)])}function Dv(...r){return(e,t)=>r.includes(e)?of(t):t}function of(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,i,n)=>t+i+":"+n),new Date(r)}function Mv(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ze(r[i],e[i]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;for(i of r.entries())if(!Ze(i[1],e.get(i[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),t=n.length,t!==a(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=t;i--!==0;){let s=n[i];if(!Ze(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ze(r,e){try{return Mv(r,e)}catch{return!1}}function Ur(r,e){return!Ze(r,e)}function Uv(r,e,t=window.document.body){if(e.length>0){let i=r.composedPath();for(let n of i){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function vo(r,e,t){return Math.min(Math.max(r,e),t)}function zv(r){return r[r.length-1]}function Jo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Jo(e)).join(""):r?.textContent||""}function Ys(r){let e=[],t=i=>{i.stopPropagation(),e=i.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function Qi(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Qs(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}var Kn,zr=p(()=>{"use strict";Kn=r=>new Promise(e=>setTimeout(e,r))});var Js={};ne(Js,{customElement:()=>M,isNumber:()=>af,jsonProperty:()=>we,numberProperty:()=>nf,optionalNumberProperty:()=>Hv});function we(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ur,...e??{}})}function Hv(r){return nf(r)}function nf(r){return h({type:Object,converter:{fromAttribute:e=>{if(console.log("from attribute",e,r),e!=null)return af(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function af(r){return!isNaN(parseFloat(r))}var M,qn=p(()=>{"use strict";Q();zr();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Hr(`${r.name}: ${e}`)}var Hr,o,le=p(()=>{P();Hr=r=>typeof r=="string"?Jt(r):r,o=class{static create(e,t,i,n){let a=l=>Hr(l??n),s=L`var(${Hr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>L`var(${Hr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=L`var(${Hr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>L`var(${Hr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=L`var(${Hr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>L`var(${Hr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,el,tl,rl,ol,il,nl,al,sl,xo,sf,ll,cl,dl,pl,ul,fl,hl,ml,gl,yl,Wr,bl,vl,xl,Sl,Cl,Xi,Wv,ce=p(()=>{le();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},el={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},tl={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},rl={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},ol={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},il={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},nl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},al={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},sl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},xo={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},sf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},ll={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},cl={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},dl={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},pl={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},ul={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},fl={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},hl={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Wr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Cl={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Xi={display:el,"title-1":tl,"title-2":rl,"title-3":ol,"body-1-regular":il,"body-1-medium":nl,"body-1-semibold":al,"body-2-regular":sl,"body-2-medium":xo,"body-2-medium-underline":sf,"body-2-semibold":ll,"label-1-medium":cl,"label-1-semibold":dl,"label-1-bold":pl,"label-2-medium":ul,"label-2-semibold":fl,"label-2-bold":hl,"caption-1-medium":ml,"caption-1-semibold":gl,"caption-1-bold":yl,"caption-2-medium":Wr,"caption-2-semibold":bl,"caption-2-bold":vl,"caption-3-medium":xl,"caption-3-semibold":Sl,"caption-3-bold":Cl},Wv=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{le();ce();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var x,lf=p(()=>{le();ce();ge();x={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var Vv,cf=p(()=>{le();ce();ge();Vv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var ue,df=p(()=>{le();ce();ge();ue={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var jv,pf=p(()=>{le();ce();ge();jv={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var Gv,uf=p(()=>{le();ce();ge();Gv={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Y,ff=p(()=>{le();ce();ge();Y={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var Kv,hf=p(()=>{le();ce();ge();Kv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var qv,mf=p(()=>{le();ce();ge();qv={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var Zv,gf=p(()=>{le();ce();ge();Zv={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var Yv,yf=p(()=>{le();ce();ge();Yv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var Qv,bf=p(()=>{le();ce();ge();Qv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var Xv,vf=p(()=>{le();ce();ge();Xv={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var Jv,xf=p(()=>{le();ce();Jv={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var ex,Sf=p(()=>{le();ce();ge();ex={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var tx,Cf=p(()=>{le();ce();ge();tx={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var rx,Of=p(()=>{le();ce();ge();rx={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var ox,Ef=p(()=>{le();ce();ge();ox={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var ix,wf=p(()=>{le();ce();ge();ix={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var nx,Rf=p(()=>{le();ce();ge();nx={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var ax,Af=p(()=>{le();ce();ge();ax={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var sx,Lf=p(()=>{le();ce();ge();sx={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var lx,If=p(()=>{le();ce();ge();lx={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var cx,kf=p(()=>{le();ce();ge();cx={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var dx,$f=p(()=>{le();ce();ge();dx={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var px,_f=p(()=>{le();ce();px={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var ux,Tf=p(()=>{le();ce();ux={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var fx,Pf=p(()=>{le();ce();ge();fx={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var hx,Nf=p(()=>{le();ce();ge();hx={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var mx,Ff=p(()=>{le();ce();ge();mx={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var gx,Bf=p(()=>{le();ce();ge();gx={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var yx,Df=p(()=>{le();ce();ge();yx={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var bx,Mf=p(()=>{le();ce();ge();bx={nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)}});var vx,Uf=p(()=>{le();ce();vx={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var zf=p(()=>{ce();ge();lf();cf();df();pf();uf();ff();hf();mf();gf();yf();bf();vf();xf();Sf();Cf();Of();Ef();wf();Rf();Af();Lf();If();kf();$f();_f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf()});function Ol(r){return`ftds--family-${r}`}function El(r){return`ftds--size-${r}`}var Ct,Ve,Hf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ct||(Ct={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(Ve||(Ve={}))});var ee=p(()=>{le();zf();Hf()});var wl={};ne(wl,{DesignSystemFamily:()=>Ct,DesignSystemSize:()=>Ve,FtCssVariableFactory:()=>o,badge:()=>Zv,banner:()=>qv,button:()=>x,chart:()=>px,checkbox:()=>Vv,chip:()=>Y,chipChoice:()=>Gv,collapsible:()=>cx,comboboxMultiSelect:()=>sx,comboboxSingleSelect:()=>ax,dateRangePicker:()=>vx,drawer:()=>tx,floatingMenu:()=>nx,foundation:()=>c,link:()=>Kv,modal:()=>ex,notice:()=>fx,notification:()=>mx,pageDesigner:()=>ux,pageFooter:()=>Xv,pageHeader:()=>Qv,pageLayout:()=>Jv,popover:()=>lx,radio:()=>ue,reorderableList:()=>yx,resolveFamilyClass:()=>Ol,resolveSizeClass:()=>El,semantic:()=>u,setVariable:()=>y,switch_:()=>dx,table:()=>jv,tabs:()=>rx,textArea:()=>ix,textInput:()=>ox,titleBreadcrumb:()=>Yv,toggle:()=>hx,tooltip:()=>gx,treeList:()=>bx,typographies:()=>Xi,typographyBody1Medium:()=>nl,typographyBody1Regular:()=>il,typographyBody1Semibold:()=>al,typographyBody2Medium:()=>xo,typographyBody2MediumUnderline:()=>sf,typographyBody2Regular:()=>sl,typographyBody2Semibold:()=>ll,typographyCaption1Bold:()=>yl,typographyCaption1Medium:()=>ml,typographyCaption1Semibold:()=>gl,typographyCaption2Bold:()=>vl,typographyCaption2Medium:()=>Wr,typographyCaption2Semibold:()=>bl,typographyCaption3Bold:()=>Cl,typographyCaption3Medium:()=>xl,typographyCaption3Semibold:()=>Sl,typographyDisplay:()=>el,typographyLabel1Bold:()=>pl,typographyLabel1Medium:()=>cl,typographyLabel1Semibold:()=>dl,typographyLabel2Bold:()=>hl,typographyLabel2Medium:()=>ul,typographyLabel2Semibold:()=>fl,typographyTitle1:()=>tl,typographyTitle2:()=>rl,typographyTitle3:()=>ol,typographyVariants:()=>Wv});var Zn=p(()=>{"use strict";ee()});var Rl={};ne(Rl,{designSystemVariables:()=>E});var E,Al=p(()=>{"use strict";Zn();E={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var Ll={};ne(Ll,{DynamicImporter:()=>Yn,dynamicImporter:()=>xx});var Yn,xx,Il=p(()=>{"use strict";Yn=class{async import(e){return import(e)}},xx=new Yn});function _l(r,e,t){return Vr(r,Qn(e,t))}function ei(r,e){return typeof r=="function"?r(e):r}function jr(r){return r.split("-")[0]}function ir(r){return r.split("-")[1]}function Tl(r){return r==="x"?"y":"x"}function Pl(r){return r==="y"?"height":"width"}function ti(r){return["top","bottom"].includes(jr(r))?"y":"x"}function Nl(r){return Tl(ti(r))}function jf(r,e,t){t===void 0&&(t=!1);let i=ir(r),n=Nl(r),a=Pl(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=kl(s)),[s,kl(s)]}function Gf(r){return r.replace(/start|end/g,e=>Cx[e])}function kl(r){return r.replace(/left|right|bottom|top/g,e=>Sx[e])}function Ox(r){return{top:0,right:0,bottom:0,left:0,...r}}function Kf(r){return typeof r!="number"?Ox(r):{top:r,right:r,bottom:r,left:r}}function So(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var Vf,Wf,$l,Qn,Vr,Sx,Cx,Fl=p(()=>{Vf=["top","right","bottom","left"],Wf=["start","end"],$l=Vf.reduce((r,e)=>r.concat(e,e+"-"+Wf[0],e+"-"+Wf[1]),[]),Qn=Math.min,Vr=Math.max,Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Cx={start:"end",end:"start"}});function qf(r,e,t){let{reference:i,floating:n}=r,a=ti(e),s=Nl(e),l=Pl(s),d=jr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,v=i[l]/2-n[l]/2,C;switch(d){case"top":C={x:g,y:i.y-n.height};break;case"bottom":C={x:g,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:m};break;case"left":C={x:i.x-n.width,y:m};break;default:C={x:i.x,y:i.y}}switch(ir(e)){case"start":C[s]-=v*(t&&f?-1:1);break;case"end":C[s]+=v*(t&&f?-1:1);break}return C}async function Xn(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:v=!1,padding:C=0}=ei(e,r),O=Kf(C),F=l[v?m==="floating"?"reference":"floating":m],N=So(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(F)))==null||t?F:F.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),U=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),$=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},A=So(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:U,offsetParent:k,strategy:d}):U);return{top:(N.top-A.top+O.top)/$.y,bottom:(A.bottom-N.bottom+O.bottom)/$.y,left:(N.left-A.left+O.left)/$.x,right:(A.right-N.right+O.right)/$.x}}function Ex(r,e,t){return(r?[...t.filter(n=>ir(n)===r),...t.filter(n=>ir(n)!==r)]:t.filter(n=>jr(n)===n)).filter(n=>r?ir(n)===r||(e?Gf(n)!==n:!1):!0)}async function wx(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=jr(t),l=ir(t),d=ti(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=ei(e,r),{mainAxis:v,crossAxis:C,alignmentAxis:O}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof O=="number"&&(C=l==="end"?O*-1:O),d?{x:C*g,y:v*f}:{x:v*f,y:C*g}}var Zf,Jn,Bl,Dl,Ml,Ul=p(()=>{Fl();Fl();Zf=async(r,e,t)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=qf(f,i,d),v=i,C={},O=0;for(let R=0;R<l.length;R++){let{name:F,fn:N}=l[R],{x:U,y:k,data:$,reset:A}=await N({x:g,y:m,initialPlacement:i,placement:v,strategy:n,middlewareData:C,rects:f,platform:s,elements:{reference:r,floating:e}});g=U??g,m=k??m,C={...C,[F]:{...C[F],...$}},A&&O<=50&&(O++,typeof A=="object"&&(A.placement&&(v=A.placement),A.rects&&(f=A.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):A.rects),{x:g,y:m}=qf(f,v,d)),R=-1)}return{x:g,y:m,placement:v,strategy:n,middlewareData:C}};Jn=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:v=$l,autoAlignment:C=!0,...O}=ei(r,e),R=m!==void 0||v===$l?Ex(m||null,C,v):v,F=await Xn(e,O),N=((t=s.autoPlacement)==null?void 0:t.index)||0,U=R[N];if(U==null)return{};let k=jf(U,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==U)return{reset:{placement:R[0]}};let $=[F[jr(U)],F[k[0]],F[k[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:U,overflows:$}],K=R[N+1];if(K)return{data:{index:N+1,overflows:A},reset:{placement:K}};let Z=A.map(j=>{let b=ir(j.placement);return[j.placement,b&&g?j.overflows.slice(0,2).reduce((w,G)=>w+G,0):j.overflows[0],j.overflows]}).sort((j,b)=>j[1]-b[1]),pe=((n=Z.filter(j=>j[2].slice(0,ir(j[0])?2:3).every(b=>b<=0))[0])==null?void 0:n[0])||Z[0][0];return pe!==l?{data:{index:N+1,overflows:A},reset:{placement:pe}}:{}}}};Bl=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await wx(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Dl=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:F=>{let{x:N,y:U}=F;return{x:N,y:U}}},...d}=ei(r,e),f={x:t,y:i},g=await Xn(e,d),m=ti(jr(n)),v=Tl(m),C=f[v],O=f[m];if(a){let F=v==="y"?"top":"left",N=v==="y"?"bottom":"right",U=C+g[F],k=C-g[N];C=_l(U,C,k)}if(s){let F=m==="y"?"top":"left",N=m==="y"?"bottom":"right",U=O+g[F],k=O-g[N];O=_l(U,O,k)}let R=l.fn({...e,[v]:C,[m]:O});return{...R,data:{x:R.x-t,y:R.y-i,enabled:{[v]:a,[m]:s}}}}}},Ml=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=ei(r,e),g=await Xn(e,f),m=jr(n),v=ir(n),C=ti(n)==="y",{width:O,height:R}=a.floating,F,N;m==="top"||m==="bottom"?(F=m,N=v===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(N=m,F=v==="end"?"top":"bottom");let U=R-g.top-g.bottom,k=O-g.left-g.right,$=Qn(R-g[F],U),A=Qn(O-g[N],k),K=!e.middlewareData.shift,Z=$,ie=A;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(ie=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(Z=U),K&&!v){let j=Vr(g.left,0),b=Vr(g.right,0),w=Vr(g.top,0),G=Vr(g.bottom,0);C?ie=O-2*(j!==0||b!==0?j+b:Vr(g.left,g.right)):Z=R-2*(w!==0||G!==0?w+G:Vr(g.top,g.bottom))}await d({...e,availableWidth:ie,availableHeight:Z});let pe=await s.getDimensions(l.floating);return O!==pe.width||R!==pe.height?{reset:{rects:!0}}:{}}}}});var zl,ri,Ji,Er,Yf=p(()=>{zl=Math.min,ri=Math.max,Ji=Math.round,Er=r=>({x:r,y:r})});function wr(r){return Xf(r)?(r.nodeName||"").toLowerCase():"#document"}function ft(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Rr(r){var e;return(e=(Xf(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Xf(r){return r instanceof Node||r instanceof ft(r).Node}function nr(r){return r instanceof Element||r instanceof ft(r).Element}function Gt(r){return r instanceof HTMLElement||r instanceof ft(r).HTMLElement}function Qf(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ft(r).ShadowRoot}function oi(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=Ot(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function Jf(r){return["table","td","th"].includes(wr(r))}function ta(r){let e=ra(),t=Ot(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function eh(r){let e=Co(r);for(;Gt(e)&&!en(e);){if(ta(e))return e;e=Co(e)}return null}function ra(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function en(r){return["html","body","#document"].includes(wr(r))}function Ot(r){return ft(r).getComputedStyle(r)}function tn(r){return nr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Co(r){if(wr(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Qf(r)&&r.host||Rr(r);return Qf(e)?e.host:e}function th(r){let e=Co(r);return en(e)?r.ownerDocument?r.ownerDocument.body:r.body:Gt(e)&&oi(e)?e:th(e)}function ea(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=th(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=ft(n);return a?e.concat(s,s.visualViewport||[],oi(n)?n:[],s.frameElement&&t?ea(s.frameElement):[]):e.concat(n,ea(n,[],t))}var rh=p(()=>{});function nh(r){let e=Ot(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Gt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=Ji(t)!==a||Ji(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function ah(r){return nr(r)?r:r.contextElement}function ii(r){let e=ah(r);if(!Gt(e))return Er(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=nh(e),s=(a?Ji(t.width):t.width)/i,l=(a?Ji(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function sh(r){let e=ft(r);return!ra()||!e.visualViewport?Rx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ax(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ft(r)?!1:e}function rn(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=ah(r),s=Er(1);e&&(i?nr(i)&&(s=ii(i)):s=ii(r));let l=Ax(a,t,i)?sh(a):Er(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let v=ft(a),C=i&&nr(i)?ft(i):i,O=v.frameElement;for(;O&&i&&C!==v;){let R=ii(O),F=O.getBoundingClientRect(),N=Ot(O),U=F.left+(O.clientLeft+parseFloat(N.paddingLeft))*R.x,k=F.top+(O.clientTop+parseFloat(N.paddingTop))*R.y;d*=R.x,f*=R.y,g*=R.x,m*=R.y,d+=U,f+=k,O=ft(O).frameElement}}return So({width:g,height:m,x:d,y:f})}function Lx(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Gt(t),a=Rr(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Er(1),d=Er(0);if((n||!n&&i!=="fixed")&&((wr(t)!=="body"||oi(a))&&(s=tn(t)),Gt(t))){let f=rn(t);l=ii(t),d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Ix(r){return Array.from(r.getClientRects())}function lh(r){return rn(Rr(r)).left+tn(r).scrollLeft}function kx(r){let e=Rr(r),t=tn(r),i=r.ownerDocument.body,n=ri(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=ri(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+lh(r),l=-t.scrollTop;return Ot(i).direction==="rtl"&&(s+=ri(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function $x(r,e){let t=ft(r),i=Rr(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ra();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function _x(r,e){let t=rn(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Gt(r)?ii(r):Er(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function oh(r,e,t){let i;if(e==="viewport")i=$x(r,t);else if(e==="document")i=kx(Rr(r));else if(nr(e))i=_x(e,t);else{let n=sh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return So(i)}function ch(r,e){let t=Co(r);return t===e||!nr(t)||en(t)?!1:Ot(t).position==="fixed"||ch(t,e)}function Tx(r,e){let t=e.get(r);if(t)return t;let i=ea(r,[],!1).filter(l=>nr(l)&&wr(l)!=="body"),n=null,a=Ot(r).position==="fixed",s=a?Co(r):r;for(;nr(s)&&!en(s);){let l=Ot(s),d=ta(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||oi(s)&&!d&&ch(r,s))?i=i.filter(g=>g!==s):n=l,s=Co(s)}return e.set(r,i),i}function Px(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Tx(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=oh(e,g,n);return f.top=ri(m.top,f.top),f.right=zl(m.right,f.right),f.bottom=zl(m.bottom,f.bottom),f.left=ri(m.left,f.left),f},oh(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Nx(r){return nh(r)}function Fx(r,e,t){let i=Gt(e),n=Rr(e),a=t==="fixed",s=rn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Er(0);if(i||!i&&!a)if((wr(e)!=="body"||oi(n))&&(l=tn(e)),i){let f=rn(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=lh(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ih(r,e){return!Gt(r)||Ot(r).position==="fixed"?null:e?e(r):r.offsetParent}function dh(r,e){let t=ft(r);if(!Gt(r))return t;let i=ih(r,e);for(;i&&Jf(i)&&Ot(i).position==="static";)i=ih(i,e);return i&&(wr(i)==="html"||wr(i)==="body"&&Ot(i).position==="static"&&!ta(i))?t:i||eh(r)||t}function Dx(r){return Ot(r).direction==="rtl"}var Rx,Bx,ni,Hl,ph=p(()=>{Ul();Ul();Yf();rh();Rx=Er(0);Bx=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||dh,a=this.getDimensions;return{reference:Fx(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};ni={convertOffsetParentRelativeRectToViewportRelativeRect:Lx,getDocumentElement:Rr,getClippingRect:Px,getOffsetParent:dh,getElementRects:Bx,getClientRects:Ix,getDimensions:Nx,getScale:ii,isElement:nr,isRTL:Dx},Hl=(r,e,t)=>{let i=new Map,n={platform:ni,...t},a={...n.platform,_c:i};return Zf(r,e,{...n,platform:a})}});function Vl(r){return Mx(r)}function Wl(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Mx(r){for(let e=r;e;e=Wl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Wl(r);e;e=Wl(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}var uh=p(()=>{});var Kl={};ne(Kl,{computeOffsetAutoPosition:()=>Gl,computeOffsetPosition:()=>jl});async function jl(r,e,t){return Hl(r,e,{platform:{...ni,getOffsetParent:i=>ni.getOffsetParent(i,Vl)},middleware:[Dl({crossAxis:!0}),Jn({allowedPlacements:[t]})]})}async function Gl(r,e,t,i,n,a,s=4){return Hl(r,e,{placement:t,strategy:n,platform:{...ni,getOffsetParent:l=>ni.getOffsetParent(l,Vl)},middleware:[Bl(s),Jn({allowedPlacements:i}),Ml({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var oa=p(()=>{"use strict";ph();uh()});var ql={};ne(ql,{ScopedRegistryLitElement:()=>on});var on,ia=p(()=>{"use strict";P();Nn();on=class extends Cr{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(t);return Mi(i,e.elementStyles),i}}});var Yl={};ne(Yl,{shadowQuerySelector:()=>Zl,shadowQuerySelectorAll:()=>Ux});function Zl(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Ux(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var na=p(()=>{"use strict"});var Ql={};ne(Ql,{FtLitElement:()=>H});var nn,gh,fh,hh,yh,mh,H,an=p(()=>{"use strict";Q();qn();Gn();ia();na();nn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},fh=Symbol("constructorPrototype"),hh=Symbol("constructorName"),yh=Symbol("exportpartsDebouncer"),mh=Symbol("dynamicDependenciesLoaded"),H=class extends on{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[gh]=new me(5),this[hh]=this.constructor.name,this[fh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[hh]&&Object.setPrototypeOf(this,this[fh])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[mh]||(e[mh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=Zl(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,i,n;if(((i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&i!==void 0&&i)&&this[yh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,i,n,a,s,l;let d=v=>v!=null&&v.trim().length>0,f=e.filter(d).map(v=>v.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let v of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let C=(a=(n=v.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],O=(l=(s=v.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(R=>R.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...C,...O).filter(d).map(R=>R.trim()).forEach(R=>g.add(R))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(v=>f.map(C=>`${v}:${C}--${v}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};gh=yh;nn([h()],H.prototype,"exportpartsPrefix",void 0);nn([we([])],H.prototype,"exportpartsPrefixes",void 0);nn([h()],H.prototype,"customStylesheet",void 0);nn([h()],H.prototype,"elementToFocus",void 0);nn([D()],H.prototype,"useAdoptedStyleSheets",void 0)});var Xl={};ne(Xl,{FtdsBase:()=>sn,toFtdsBase:()=>ar});function ar(r){class e extends r{constructor(){super(...arguments),this.size=Ve.medium,this.family=Ct.neutral}getDesignSystemBaseClasses(){return{[Ol(this.family)]:!0,[El(this.size)]:!0}}}return bh([h()],e.prototype,"size",void 0),bh([h()],e.prototype,"family",void 0),e}var bh,sn,Jl=p(()=>{"use strict";an();Q();ee();bh=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};sn=class extends ar(H){}});var vh={};var ec=p(()=>{"use strict"});var Oo,xh=p(()=>{Oo=class r{constructor(e,t=!0,i=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=i,this.iframesTimeout=n}static matches(e,t){let i=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=t.filter(a=>a.contains(i)).length>0;t.indexOf(i)===-1&&!n&&t.push(i)}),t}getIframeContents(e,t,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&t(n)}isIframeBlank(e){let t="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&i!==t&&i}observeIframeLoad(e,t,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,i):this.getIframeContents(e,t,i):this.observeIframeLoad(e,t,i)}catch{i()}}waitForIframes(e,t){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||t()})},n=>{n||t()})}forEachIframe(e,t,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),d()},d)})}createIterator(e,t,i){return document.createNodeIterator(e,t,i,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),i;return t===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:t,node:i}}checkIframeFilter(e,t,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,t,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,i,n)})})}iterateThroughNodes(e,t,i,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(f,g,v,l),v=>{this.createInstanceOnIframe(v).forEachNode(e,C=>d.push(C),n)}),d.push(f);d.forEach(v=>{i(v)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,t,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var ln,Sh=p(()=>{xh();ln=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.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 Oo(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[t]=="function"&&i[t](`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 t=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&t.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):i.trim()&&t.indexOf(i)===-1&&t.push(i)}),{keywords:t.sort((i,n)=>n.length-i.length),length:t.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 t=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,t.push(n),i=s)}),t}callNoMatchOnInvalidRanges(e,t){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,t,i){let n,a=!0,s=i.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:i})})}matchesExclude(e){return Oo.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(i-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),v=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+v,e.nodes.forEach((C,O)=>{O>=l&&(e.nodes[O].start>0&&O!==l&&(e.nodes[O].start-=g),e.nodes[O].end-=g)}),i-=g,a(s.node.previousSibling,s.start),i>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,v)=>{e.lastIndex=v,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,v=>t(v,l,a.value.substring(f,g),d),v=>{i(v,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));t.replaceChild(i,e),this.ie?this.normalizeTextNode(t):t.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,t){this.opt=t,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,t){this.opt=t;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(v,C)=>this.opt.filter(C,f,i,m),v=>{m++,i++,this.opt.each(v)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,t){this.opt=t;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Oo.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function tc(r){let e=new ln(r);return this.mark=(t,i)=>(e.mark(t,i),this),this.markRegExp=(t,i)=>(e.markRegExp(t,i),this),this.markRanges=(t,i)=>(e.markRanges(t,i),this),this.unmark=t=>(e.unmark(t),this),this}var Ch=p(()=>{Sh()});var oc={};ne(oc,{highlightHtml:()=>rc,highlightHtmlColorCssVariable:()=>Oh,highlightHtmlStyles:()=>Hx});function rc(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new zx(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var zx,Oh,Hx,ic=p(()=>{"use strict";P();ee();Ch();zx=tc,Oh=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Hx=L`
|
|
1
|
+
"use strict";(()=>{var uv=Object.create;var gs=Object.defineProperty;var fv=Object.getOwnPropertyDescriptor;var hv=Object.getOwnPropertyNames;var mv=Object.getPrototypeOf,gv=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var yv=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ie=(r,e)=>{for(var t in e)gs(r,t,{get:e[t],enumerable:!0})},bv=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hv(e))!gv.call(r,n)&&n!==t&&gs(r,n,{get:()=>e[n],enumerable:!(i=fv(e,n))||i.enumerable});return r};var vv=(r,e,t)=>(t=r!=null?uv(mv(r)):{},bv(e||!r||!r.__esModule?gs(t,"default",{value:r,enumerable:!0}):t,r));var Su=p(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(k,w){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get(w)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let _=w.prototype.attributeChangedCallback,G=new Set(w.observedAttributes||[]);b(w,G,_);let J={elementClass:w,connectedCallback:w.prototype.connectedCallback,disconnectedCallback:w.prototype.disconnectedCallback,adoptedCallback:w.prototype.adoptedCallback,attributeChangedCallback:_,formAssociated:w.formAssociated,formAssociatedCallback:w.prototype.formAssociatedCallback,formDisabledCallback:w.prototype.formDisabledCallback,formResetCallback:w.prototype.formResetCallback,formStateRestoreCallback:w.prototype.formStateRestoreCallback,observedAttributes:G};this._definitionsByTag.set(k,J),this._definitionsByClass.set(w,J);let ue=t.call(i,k);ue||(ue=m(k),e.call(i,k,ue)),this===window.customElements&&(s.set(w,J),J.standInClass=ue);let ce=this._awaitingUpgrade.get(k);if(ce){this._awaitingUpgrade.delete(k);for(let v of ce)a.delete(v),C(v,J,!0)}let K=this._whenDefinedPromises.get(k);return K!==void 0&&(K.resolve(w),this._whenDefinedPromises.delete(k)),w}upgrade(){B.push(this),i.upgrade.apply(i,arguments),B.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let w=this._getDefinition(k);if(w!==void 0)return Promise.resolve(w.elementClass);let _=this._whenDefinedPromises.get(k);return _===void 0&&(_={},_.promise=new Promise(G=>_.resolve=G),this._whenDefinedPromises.set(k,_)),_.promise}_upgradeWhenDefined(k,w,_){let G=this._awaitingUpgrade.get(w);G||this._awaitingUpgrade.set(w,G=new Set),_?G.add(k):G.delete(k)}};let d;window.HTMLElement=function(){let w=d;if(w)return d=void 0,w;let _=s.get(this.constructor);if(!_)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return w=Reflect.construct(r,[],_.standInClass),Object.setPrototypeOf(w,this.constructor.prototype),n.set(w,_),w},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let w=k.getRootNode();if(!f(w)){let _=B[B.length-1];if(_ instanceof CustomElementRegistry)return _;w=_.getRootNode(),f(w)||(w=l.get(w)?.getRootNode()||document)}return w.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let _=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(_,HTMLElement.prototype);let G=g(_)||window.customElements,J=G._getDefinition(k);return J?C(_,J):a.set(_,G),_}connectedCallback(){let _=n.get(this);_?_.connectedCallback&&_.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let _=n.get(this);_?_.disconnectedCallback&&_.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let _=n.get(this);_&&_.formAssociated&&_?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let _=n.get(this);_?.formAssociated&&_?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let _=n.get(this);_?.formAssociated&&_?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let _=n.get(this);_?.formAssociated&&_?.formStateRestoreCallback?.apply(this,arguments)}},b=(k,w,_)=>{if(w.size===0||_===void 0)return;let G=k.prototype.setAttribute;G&&(k.prototype.setAttribute=function(ce,K){let v=ce.toLowerCase();if(w.has(v)){let R=this.getAttribute(v);G.call(this,v,K),_.call(this,v,R,K)}else G.call(this,v,K)});let J=k.prototype.removeAttribute;J&&(k.prototype.removeAttribute=function(ce){let K=ce.toLowerCase();if(w.has(K)){let v=this.getAttribute(K);J.call(this,K),_.call(this,K,v,null)}else J.call(this,K)});let ue=k.prototype.toggleAttribute;ue&&(k.prototype.toggleAttribute=function(ce,K){let v=ce.toLowerCase();if(w.has(v)){let R=this.getAttribute(v);ue.call(this,v,K);let j=this.getAttribute(v);_.call(this,v,R,j)}else ue.call(this,v,K)})},O=k=>{let w=Object.getPrototypeOf(k);if(w!==window.HTMLElement)return w===r?Object.setPrototypeOf(k,window.HTMLElement):O(w)},C=(k,w,_=!1)=>{Object.setPrototypeOf(k,w.elementClass.prototype),n.set(k,w),d=k;try{new w.elementClass}catch{O(w.elementClass),new w.elementClass}w.attributeChangedCallback&&w.observedAttributes.forEach(G=>{k.hasAttribute(G)&&w.attributeChangedCallback.call(k,G,null,k.getAttribute(G))}),_&&w.connectedCallback&&k.isConnected&&w.connectedCallback.call(k)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let w=I.apply(this,arguments);return k.customElements&&(w.customElements=k.customElements),w};let B=[document],F=(k,w,_=void 0)=>{let G=(_?Object.getPrototypeOf(_):k.prototype)[w];k.prototype[w]=function(){B.push(this);let J=G.apply(_||this,arguments);return J!==void 0&&l.set(J,this),B.pop(),J}};F(ShadowRoot,"createElement",document),F(ShadowRoot,"importNode",document),F(Element,"insertAdjacentHTML");let U=(k,w)=>{let _=Object.getOwnPropertyDescriptor(k.prototype,w);Object.defineProperty(k.prototype,w,{..._,set(G){B.push(this),_.set.call(this,G),B.pop()}})};if(U(Element,"innerHTML"),U(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,w=HTMLElement.prototype.attachInternals,_=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let K=w.call(this,...ce);return k.set(K,this),K},_.forEach(ce=>{let K=window.ElementInternals.prototype,v=K[ce];K[ce]=function(...R){let j=k.get(this);if(n.get(j).formAssociated===!0)return v?.call(this,...R);throw new DOMException(`Failed to execute ${v} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class G extends Array{constructor(K){super(...K),this._elements=K}get value(){return this._elements.find(K=>K.checked===!0)?.value||""}}class J{constructor(K){let v=new Map;K.forEach((R,j)=>{let he=R.getAttribute("name"),Oe=v.get(he)||[];this[+j]=R,Oe.push(R),v.set(he,Oe)}),this.length=K.length,v.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new G(R))})}namedItem(K){return this[K]}}let ue=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=ue.get.call(this,[]),K=[];for(let v of ce){let R=n.get(v);(!R||R.formAssociated===!0)&&K.push(v)}return new J(K)}})}}});var Cu=p(()=>{"use strict";Su();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,i,n)=>{if(i!==null)try{e.bind(window.customElements)(t,i,n)}catch(a){console.info(t,i,n,a)}}}});var Pn,Mi,ys,Ou,Vo,Jt,A,Ui,Nn,Fn=p(()=>{Pn=globalThis,Mi=Pn.ShadowRoot&&(Pn.ShadyCSS===void 0||Pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ys=Symbol(),Ou=new WeakMap,Vo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ys)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Mi&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Ou.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ou.set(t,e))}return e}toString(){return this.cssText}},Jt=r=>new Vo(typeof r=="string"?r:r+"",void 0,ys),A=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Vo(t,r,ys)},Ui=(r,e)=>{if(Mi)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Pn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Nn=Mi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return Jt(t)})(r):r});var xv,Sv,Cv,Ov,Ev,wv,Bn,Eu,Rv,Av,zi,jo,Hi,wu,er,Wi=p(()=>{Fn();Fn();({is:xv,defineProperty:Sv,getOwnPropertyDescriptor:Cv,getOwnPropertyNames:Ov,getOwnPropertySymbols:Ev,getPrototypeOf:wv}=Object),Bn=globalThis,Eu=Bn.trustedTypes,Rv=Eu?Eu.emptyScript:"",Av=Bn.reactiveElementPolyfillSupport,zi=(r,e)=>r,jo={toAttribute(r,e){switch(e){case Boolean:r=r?Rv:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Hi=(r,e)=>!xv(r,e),wu={attribute:!0,type:String,converter:jo,reflect:!1,useDefault:!1,hasChanged:Hi};Symbol.metadata??=Symbol("metadata"),Bn.litPropertyMetadata??=new WeakMap;er=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,t=wu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Sv(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=Cv(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??wu}static _$Ei(){if(this.hasOwnProperty(zi("elementProperties")))return;let e=wv(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zi("properties"))){let t=this.properties,i=[...Ov(t),...Ev(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(Nn(n))}else e!==void 0&&t.push(Nn(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ui(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,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:jo).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??Hi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.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(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};er.elementStyles=[],er.shadowRootOptions={mode:"open"},er[zi("elementProperties")]=new Map,er[zi("finalized")]=new Map,Av?.({ReactiveElement:er}),(Bn.reactiveElementVersions??=[]).push("2.1.0")});function Pu(r,e){if(!Cs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ru!==void 0?Ru.createHTML(e):e}function mo(r,e,t=r,i){if(e===et)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=mo(r,n._$AS(r,e.values),n,i)),e}var vs,Dn,Ru,xs,Sr,Ss,Lv,ho,ji,Gi,Cs,$u,bs,Vi,Au,Lu,uo,Iu,ku,Tu,Os,S,Es,ws,et,T,_u,fo,Nu,Ki,Mn,Go,go,Un,zn,Hn,Wn,Rs,Iv,As,Ht=p(()=>{vs=globalThis,Dn=vs.trustedTypes,Ru=Dn?Dn.createPolicy("lit-html",{createHTML:r=>r}):void 0,xs="$lit$",Sr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ss="?"+Sr,Lv=`<${Ss}>`,ho=document,ji=()=>ho.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",Cs=Array.isArray,$u=r=>Cs(r)||typeof r?.[Symbol.iterator]=="function",bs=`[
|
|
2
|
+
\f\r]`,Vi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Au=/-->/g,Lu=/>/g,uo=RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Iu=/'/g,ku=/"/g,Tu=/^(?:script|style|textarea|title)$/i,Os=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Os(1),Es=Os(2),ws=Os(3),et=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),_u=new WeakMap,fo=ho.createTreeWalker(ho,129);Nu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Vi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,g=s.exec(d),g!==null);)b=s.lastIndex,s===Vi?g[1]==="!--"?s=Au:g[1]!==void 0?s=Lu:g[2]!==void 0?(Tu.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=uo):g[3]!==void 0&&(s=uo):s===uo?g[0]===">"?(s=n??Vi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?uo:g[3]==='"'?ku:Iu):s===ku||s===Iu?s=uo:s===Au||s===Lu?s=Vi:(s=uo,n=void 0);let O=s===uo&&r[l+1].startsWith("/>")?" ":"";a+=s===Vi?d+Lv:m>=0?(i.push(f),d.slice(0,m)+xs+d.slice(m)+Sr+O):d+Sr+(m===-2?l:O)}return[Pu(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ki=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Nu(e,t);if(this.el=r.createElement(f,i),fo.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=fo.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(xs)){let b=g[s++],O=n.getAttribute(m).split(Sr),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:C[2],strings:O,ctor:C[1]==="."?Un:C[1]==="?"?zn:C[1]==="@"?Hn:go}),n.removeAttribute(m)}else m.startsWith(Sr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Tu.test(n.tagName)){let m=n.textContent.split(Sr),b=m.length-1;if(b>0){n.textContent=Dn?Dn.emptyScript:"";for(let O=0;O<b;O++)n.append(m[O],ji()),fo.nextNode(),d.push({type:2,index:++a});n.append(m[b],ji())}}}else if(n.nodeType===8)if(n.data===Ss)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Sr,m+1))!==-1;)d.push({type:7,index:a}),m+=Sr.length-1}a++}}static createElement(e,t){let i=ho.createElement("template");return i.innerHTML=e,i}};Mn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??ho).importNode(t,!0);fo.currentNode=n;let a=fo.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Go(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Wn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=fo.nextNode(),s++)}return fo.currentNode=ho,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Go=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=mo(this,e,t),Gi(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==et&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$u(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!==T&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(ho.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ki.createElement(Pu(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Mn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=_u.get(e.strings);return t===void 0&&_u.set(e.strings,t=new Ki(e)),t}k(e){Cs(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.O(ji()),this.O(ji()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},go=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=mo(this,e,t,0),s=!Gi(e)||e!==this._$AH&&e!==et,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=mo(this,l[i+d],t,d),f===et&&(f=this._$AH[d]),s||=!Gi(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Un=class extends go{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},zn=class extends go{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Hn=class extends go{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=mo(this,e,t,0)??T)===et)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Wn=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){mo(this,e)}},Rs={M:xs,P:Sr,A:Ss,C:1,L:Nu,R:Mn,D:$u,V:mo,I:Go,H:go,N:zn,U:Hn,B:Un,F:Wn},Iv=vs.litHtmlPolyfillSupport;Iv?.(Ki,Go),(vs.litHtmlVersions??=[]).push("3.3.0");As=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new Go(e.insertBefore(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ls,Cr,kv,_v,Fu=p(()=>{Wi();Wi();Ht();Ht();Ls=globalThis,Cr=class extends er{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 t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=As(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return et}};Cr._$litElement$=!0,Cr.finalized=!0,Ls.litElementHydrateSupport?.({LitElement:Cr});kv=Ls.litElementPolyfillSupport;kv?.({LitElement:Cr});_v={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ls.litElementVersions??=[]).push("4.2.0")});var OS,Bu=p(()=>{OS=!1});var Is={};ie(Is,{CSSResult:()=>Vo,LitElement:()=>Cr,ReactiveElement:()=>er,_$LE:()=>_v,_$LH:()=>Rs,adoptStyles:()=>Ui,css:()=>A,defaultConverter:()=>jo,getCompatibleStyle:()=>Nn,html:()=>S,isServer:()=>OS,mathml:()=>ws,noChange:()=>et,notEqual:()=>Hi,nothing:()=>T,render:()=>As,supportsAdoptingStyleSheets:()=>Mi,svg:()=>Es,unsafeCSS:()=>Jt});var P=p(()=>{Wi();Ht();Fu();Bu()});var $v,Du=p(()=>{$v=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Mu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var Tv,Mu,ks=p(()=>{Wi();Tv={attribute:!0,type:String,converter:jo,reflect:!1,hasChanged:Hi},Mu=(r=Tv,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),i==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(i==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)}});function D(r){return h({...r,state:!0,attribute:!1})}var Uu=p(()=>{ks();});function Ko(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var zu=p(()=>{});var Wt,qo=p(()=>{Wt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function z(r,e){return(t,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof i=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return Wt(t,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Wt(t,i,{get(){return a(this)}})}}var Hu=p(()=>{qo();});function _s(r){return(e,t)=>Wt(e,t,{get(){return(this.renderRoot??(Pv??=document.createDocumentFragment())).querySelectorAll(r)}})}var Pv,Wu=p(()=>{qo();});function Nv(r){return(e,t)=>Wt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Vu=p(()=>{qo();});function $s(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Wt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var ju=p(()=>{qo();});function Ts(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Wt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Gu=p(()=>{qo();});var Ps={};ie(Ps,{customElement:()=>$v,eventOptions:()=>Ko,property:()=>h,query:()=>z,queryAll:()=>_s,queryAssignedElements:()=>$s,queryAssignedNodes:()=>Ts,queryAsync:()=>Nv,standardProperty:()=>Mu,state:()=>D});var Y=p(()=>{Du();ks();Uu();zu();Hu();Wu();Vu();ju();Gu()});var tr,Vt,kt,yo=p(()=>{tr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vt=r=>(...e)=>({_$litDirective$:r,values:e}),kt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Fv,qu,Ku,Zo,Mr,Bv,Zu,Yu,Vn,Ns=p(()=>{Ht();({I:Fv}=Rs),qu=r=>r.strings===void 0,Ku=()=>document.createComment(""),Zo=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(Ku(),n),s=i.insertBefore(Ku(),n);t=new Fv(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Mr=(r,e,t=r)=>(r._$AI(e,t),r),Bv={},Zu=(r,e=Bv)=>r._$AH=e,Yu=r=>r._$AH,Vn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let i=e.nextSibling;e.remove(),e=i}}});var Qu,Pe,Xu=p(()=>{Ht();yo();Ns();Qu=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Pe=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,i]){let n=Yu(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,b=n.length-1,O=0,C=a.length-1;for(;m<=b&&O<=C;)if(n[m]===null)m++;else if(n[b]===null)b--;else if(l[m]===s[O])d[O]=Mr(n[m],a[O]),m++,O++;else if(l[b]===s[C])d[C]=Mr(n[b],a[C]),b--,C--;else if(l[m]===s[C])d[C]=Mr(n[m],a[C]),Zo(r,d[C+1],n[m]),m++,C--;else if(l[b]===s[O])d[O]=Mr(n[b],a[O]),Zo(r,n[m],n[b]),b--,O++;else if(f===void 0&&(f=Qu(s,O,C),g=Qu(l,m,b)),f.has(l[m]))if(f.has(l[b])){let I=g.get(s[O]),B=I!==void 0?n[I]:null;if(B===null){let F=Zo(r,n[m]);Mr(F,a[O]),d[O]=F}else d[O]=Mr(B,a[O]),Zo(r,n[m],B),n[I]=null;O++}else Vn(n[b]),b--;else Vn(n[m]),m++;for(;O<=C;){let I=Zo(r,d[C+1]);Mr(I,a[O]),d[O++]=I}for(;m<=b;){let I=n[m++];I!==null&&Vn(I)}return this.ut=s,Zu(r,d),et}})});var Fs={};ie(Fs,{repeat:()=>Pe});var jt=p(()=>{Xu()});var be,Ju=p(()=>{Ht();yo();be=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return et}})});var Bs={};ie(Bs,{classMap:()=>be});var nt=p(()=>{Ju()});var ef,Dv,Mv,tf=p(()=>{Ht();yo();ef="important",Dv=" !"+ef,Mv=Vt(class extends kt{constructor(r){if(super(r),r.type!==tr.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce((e,t)=>{let i=r[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Dv);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?ef:""):t[i]=n}}return et}})});var Ds={};ie(Ds,{styleMap:()=>Mv});var rf=p(()=>{tf()});var Yo,bo,of=p(()=>{Ht();yo();Yo=class extends kt{constructor(e){if(super(e),this.it=T,e.type!==tr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===et)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 t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Yo.directiveName="unsafeHTML",Yo.resultType=1;bo=Vt(Yo)});var Ms={};ie(Ms,{UnsafeHTMLDirective:()=>Yo,unsafeHTML:()=>bo});var qi=p(()=>{of()});var Us={};ie(Us,{CancelablePromise:()=>jn,CanceledPromiseError:()=>rr,cancelable:()=>Qo});var rr,jn,Qo,Gn=p(()=>{"use strict";rr=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},jn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new rr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new rr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Qo=r=>new jn((e,t)=>r.then(e).catch(t))});var Vs={};ie(Vs,{FtNotificationEvent:()=>zs,PostResizeEvent:()=>Ws,PreResizeEvent:()=>Hs,WithEventBus:()=>Or,withEventBus:()=>Kn});function Kn(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,i,n){this.eventBus.addEventListener(t,i,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,i,n){this.eventBus.removeEventListener(t,i,n)}}}var zs,Hs,Ws,Or,Zi=p(()=>{"use strict";zs=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Hs=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ws=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};Or=class extends Kn(Object){}});var js={};ie(js,{CacheRegistry:()=>or,ClearCacheEvent:()=>Yi});var Yi,or,Gs=p(()=>{"use strict";Gn();Zi();Yi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},or=class extends Or{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new Yi(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Yi([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=Qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var Zs={};ie(Zs,{ClusteringHelper:()=>qs,formatHierarchicalValues:()=>Ks});function Ks(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var qs,Ys=p(()=>{"use strict";qs=class r{constructor(e,t,i,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var t,i,n,a,s;let l=((a=(i=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&i!==void 0?i:(n=e.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,i){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(Ks(l)),s.push(Ks(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,i="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,b,O)=>O.findIndex(C=>C.value===m.value)===b).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,b)=>this.compareMetadata(m.metadata.value,b.metadata.value,e,t))}compareMetadata(e,t,i,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let i=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(i=>t.some(n=>n.key===i.key&&n.value===i.value)).length}}});var Qs={};ie(Qs,{Debouncer:()=>me});var me,qn=p(()=>{"use strict";me=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,i)=>{this.resolvePromise=t,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var el={};ie(el,{dateReviver:()=>Uv,deepCopy:()=>Xi,deepEqual:()=>Ze,delay:()=>Zn,eventPathContainsMatchingElement:()=>Hv,flatDeep:()=>St,getComposedPathTo:()=>Xs,hasChanged:()=>Ur,last:()=>Wv,minmax:()=>vo,parseDate:()=>nf,randomId:()=>Js,unslotText:()=>Jo,waitFor:()=>Xo,waitUntil:()=>Qi});async function Qi(r,e=10,t=2e4){await Xo(async()=>await r()||void 0,e,t)}async function Xo(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await Zn(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function St(r,e){return r.flatMap(t=>[t,...St(e(t),e)])}function Uv(...r){return(e,t)=>r.includes(e)?nf(t):t}function nf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,i,n)=>t+i+":"+n),new Date(r)}function zv(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ze(r[i],e[i]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;for(i of r.entries())if(!Ze(i[1],e.get(i[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),t=n.length,t!==a(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=t;i--!==0;){let s=n[i];if(!Ze(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ze(r,e){try{return zv(r,e)}catch{return!1}}function Ur(r,e){return!Ze(r,e)}function Hv(r,e,t=window.document.body){if(e.length>0){let i=r.composedPath();for(let n of i){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function vo(r,e,t){return Math.min(Math.max(r,e),t)}function Wv(r){return r[r.length-1]}function Jo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Jo(e)).join(""):r?.textContent||""}function Xs(r){let e=[],t=i=>{i.stopPropagation(),e=i.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function Xi(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Js(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}var Zn,zr=p(()=>{"use strict";Zn=r=>new Promise(e=>setTimeout(e,r))});var tl={};ie(tl,{customElement:()=>M,isNumber:()=>sf,jsonProperty:()=>we,numberProperty:()=>af,optionalNumberProperty:()=>Vv});function we(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ur,...e??{}})}function Vv(r){return af(r)}function af(r){return h({type:Object,converter:{fromAttribute:e=>{if(console.log("from attribute",e,r),e!=null)return sf(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function sf(r){return!isNaN(parseFloat(r))}var M,Yn=p(()=>{"use strict";Y();zr();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Hr(`${r.name}: ${e}`)}var Hr,o,se=p(()=>{P();Hr=r=>typeof r=="string"?Jt(r):r,o=class{static create(e,t,i,n){let a=l=>Hr(l??n),s=A`var(${Hr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Hr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=A`var(${Hr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Hr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=A`var(${Hr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>A`var(${Hr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,rl,ol,il,nl,al,sl,ll,cl,xo,lf,dl,pl,ul,fl,hl,ml,gl,yl,bl,vl,Wr,xl,Sl,Cl,Ol,El,Ji,jv,le=p(()=>{se();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},rl={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},ol={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},il={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},nl={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},al={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},sl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},ll={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},cl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},xo={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},lf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},dl={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},pl={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ul={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},fl={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},hl={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Wr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Cl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Ol={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},El={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Ji={display:rl,"title-1":ol,"title-2":il,"title-3":nl,"body-1-regular":al,"body-1-medium":sl,"body-1-semibold":ll,"body-2-regular":cl,"body-2-medium":xo,"body-2-medium-underline":lf,"body-2-semibold":dl,"label-1-medium":pl,"label-1-semibold":ul,"label-1-bold":fl,"label-2-medium":hl,"label-2-semibold":ml,"label-2-bold":gl,"caption-1-medium":yl,"caption-1-semibold":bl,"caption-1-bold":vl,"caption-2-medium":Wr,"caption-2-semibold":xl,"caption-2-bold":Sl,"caption-3-medium":Cl,"caption-3-semibold":Ol,"caption-3-bold":El},jv=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{se();le();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var x,cf=p(()=>{se();le();ge();x={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var Gv,df=p(()=>{se();le();ge();Gv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var pe,pf=p(()=>{se();le();ge();pe={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var Kv,uf=p(()=>{se();le();ge();Kv={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var qv,ff=p(()=>{se();le();ge();qv={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Z,hf=p(()=>{se();le();ge();Z={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var Zv,mf=p(()=>{se();le();ge();Zv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var Yv,gf=p(()=>{se();le();ge();Yv={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var Qv,yf=p(()=>{se();le();ge();Qv={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var Xv,bf=p(()=>{se();le();ge();Xv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var Jv,vf=p(()=>{se();le();ge();Jv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var ex,xf=p(()=>{se();le();ge();ex={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var tx,Sf=p(()=>{se();le();tx={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var rx,Cf=p(()=>{se();le();ge();rx={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var ox,Of=p(()=>{se();le();ge();ox={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var ix,Ef=p(()=>{se();le();ge();ix={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var nx,wf=p(()=>{se();le();ge();nx={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var ax,Rf=p(()=>{se();le();ge();ax={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var sx,Af=p(()=>{se();le();ge();sx={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var lx,Lf=p(()=>{se();le();ge();lx={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var cx,If=p(()=>{se();le();ge();cx={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var dx,kf=p(()=>{se();le();ge();dx={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var px,_f=p(()=>{se();le();ge();px={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var ux,$f=p(()=>{se();le();ge();ux={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var fx,Tf=p(()=>{se();le();fx={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var hx,Pf=p(()=>{se();le();hx={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var mx,Nf=p(()=>{se();le();ge();mx={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var gx,Ff=p(()=>{se();le();ge();gx={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var yx,Bf=p(()=>{se();le();ge();yx={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var bx,Df=p(()=>{se();le();ge();bx={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var vx,Mf=p(()=>{se();le();ge();vx={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var xx,Uf=p(()=>{se();le();ge();xx={nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)}});var Sx,zf=p(()=>{se();le();Sx={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Hf=p(()=>{le();ge();cf();df();pf();uf();ff();hf();mf();gf();yf();bf();vf();xf();Sf();Cf();Of();Ef();wf();Rf();Af();Lf();If();kf();_f();$f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf();zf()});function wl(r){return`ftds--family-${r}`}function Rl(r){return`ftds--size-${r}`}var Ct,Ve,Wf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ct||(Ct={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(Ve||(Ve={}))});var ee=p(()=>{se();Hf();Wf()});var Al={};ie(Al,{DesignSystemFamily:()=>Ct,DesignSystemSize:()=>Ve,FtCssVariableFactory:()=>o,badge:()=>Qv,banner:()=>Yv,button:()=>x,chart:()=>fx,checkbox:()=>Gv,chip:()=>Z,chipChoice:()=>qv,collapsible:()=>px,comboboxMultiSelect:()=>cx,comboboxSingleSelect:()=>lx,dateRangePicker:()=>Sx,drawer:()=>ox,floatingMenu:()=>sx,foundation:()=>c,link:()=>Zv,modal:()=>rx,notice:()=>mx,notification:()=>yx,pageDesigner:()=>hx,pageFooter:()=>ex,pageHeader:()=>Jv,pageLayout:()=>tx,popover:()=>dx,radio:()=>pe,reorderableList:()=>vx,resolveFamilyClass:()=>wl,resolveSizeClass:()=>Rl,semantic:()=>u,setVariable:()=>y,switch_:()=>ux,table:()=>Kv,tabs:()=>ix,textArea:()=>ax,textInput:()=>nx,titleBreadcrumb:()=>Xv,toggle:()=>gx,tooltip:()=>bx,treeList:()=>xx,typographies:()=>Ji,typographyBody1Medium:()=>sl,typographyBody1Regular:()=>al,typographyBody1Semibold:()=>ll,typographyBody2Medium:()=>xo,typographyBody2MediumUnderline:()=>lf,typographyBody2Regular:()=>cl,typographyBody2Semibold:()=>dl,typographyCaption1Bold:()=>vl,typographyCaption1Medium:()=>yl,typographyCaption1Semibold:()=>bl,typographyCaption2Bold:()=>Sl,typographyCaption2Medium:()=>Wr,typographyCaption2Semibold:()=>xl,typographyCaption3Bold:()=>El,typographyCaption3Medium:()=>Cl,typographyCaption3Semibold:()=>Ol,typographyDisplay:()=>rl,typographyLabel1Bold:()=>fl,typographyLabel1Medium:()=>pl,typographyLabel1Semibold:()=>ul,typographyLabel2Bold:()=>gl,typographyLabel2Medium:()=>hl,typographyLabel2Semibold:()=>ml,typographyTitle1:()=>ol,typographyTitle2:()=>il,typographyTitle3:()=>nl,typographyVariants:()=>jv});var Qn=p(()=>{"use strict";ee()});var Ll={};ie(Ll,{designSystemVariables:()=>E});var E,Il=p(()=>{"use strict";Qn();E={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var kl={};ie(kl,{DynamicImporter:()=>Xn,dynamicImporter:()=>Cx});var Xn,Cx,_l=p(()=>{"use strict";Xn=class{async import(e){return import(e)}},Cx=new Xn});function Pl(r,e,t){return Vr(r,Jn(e,t))}function ei(r,e){return typeof r=="function"?r(e):r}function jr(r){return r.split("-")[0]}function ir(r){return r.split("-")[1]}function Nl(r){return r==="x"?"y":"x"}function Fl(r){return r==="y"?"height":"width"}function ti(r){return["top","bottom"].includes(jr(r))?"y":"x"}function Bl(r){return Nl(ti(r))}function Gf(r,e,t){t===void 0&&(t=!1);let i=ir(r),n=Bl(r),a=Fl(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=$l(s)),[s,$l(s)]}function Kf(r){return r.replace(/start|end/g,e=>Ex[e])}function $l(r){return r.replace(/left|right|bottom|top/g,e=>Ox[e])}function wx(r){return{top:0,right:0,bottom:0,left:0,...r}}function qf(r){return typeof r!="number"?wx(r):{top:r,right:r,bottom:r,left:r}}function So(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var jf,Vf,Tl,Jn,Vr,Ox,Ex,Dl=p(()=>{jf=["top","right","bottom","left"],Vf=["start","end"],Tl=jf.reduce((r,e)=>r.concat(e,e+"-"+Vf[0],e+"-"+Vf[1]),[]),Jn=Math.min,Vr=Math.max,Ox={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"}});function Zf(r,e,t){let{reference:i,floating:n}=r,a=ti(e),s=Bl(e),l=Fl(s),d=jr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,O;switch(d){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y:m};break;case"left":O={x:i.x-n.width,y:m};break;default:O={x:i.x,y:i.y}}switch(ir(e)){case"start":O[s]-=b*(t&&f?-1:1);break;case"end":O[s]+=b*(t&&f?-1:1);break}return O}async function ea(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:O=0}=ei(e,r),C=qf(O),B=l[b?m==="floating"?"reference":"floating":m],F=So(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(B)))==null||t?B:B.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),U=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},_=So(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:U,offsetParent:k,strategy:d}):U);return{top:(F.top-_.top+C.top)/w.y,bottom:(_.bottom-F.bottom+C.bottom)/w.y,left:(F.left-_.left+C.left)/w.x,right:(_.right-F.right+C.right)/w.x}}function Rx(r,e,t){return(r?[...t.filter(n=>ir(n)===r),...t.filter(n=>ir(n)!==r)]:t.filter(n=>jr(n)===n)).filter(n=>r?ir(n)===r||(e?Kf(n)!==n:!1):!0)}async function Ax(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=jr(t),l=ir(t),d=ti(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=ei(e,r),{mainAxis:b,crossAxis:O,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof C=="number"&&(O=l==="end"?C*-1:C),d?{x:O*g,y:b*f}:{x:b*f,y:O*g}}var Yf,ta,Ml,Ul,zl,Hl=p(()=>{Dl();Dl();Yf=async(r,e,t)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=Zf(f,i,d),b=i,O={},C=0;for(let I=0;I<l.length;I++){let{name:B,fn:F}=l[I],{x:U,y:k,data:w,reset:_}=await F({x:g,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:f,platform:s,elements:{reference:r,floating:e}});g=U??g,m=k??m,O={...O,[B]:{...O[B],...w}},_&&C<=50&&(C++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(f=_.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):_.rects),{x:g,y:m}=Zf(f,b,d)),I=-1)}return{x:g,y:m,placement:b,strategy:n,middlewareData:O}};ta=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:b=Tl,autoAlignment:O=!0,...C}=ei(r,e),I=m!==void 0||b===Tl?Rx(m||null,O,b):b,B=await ea(e,C),F=((t=s.autoPlacement)==null?void 0:t.index)||0,U=I[F];if(U==null)return{};let k=Gf(U,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==U)return{reset:{placement:I[0]}};let w=[B[jr(U)],B[k[0]],B[k[1]]],_=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:U,overflows:w}],G=I[F+1];if(G)return{data:{index:F+1,overflows:_},reset:{placement:G}};let J=_.map(K=>{let v=ir(K.placement);return[K.placement,v&&g?K.overflows.slice(0,2).reduce((R,j)=>R+j,0):K.overflows[0],K.overflows]}).sort((K,v)=>K[1]-v[1]),ce=((n=J.filter(K=>K[2].slice(0,ir(K[0])?2:3).every(v=>v<=0))[0])==null?void 0:n[0])||J[0][0];return ce!==l?{data:{index:F+1,overflows:_},reset:{placement:ce}}:{}}}};Ml=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Ax(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ul=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:B=>{let{x:F,y:U}=B;return{x:F,y:U}}},...d}=ei(r,e),f={x:t,y:i},g=await ea(e,d),m=ti(jr(n)),b=Nl(m),O=f[b],C=f[m];if(a){let B=b==="y"?"top":"left",F=b==="y"?"bottom":"right",U=O+g[B],k=O-g[F];O=Pl(U,O,k)}if(s){let B=m==="y"?"top":"left",F=m==="y"?"bottom":"right",U=C+g[B],k=C-g[F];C=Pl(U,C,k)}let I=l.fn({...e,[b]:O,[m]:C});return{...I,data:{x:I.x-t,y:I.y-i,enabled:{[b]:a,[m]:s}}}}}},zl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=ei(r,e),g=await ea(e,f),m=jr(n),b=ir(n),O=ti(n)==="y",{width:C,height:I}=a.floating,B,F;m==="top"||m==="bottom"?(B=m,F=b===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(F=m,B=b==="end"?"top":"bottom");let U=I-g.top-g.bottom,k=C-g.left-g.right,w=Jn(I-g[B],U),_=Jn(C-g[F],k),G=!e.middlewareData.shift,J=w,ue=_;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(ue=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=U),G&&!b){let K=Vr(g.left,0),v=Vr(g.right,0),R=Vr(g.top,0),j=Vr(g.bottom,0);O?ue=C-2*(K!==0||v!==0?K+v:Vr(g.left,g.right)):J=I-2*(R!==0||j!==0?R+j:Vr(g.top,g.bottom))}await d({...e,availableWidth:ue,availableHeight:J});let ce=await s.getDimensions(l.floating);return C!==ce.width||I!==ce.height?{reset:{rects:!0}}:{}}}}});var Wl,ri,en,Er,Qf=p(()=>{Wl=Math.min,ri=Math.max,en=Math.round,Er=r=>({x:r,y:r})});function wr(r){return Jf(r)?(r.nodeName||"").toLowerCase():"#document"}function ft(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Rr(r){var e;return(e=(Jf(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Jf(r){return r instanceof Node||r instanceof ft(r).Node}function nr(r){return r instanceof Element||r instanceof ft(r).Element}function Gt(r){return r instanceof HTMLElement||r instanceof ft(r).HTMLElement}function Xf(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ft(r).ShadowRoot}function oi(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=Ot(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function eh(r){return["table","td","th"].includes(wr(r))}function oa(r){let e=ia(),t=Ot(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function th(r){let e=Co(r);for(;Gt(e)&&!tn(e);){if(oa(e))return e;e=Co(e)}return null}function ia(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tn(r){return["html","body","#document"].includes(wr(r))}function Ot(r){return ft(r).getComputedStyle(r)}function rn(r){return nr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Co(r){if(wr(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Xf(r)&&r.host||Rr(r);return Xf(e)?e.host:e}function rh(r){let e=Co(r);return tn(e)?r.ownerDocument?r.ownerDocument.body:r.body:Gt(e)&&oi(e)?e:rh(e)}function ra(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=rh(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=ft(n);return a?e.concat(s,s.visualViewport||[],oi(n)?n:[],s.frameElement&&t?ra(s.frameElement):[]):e.concat(n,ra(n,[],t))}var oh=p(()=>{});function ah(r){let e=Ot(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Gt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=en(t)!==a||en(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function sh(r){return nr(r)?r:r.contextElement}function ii(r){let e=sh(r);if(!Gt(e))return Er(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=ah(e),s=(a?en(t.width):t.width)/i,l=(a?en(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function lh(r){let e=ft(r);return!ia()||!e.visualViewport?Lx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ix(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ft(r)?!1:e}function on(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=sh(r),s=Er(1);e&&(i?nr(i)&&(s=ii(i)):s=ii(r));let l=Ix(a,t,i)?lh(a):Er(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let b=ft(a),O=i&&nr(i)?ft(i):i,C=b.frameElement;for(;C&&i&&O!==b;){let I=ii(C),B=C.getBoundingClientRect(),F=Ot(C),U=B.left+(C.clientLeft+parseFloat(F.paddingLeft))*I.x,k=B.top+(C.clientTop+parseFloat(F.paddingTop))*I.y;d*=I.x,f*=I.y,g*=I.x,m*=I.y,d+=U,f+=k,C=ft(C).frameElement}}return So({width:g,height:m,x:d,y:f})}function kx(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Gt(t),a=Rr(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Er(1),d=Er(0);if((n||!n&&i!=="fixed")&&((wr(t)!=="body"||oi(a))&&(s=rn(t)),Gt(t))){let f=on(t);l=ii(t),d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function _x(r){return Array.from(r.getClientRects())}function ch(r){return on(Rr(r)).left+rn(r).scrollLeft}function $x(r){let e=Rr(r),t=rn(r),i=r.ownerDocument.body,n=ri(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=ri(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+ch(r),l=-t.scrollTop;return Ot(i).direction==="rtl"&&(s+=ri(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Tx(r,e){let t=ft(r),i=Rr(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ia();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Px(r,e){let t=on(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Gt(r)?ii(r):Er(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function ih(r,e,t){let i;if(e==="viewport")i=Tx(r,t);else if(e==="document")i=$x(Rr(r));else if(nr(e))i=Px(e,t);else{let n=lh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return So(i)}function dh(r,e){let t=Co(r);return t===e||!nr(t)||tn(t)?!1:Ot(t).position==="fixed"||dh(t,e)}function Nx(r,e){let t=e.get(r);if(t)return t;let i=ra(r,[],!1).filter(l=>nr(l)&&wr(l)!=="body"),n=null,a=Ot(r).position==="fixed",s=a?Co(r):r;for(;nr(s)&&!tn(s);){let l=Ot(s),d=oa(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||oi(s)&&!d&&dh(r,s))?i=i.filter(g=>g!==s):n=l,s=Co(s)}return e.set(r,i),i}function Fx(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Nx(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=ih(e,g,n);return f.top=ri(m.top,f.top),f.right=Wl(m.right,f.right),f.bottom=Wl(m.bottom,f.bottom),f.left=ri(m.left,f.left),f},ih(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Bx(r){return ah(r)}function Dx(r,e,t){let i=Gt(e),n=Rr(e),a=t==="fixed",s=on(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Er(0);if(i||!i&&!a)if((wr(e)!=="body"||oi(n))&&(l=rn(e)),i){let f=on(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=ch(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function nh(r,e){return!Gt(r)||Ot(r).position==="fixed"?null:e?e(r):r.offsetParent}function ph(r,e){let t=ft(r);if(!Gt(r))return t;let i=nh(r,e);for(;i&&eh(i)&&Ot(i).position==="static";)i=nh(i,e);return i&&(wr(i)==="html"||wr(i)==="body"&&Ot(i).position==="static"&&!oa(i))?t:i||th(r)||t}function Ux(r){return Ot(r).direction==="rtl"}var Lx,Mx,ni,Vl,uh=p(()=>{Hl();Hl();Qf();oh();Lx=Er(0);Mx=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||ph,a=this.getDimensions;return{reference:Dx(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};ni={convertOffsetParentRelativeRectToViewportRelativeRect:kx,getDocumentElement:Rr,getClippingRect:Fx,getOffsetParent:ph,getElementRects:Mx,getClientRects:_x,getDimensions:Bx,getScale:ii,isElement:nr,isRTL:Ux},Vl=(r,e,t)=>{let i=new Map,n={platform:ni,...t},a={...n.platform,_c:i};return Yf(r,e,{...n,platform:a})}});function Gl(r){return zx(r)}function jl(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function zx(r){for(let e=r;e;e=jl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=jl(r);e;e=jl(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}var fh=p(()=>{});var Zl={};ie(Zl,{computeOffsetAutoPosition:()=>ql,computeOffsetPosition:()=>Kl});async function Kl(r,e,t){return Vl(r,e,{platform:{...ni,getOffsetParent:i=>ni.getOffsetParent(i,Gl)},middleware:[Ul({crossAxis:!0}),ta({allowedPlacements:[t]})]})}async function ql(r,e,t,i,n,a,s=4){return Vl(r,e,{placement:t,strategy:n,platform:{...ni,getOffsetParent:l=>ni.getOffsetParent(l,Gl)},middleware:[Ml(s),ta({allowedPlacements:i}),zl({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var na=p(()=>{"use strict";uh();fh()});var Yl={};ie(Yl,{ScopedRegistryLitElement:()=>nn});var nn,aa=p(()=>{"use strict";P();Fn();nn=class extends Cr{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(t);return Ui(i,e.elementStyles),i}}});var Xl={};ie(Xl,{shadowQuerySelector:()=>Ql,shadowQuerySelectorAll:()=>Hx});function Ql(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Hx(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var sa=p(()=>{"use strict"});var Jl={};ie(Jl,{FtLitElement:()=>H});var an,yh,hh,mh,bh,gh,H,sn=p(()=>{"use strict";Y();Yn();qn();aa();sa();an=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},hh=Symbol("constructorPrototype"),mh=Symbol("constructorName"),bh=Symbol("exportpartsDebouncer"),gh=Symbol("dynamicDependenciesLoaded"),H=class extends nn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yh]=new me(5),this[mh]=this.constructor.name,this[hh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[mh]&&Object.setPrototypeOf(this,this[hh])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[gh]||(e[gh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=Ql(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,i,n;if(((i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&i!==void 0&&i)&&this[bh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,i,n,a,s,l;let d=b=>b!=null&&b.trim().length>0,f=e.filter(d).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let b of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...C).filter(d).map(I=>I.trim()).forEach(I=>g.add(I))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(b=>f.map(O=>`${b}:${O}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};yh=bh;an([h()],H.prototype,"exportpartsPrefix",void 0);an([we([])],H.prototype,"exportpartsPrefixes",void 0);an([h()],H.prototype,"customStylesheet",void 0);an([h()],H.prototype,"elementToFocus",void 0);an([D()],H.prototype,"useAdoptedStyleSheets",void 0)});var ec={};ie(ec,{FtdsBase:()=>ln,toFtdsBase:()=>ar});function ar(r){class e extends r{constructor(){super(...arguments),this.size=Ve.medium,this.family=Ct.neutral}getDesignSystemBaseClasses(){return{[wl(this.family)]:!0,[Rl(this.size)]:!0}}}return vh([h()],e.prototype,"size",void 0),vh([h()],e.prototype,"family",void 0),e}var vh,ln,tc=p(()=>{"use strict";sn();Y();ee();vh=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};ln=class extends ar(H){}});var xh={};var rc=p(()=>{"use strict"});var Oo,Sh=p(()=>{Oo=class r{constructor(e,t=!0,i=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=i,this.iframesTimeout=n}static matches(e,t){let i=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=t.filter(a=>a.contains(i)).length>0;t.indexOf(i)===-1&&!n&&t.push(i)}),t}getIframeContents(e,t,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&t(n)}isIframeBlank(e){let t="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&i!==t&&i}observeIframeLoad(e,t,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,i):this.getIframeContents(e,t,i):this.observeIframeLoad(e,t,i)}catch{i()}}waitForIframes(e,t){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||t()})},n=>{n||t()})}forEachIframe(e,t,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),d()},d)})}createIterator(e,t,i){return document.createNodeIterator(e,t,i,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),i;return t===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:t,node:i}}checkIframeFilter(e,t,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,t,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,i,n)})})}iterateThroughNodes(e,t,i,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,b=>this.checkIframeFilter(f,g,b,l),b=>{this.createInstanceOnIframe(b).forEachNode(e,O=>d.push(O),n)}),d.push(f);d.forEach(b=>{i(b)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,t,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var cn,Ch=p(()=>{Sh();cn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.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 Oo(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[t]=="function"&&i[t](`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 t=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&t.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):i.trim()&&t.indexOf(i)===-1&&t.push(i)}),{keywords:t.sort((i,n)=>n.length-i.length),length:t.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 t=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,t.push(n),i=s)}),t}callNoMatchOnInvalidRanges(e,t){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,t,i){let n,a=!0,s=i.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:i})})}matchesExclude(e){return Oo.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(i-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),b=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+b,e.nodes.forEach((O,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=g),e.nodes[C].end-=g)}),i-=g,a(s.node.previousSibling,s.start),i>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,b)=>{e.lastIndex=b,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,b=>t(b,l,a.value.substring(f,g),d),b=>{i(b,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));t.replaceChild(i,e),this.ie?this.normalizeTextNode(t):t.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,t){this.opt=t,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,t){this.opt=t;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(b,O)=>this.opt.filter(O,f,i,m),b=>{m++,i++,this.opt.each(b)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,t){this.opt=t;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Oo.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function oc(r){let e=new cn(r);return this.mark=(t,i)=>(e.mark(t,i),this),this.markRegExp=(t,i)=>(e.markRegExp(t,i),this),this.markRanges=(t,i)=>(e.markRanges(t,i),this),this.unmark=t=>(e.unmark(t),this),this}var Oh=p(()=>{Ch()});var nc={};ie(nc,{highlightHtml:()=>ic,highlightHtmlColorCssVariable:()=>Eh,highlightHtmlStyles:()=>Vx});function ic(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Wx(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Wx,Eh,Vx,ac=p(()=>{"use strict";P();ee();Oh();Wx=oc,Eh=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Vx=A`
|
|
5
5
|
.highlight-html-match {
|
|
6
|
-
background: ${
|
|
6
|
+
background: ${Eh};
|
|
7
7
|
}
|
|
8
|
-
`});var
|
|
8
|
+
`});var sc={};ie(sc,{noTextInputDefaultClearButton:()=>Eo,noTextSelect:()=>Ar,safariEllipsisFix:()=>Lr,wordWrap:()=>dn});var Ar,dn,Lr,Eo,lc=p(()=>{"use strict";P();Ar=A`
|
|
9
9
|
.ft-no-text-select {
|
|
10
10
|
-webkit-touch-callout: none;
|
|
11
11
|
-webkit-user-select: none;
|
|
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
14
14
|
-ms-user-select: none;
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,dn=A`
|
|
18
18
|
.ft-word-wrap {
|
|
19
19
|
white-space: normal;
|
|
20
20
|
word-wrap: break-word;
|
|
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
26
26
|
-webkit-hyphens: auto;
|
|
27
27
|
hyphens: auto
|
|
28
28
|
}
|
|
29
|
-
`,Lr=
|
|
29
|
+
`,Lr=A`
|
|
30
30
|
.ft-safari-ellipsis-fix {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
|
|
@@ -37,15 +37,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
width: 0;
|
|
39
39
|
}
|
|
40
|
-
`,Eo=
|
|
40
|
+
`,Eo=A`
|
|
41
41
|
input::-webkit-search-cancel-button,
|
|
42
42
|
input::-webkit-search-decoration,
|
|
43
43
|
input::-webkit-search-results-button,
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`});var Eh={};var sc=p(()=>{"use strict"});var lc={};ne(lc,{ParametrizedLabelResolver:()=>Gr});var Gr,cc=p(()=>{"use strict";Gr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}}});var Wx,Ee,Vx,wh=p(()=>{"use strict";zr();Q();Wx=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},Ee=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Ur,attribute:!1,...e};h(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},Vx=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var dn,dc=p(()=>{"use strict";dn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ai(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var aa=p(()=>{"use strict"});function Rh(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[wo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[wo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[wo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[wo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[wo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ai(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=v=>this[g](v);l.addEventListener(f.eventName,m),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[pn].get(s))===null||l===void 0||l.forEach(d=>d()),this[pn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,t=wo,i=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var pn,Kr,wo,Kt,Ah=p(()=>{"use strict";an();aa();pn=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),wo=Symbol("internalStores");Kt=class extends Rh(H){}});function $t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ir(r){return!!r&&!!r[Ae]}function qt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Xx}(r)||Array.isArray(r)||!!r[Ph]||!!(!((e=r.constructor)===null||e===void 0)&&e[Ph])||vc(r)||xc(r))}function Ro(r,e,t){t===void 0&&(t=!1),ci(r)===0?(t?Object.keys:li)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function ci(r){var e=r[Ae];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:vc(r)?2:xc(r)?3:0}function si(r,e){return ci(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function jx(r,e){return ci(r)===2?r.get(e):r[e]}function Nh(r,e,t){var i=ci(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Fh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function vc(r){return Yx&&r instanceof Map}function xc(r){return Qx&&r instanceof Set}function qr(r){return r.o||r.t}function Sc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Mh(r);delete e[Ae];for(var t=li(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Cc(r,e){return e===void 0&&(e=!1),Oc(r)||Ir(r)||!qt(r)||(ci(r)>1&&(r.set=r.add=r.clear=r.delete=Gx),Object.freeze(r),e&&Ro(r,function(t,i){return Cc(i,!0)},!0)),r}function Gx(){$t(2)}function Oc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function sr(r){var e=bc[r];return e||$t(18,r),e}function Kx(r,e){bc[r]||(bc[r]=e)}function mc(){return fn}function pc(r,e){e&&(sr("Patches"),r.u=[],r.s=[],r.v=e)}function sa(r){gc(r),r.p.forEach(qx),r.p=null}function gc(r){r===fn&&(fn=r.l)}function Lh(r){return fn={p:[],l:fn,h:r,m:!0,_:0}}function qx(r){var e=r[Ae];e.i===0||e.i===1?e.j():e.g=!0}function uc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||sr("ES5").S(e,r,i),i?(t[Ae].P&&(sa(e),$t(4)),qt(r)&&(r=la(e,r),e.l||ca(e,r)),e.u&&sr("Patches").M(t[Ae].t,r,e.u,e.s)):r=la(e,t,[]),sa(e),e.u&&e.v(e.u,e.s),r!==Dh?r:void 0}function la(r,e,t){if(Oc(e))return e;var i=e[Ae];if(!i)return Ro(e,function(l,d){return Ih(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return ca(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Sc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Ro(a,function(l,d){return Ih(r,i,n,l,d,t,s)}),ca(r,n,!1),t&&r.u&&sr("Patches").N(i,t,r.u,r.s)}return i.o}function Ih(r,e,t,i,n,a,s){if(Ir(n)){var l=la(r,n,a&&e&&e.i!==3&&!si(e.R,i)?a.concat(i):void 0);if(Nh(t,i,l),!Ir(l))return;r.m=!1}else s&&t.add(n);if(qt(n)&&!Oc(n)){if(!r.h.D&&r._<1)return;la(r,n),e&&e.A.l||ca(r,n)}}function ca(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Cc(e,t)}function fc(r,e){var t=r[Ae];return(t?qr(t):r)[e]}function kh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Zr(r){r.P||(r.P=!0,r.l&&Zr(r.l))}function hc(r){r.o||(r.o=Sc(r.t))}function yc(r,e,t){var i=vc(e)?sr("MapSet").F(e,t):xc(e)?sr("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:mc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=hn;s&&(d=[l],f=un);var g=Proxy.revocable(d,f),m=g.revoke,v=g.proxy;return l.k=v,l.j=m,v}(e,t):sr("ES5").J(e,t);return(t?t.A:mc()).p.push(i),i}function Zx(r){return Ir(r)||$t(22,r),function e(t){if(!qt(t))return t;var i,n=t[Ae],a=ci(t);if(n){if(!n.P&&(n.i<4||!sr("ES5").K(n)))return n.t;n.I=!0,i=$h(t,a),n.I=!1}else i=$h(t,a);return Ro(i,function(s,l){n&&jx(n.t,s)===l||Nh(i,s,e(l))}),a===3?new Set(i):i}(r)}function $h(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Sc(r)}function Bh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ae];return hn.get(f,s)},set:function(f){var g=this[Ae];hn.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ae];if(!d.P)switch(d.i){case 5:i(d)&&Zr(d);break;case 4:t(d)&&Zr(d)}}}function t(s){for(var l=s.t,d=s.k,f=li(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Ae){var v=l[m];if(v===void 0&&!si(l,m))return!0;var C=d[m],O=C&&C[Ae];if(O?O.t!==v:!Fh(C,v))return!0}}var R=!!l[Ae];return f.length!==li(l).length+(R?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&$t(3,JSON.stringify(qr(s)))}var a={};Kx("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,v){if(m){for(var C=Array(v.length),O=0;O<v.length;O++)Object.defineProperty(C,""+O,r(O,!0));return C}var R=Mh(v);delete R[Ae];for(var F=li(R),N=0;N<F.length;N++){var U=F[N];R[U]=r(U,m||!!R[U].enumerable)}return Object.create(Object.getPrototypeOf(v),R)}(d,s),g={i:d?5:4,A:l?l.A:mc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ae,{value:g,writable:!0}),f},S:function(s,l,d){d?Ir(l)&&l[Ae].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[Ae];if(m){var v=m.t,C=m.k,O=m.R,R=m.i;if(R===4)Ro(C,function($){$!==Ae&&(v[$]!==void 0||si(v,$)?O[$]||f(C[$]):(O[$]=!0,Zr(m)))}),Ro(v,function($){C[$]!==void 0||si(C,$)||(O[$]=!1,Zr(m))});else if(R===5){if(i(m)&&(Zr(m),O.length=!0),C.length<v.length)for(var F=C.length;F<v.length;F++)O[F]=!1;else for(var N=v.length;N<C.length;N++)O[N]=!0;for(var U=Math.min(C.length,v.length),k=0;k<U;k++)C.hasOwnProperty(k)||(O[k]=!0),O[k]===void 0&&f(C[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var _h,fn,Ec,Yx,Qx,Th,Dh,Ph,Ae,Xx,li,Mh,bc,hn,un,Jx,Et,e0,DR,MR,UR,zR,HR,WR,da,pa=p(()=>{Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Yx=typeof Map<"u",Qx=typeof Set<"u",Th=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dh=Ec?Symbol.for("immer-nothing"):((_h={})["immer-nothing"]=!0,_h),Ph=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",Ae=Ec?Symbol.for("immer-state"):"__$immer_state",Xx=""+Object.prototype.constructor,li=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Mh=Object.getOwnPropertyDescriptors||function(r){var e={};return li(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},bc={},hn={get:function(r,e){if(e===Ae)return r;var t=qr(r);if(!si(t,e))return function(n,a,s){var l,d=kh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!qt(i)?i:i===fc(r.t,e)?(hc(r),r.o[e]=yc(r.A.h,i,r)):i},has:function(r,e){return e in qr(r)},ownKeys:function(r){return Reflect.ownKeys(qr(r))},set:function(r,e,t){var i=kh(qr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=fc(qr(r),e),a=n?.[Ae];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Fh(t,n)&&(t!==void 0||si(r.t,e)))return!0;hc(r),Zr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return fc(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,hc(r),Zr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=qr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){$t(12)}},un={};Ro(hn,function(r,e){un[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),un.deleteProperty=function(r,e){return un.set.call(this,r,e,void 0)},un.set=function(r,e,t){return hn.set.call(this,r[0],e,t,r[0])};Jx=function(){function r(t){var i=this;this.O=Th,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(R){var F=this;R===void 0&&(R=l);for(var N=arguments.length,U=Array(N>1?N-1:0),k=1;k<N;k++)U[k-1]=arguments[k];return d.produce(R,function($){var A;return(A=a).call.apply(A,[F,$].concat(U))})}}var f;if(typeof a!="function"&&$t(6),s!==void 0&&typeof s!="function"&&$t(7),qt(n)){var g=Lh(i),m=yc(i,n,void 0),v=!0;try{f=a(m),v=!1}finally{v?sa(g):gc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return pc(g,s),uc(R,g)},function(R){throw sa(g),R}):(pc(g,s),uc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Dh&&(f=void 0),i.D&&Cc(f,!0),s){var C=[],O=[];sr("Patches").M(n,f,C,O),s(C,O)}return f}$t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return i.produceWithPatches(f,function(C){return n.apply(void 0,[C].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){qt(t)||$t(8),Ir(t)&&(t=Zx(t));var i=Lh(this),n=yc(this,t,void 0);return n[Ae].C=!0,gc(i),n},e.finishDraft=function(t,i){var n=t&&t[Ae],a=n.A;return pc(a,i),uc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Th&&$t(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=sr("Patches").$;return Ir(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Et=new Jx,e0=Et.produce,DR=Et.produceWithPatches.bind(Et),MR=Et.setAutoFreeze.bind(Et),UR=Et.setUseProxies.bind(Et),zR=Et.applyPatches.bind(Et),HR=Et.createDraft.bind(Et),WR=Et.finishDraft.bind(Et),da=e0});function Ao(r){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(r)}var wc=p(()=>{});function Uh(r,e){if(Ao(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ao(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var zh=p(()=>{wc()});function Hh(r){var e=Uh(r,"string");return Ao(e)=="symbol"?e:e+""}var Wh=p(()=>{wc();zh()});function Vh(r,e,t){return(e=Hh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var jh=p(()=>{Wh()});function Gh(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Rc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Gh(Object(t),!0).forEach(function(i){Vh(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Gh(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var Kh=p(()=>{jh()});function et(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function t0(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Lc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(et(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(et(1));return t(Lc)(r,e)}if(typeof r!="function")throw new Error(et(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(et(3));return a}function m(R){if(typeof R!="function")throw new Error(et(4));if(d)throw new Error(et(5));var F=!0;return f(),l.push(R),function(){if(F){if(d)throw new Error(et(6));F=!1,f();var U=l.indexOf(R);l.splice(U,1),s=null}}}function v(R){if(!t0(R))throw new Error(et(7));if(typeof R.type>"u")throw new Error(et(8));if(d)throw new Error(et(9));try{d=!0,a=n(a,R)}finally{d=!1}for(var F=s=l,N=0;N<F.length;N++){var U=F[N];U()}return R}function C(R){if(typeof R!="function")throw new Error(et(10));n=R,v({type:ua.REPLACE})}function O(){var R,F=m;return R={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(et(11));function k(){U.next&&U.next(g())}k();var $=F(k);return{unsubscribe:$}}},R[qh]=function(){return this},R}return v({type:ua.INIT}),i={dispatch:v,subscribe:m,getState:g,replaceReducer:C},i[qh]=O,i}function r0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:ua.INIT});if(typeof i>"u")throw new Error(et(12));if(typeof t(void 0,{type:ua.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(et(13))})}function Zh(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{r0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var v=!1,C={},O=0;O<a.length;O++){var R=a[O],F=t[R],N=f[R],U=F(N,g);if(typeof U>"u"){var k=g&&g.type;throw new Error(et(14))}C[R]=U,v=v||U!==N}return v=v||a.length!==Object.keys(f).length,v?C:f}}function di(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Yh(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(et(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=di.apply(void 0,l)(n.dispatch),Rc(Rc({},n),{},{dispatch:a})}}}var qh,Ac,ua,fa=p(()=>{Kh();qh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ac=function(){return Math.random().toString(36).substring(7).split("").join(".")},ua={INIT:"@@redux/INIT"+Ac(),REPLACE:"@@redux/REPLACE"+Ac(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ac()}}});function Qh(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Xh,Ic,Jh=p(()=>{Xh=Qh();Xh.withExtraArgument=Qh;Ic=Xh});function p0(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Tc(r){return qt(r)?da(r,function(){}):r}function h0(r){return typeof r=="boolean"}function m0(){return function(e){return g0(e)}}function g0(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new u0;if(t&&(h0(t)?l.push(Ic):l.push(Ic.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function nm(r){var e=m0(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,v=m===void 0?void 0:m,C;if(typeof n=="function")C=n;else if(p0(n))C=Zh(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!$c&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$c&&O.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=Yh.apply(void 0,O),F=di;d&&(F=d0(Yr({trace:!$c},typeof d=="object"&&d)));var N=new f0(R),U=N;Array.isArray(v)?U=pi([R],v):typeof v=="function"&&(U=v(N));var k=F.apply(void 0,U);return Lc(C,g,k)}function Qr(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Yr(Yr({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function am(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function y0(r){return typeof r=="function"}function b0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?am(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(y0(r))d=function(){return Tc(r())};else{var f=Tc(r);d=function(){return f}}function g(m,v){m===void 0&&(m=d());var C=pi([a[v.type]],s.filter(function(O){var R=O.matcher;return R(v)}).map(function(O){var R=O.reducer;return R}));return C.filter(function(O){return!!O}).length===0&&(C=[l]),C.reduce(function(O,R){if(R)if(Ir(O)){var F=O,N=R(F,v);return N===void 0?O:N}else{if(qt(O))return da(O,function(U){return R(U,v)});var N=R(O,v);if(N===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return O},m)}return g.getInitialState=d,g}function v0(r,e){return r+"/"+e}function sm(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Tc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],v=v0(e,g),C,O;"reducer"in m?(C=m.reducer,O=m.prepare):C=m,a[g]=C,s[v]=C,l[g]=O?Qr(v,O):Qr(v)});function d(){var g=typeof r.extraReducers=="function"?am(r.extraReducers):[r.extraReducers],m=g[0],v=m===void 0?{}:m,C=g[1],O=C===void 0?[]:C,R=g[2],F=R===void 0?void 0:R,N=Yr(Yr({},v),s);return b0(t,function(U){for(var k in N)U.addCase(k,N[k]);for(var $=0,A=O;$<A.length;$++){var K=A[$];U.addMatcher(K.matcher,K.reducer)}F&&U.addDefaultCase(F)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function E0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function w0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var im,o0,pi,i0,n0,a0,em,s0,l0,tm,Yr,kc,c0,d0,sA,u0,f0,$c,x0,S0,C0,_c,rm,O0,pA,lm,cm,dm,uA,fA,hA,mA,Pc,gA,yA,bA,om,vA,R0,xA,pm=p(()=>{pa();fa();fa();fa();Jh();pa();pa();im=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),o0=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},pi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},i0=Object.defineProperty,n0=Object.defineProperties,a0=Object.getOwnPropertyDescriptors,em=Object.getOwnPropertySymbols,s0=Object.prototype.hasOwnProperty,l0=Object.prototype.propertyIsEnumerable,tm=function(r,e,t){return e in r?i0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Yr=function(r,e){for(var t in e||(e={}))s0.call(e,t)&&tm(r,t,e[t]);if(em)for(var i=0,n=em(e);i<n.length;i++){var t=n[i];l0.call(e,t)&&tm(r,t,e[t])}return r},kc=function(r,e){return n0(r,a0(e))},c0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},d0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?di:di.apply(null,arguments)},sA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};u0=function(r){im(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),f0=function(r){im(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);$c=!0;x0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",S0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=x0[Math.random()*64|0];return e},C0=["name","message","stack","code"],_c=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),rm=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),O0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=C0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},pA=function(){function r(e,t,i){var n=Qr(e+"/fulfilled",function(g,m,v,C){return{payload:g,meta:kc(Yr({},C||{}),{arg:v,requestId:m,requestStatus:"fulfilled"})}}),a=Qr(e+"/pending",function(g,m,v){return{payload:void 0,meta:kc(Yr({},v||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Qr(e+"/rejected",function(g,m,v,C,O){return{payload:C,error:(i&&i.serializeError||O0)(g||"Rejected"),meta:kc(Yr({},O||{}),{arg:v,requestId:m,rejectedWithValue:!!C,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,v,C){var O=i?.idGenerator?i.idGenerator(g):S0(),R=new d,F,N=!1;function U($){F=$,R.abort()}var k=function(){return c0(this,null,function(){var $,A,K,Z,ie,pe,j;return o0(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),Z=($=i?.condition)==null?void 0:$.call(i,g,{getState:v,extra:C}),w0(Z)?[4,Z]:[3,2];case 1:Z=b.sent(),b.label=2;case 2:if(Z===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,ie=new Promise(function(w,G){return R.signal.addEventListener("abort",function(){return G({name:"AbortError",message:F||"Aborted"})})}),m(a(O,g,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:O,arg:g},{getState:v,extra:C}))),[4,Promise.race([ie,Promise.resolve(t(g,{dispatch:m,getState:v,extra:C,requestId:O,signal:R.signal,abort:U,rejectWithValue:function(w,G){return new _c(w,G)},fulfillWithValue:function(w,G){return new rm(w,G)}})).then(function(w){if(w instanceof _c)throw w;return w instanceof rm?n(w.payload,O,g,w.meta):n(w,O,g)})])];case 3:return K=b.sent(),[3,5];case 4:return pe=b.sent(),K=pe instanceof _c?s(null,O,g,pe.payload,pe.meta):s(pe,O,g),[3,5];case 5:return j=i&&!i.dispatchConditionRejection&&s.match(K)&&K.meta.condition,j||m(K),[2,K]}})})}();return Object.assign(k,{abort:U,requestId:O,arg:g,unwrap:function(){return k.then(E0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();lm="listener",cm="completed",dm="cancelled",uA="task-"+dm,fA="task-"+cm,hA=lm+"-"+dm,mA=lm+"-"+cm,Pc="listenerMiddleware",gA=Qr(Pc+"/add"),yA=Qr(Pc+"/removeAll"),bA=Qr(Pc+"/remove"),vA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(om||(om=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},R0=function(r){return function(e){setTimeout(e,r)}},xA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R0(10);Bh()});function A0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ai(e)&&e.clear()}var kr,um=p(()=>{"use strict";pm();aa();dc();qi();window.ftReduxStores||(window.ftReduxStores={});kr=class r extends Or{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(ai(a))return a;if(n==null)return;let s=sm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=nm({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new dn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new ha(r,e,t).watch()}var ha,fm=p(()=>{"use strict";zr();ha=class{constructor(e,t,i){this.store=e,this.valueSelector=t,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ur(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Nc={};ne(Nc,{FtCommandQueue:()=>dn,FtLitElementRedux:()=>Kt,FtReduxStore:()=>kr,ReduxWatcher:()=>ha,clearAllStores:()=>A0,isFtReduxStore:()=>ai,redux:()=>Ee,reduxEventListener:()=>Vx,reduxReactive:()=>Wx,watch:()=>ui,withRedux:()=>Rh});var ma=p(()=>{"use strict";wh();dc();Ah();um();aa();fm()});var Mc={};ne(Mc,{scrollHelper:()=>Dc});var Fc,ga,Bc,Dc,Uc=p(()=>{"use strict";zr();ga=new Map,Bc=class{lock(e,t){if(t){let i=ga.get(t);if(i==null||i===e)return ga.set(t,e),t}}release(e,t){t&&ga.get(t)===e&&ga.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of Ys(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(t=i??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var i,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(i=t.offsetTop)!==null&&i!==void 0?i:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=vo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Fc=window.FluidTopicsScrollHelper)!==null&&Fc!==void 0?Fc:new Bc;Dc=window.FluidTopicsScrollHelper});var mm=mv((Xr,hm)=>{var ya=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ba=function(){function r(){this.fetch=!1,this.DOMException=ya.DOMException}return r.prototype=ya,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(b){return b&&DataView.prototype.isPrototypeOf(b)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function d(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function f(b){return typeof b!="string"&&(b=String(b)),b}function g(b){var w={next:function(){var G=b.shift();return{done:G===void 0,value:G}}};return n.iterable&&(w[Symbol.iterator]=function(){return w}),w}function m(b){this.map={},b instanceof m?b.forEach(function(w,G){this.append(G,w)},this):Array.isArray(b)?b.forEach(function(w){if(w.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+w.length);this.append(w[0],w[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(w){this.append(w,b[w])},this)}m.prototype.append=function(b,w){b=d(b),w=f(w);var G=this.map[b];this.map[b]=G?G+", "+w:w},m.prototype.delete=function(b){delete this.map[d(b)]},m.prototype.get=function(b){return b=d(b),this.has(b)?this.map[b]:null},m.prototype.has=function(b){return this.map.hasOwnProperty(d(b))},m.prototype.set=function(b,w){this.map[d(b)]=f(w)},m.prototype.forEach=function(b,w){for(var G in this.map)this.map.hasOwnProperty(G)&&b.call(w,this.map[G],G,this)},m.prototype.keys=function(){var b=[];return this.forEach(function(w,G){b.push(G)}),g(b)},m.prototype.values=function(){var b=[];return this.forEach(function(w){b.push(w)}),g(b)},m.prototype.entries=function(){var b=[];return this.forEach(function(w,G){b.push([G,w])}),g(b)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function v(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function C(b){return new Promise(function(w,G){b.onload=function(){w(b.result)},b.onerror=function(){G(b.error)}})}function O(b){var w=new FileReader,G=C(w);return w.readAsArrayBuffer(b),G}function R(b){var w=new FileReader,G=C(w),he=/charset=([A-Za-z0-9_-]+)/.exec(b.type),Oe=he?he[1]:"utf-8";return w.readAsText(b,Oe),G}function F(b){for(var w=new Uint8Array(b),G=new Array(w.length),he=0;he<w.length;he++)G[he]=String.fromCharCode(w[he]);return G.join("")}function N(b){if(b.slice)return b.slice(0);var w=new Uint8Array(b.byteLength);return w.set(new Uint8Array(b)),w.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:n.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:n.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():n.arrayBuffer&&n.blob&&a(b)?(this._bodyArrayBuffer=N(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=N(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var b=v(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var b=v(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(O);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=v(this);if(b)return b;if(this._bodyBlob)return R(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $(b){var w=b.toUpperCase();return k.indexOf(w)>-1?w:b}function A(b,w){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');w=w||{};var G=w.body;if(b instanceof A){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,w.headers||(this.headers=new m(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!G&&b._bodyInit!=null&&(G=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=w.credentials||this.credentials||"same-origin",(w.headers||!this.headers)&&(this.headers=new m(w.headers)),this.method=$(w.method||this.method||"GET"),this.mode=w.mode||this.mode||null,this.signal=w.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&G)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(G),(this.method==="GET"||this.method==="HEAD")&&(w.cache==="no-store"||w.cache==="no-cache")){var he=/([?&])_=[^&]*/;if(he.test(this.url))this.url=this.url.replace(he,"$1_="+new Date().getTime());else{var Oe=/\?/;this.url+=(Oe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function K(b){var w=new FormData;return b.trim().split("&").forEach(function(G){if(G){var he=G.split("="),Oe=he.shift().replace(/\+/g," "),de=he.join("=").replace(/\+/g," ");w.append(decodeURIComponent(Oe),decodeURIComponent(de))}}),w}function Z(b){var w=new m,G=b.replace(/\r?\n[\t ]+/g," ");return G.split("\r").map(function(he){return he.indexOf(`
|
|
48
|
-
`)===0?he.substr(1,he.length):he}).forEach(function(he){var Oe=he.split(":"),de=Oe.shift().trim();if(de){var _n=Oe.join(":").trim();try{w.append(de,_n)}catch(fs){console.warn("Response "+fs.message)}}}),w}U.call(A.prototype);function ie(b,w){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(w||(w={}),this.type="default",this.status=w.status===void 0?200:w.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=w.statusText===void 0?"":""+w.statusText,this.headers=new m(w.headers),this.url=w.url||"",this._initBody(b)}U.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},ie.error=function(){var b=new ie(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var pe=[301,302,303,307,308];ie.redirect=function(b,w){if(pe.indexOf(w)===-1)throw new RangeError("Invalid status code");return new ie(null,{status:w,headers:{location:b}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(w,G){this.message=w,this.name=G;var he=Error(w);this.stack=he.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function j(b,w){return new Promise(function(G,he){var Oe=new A(b,w);if(Oe.signal&&Oe.signal.aborted)return he(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function _n(){de.abort()}de.onload=function(){var qe={statusText:de.statusText,headers:Z(de.getAllResponseHeaders()||"")};Oe.url.indexOf("file://")===0&&(de.status<200||de.status>599)?qe.status=200:qe.status=de.status,qe.url="responseURL"in de?de.responseURL:qe.headers.get("X-Request-URL");var po="response"in de?de.response:de.responseText;setTimeout(function(){G(new ie(po,qe))},0)},de.onerror=function(){setTimeout(function(){he(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){he(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){he(new t.DOMException("Aborted","AbortError"))},0)};function fs(qe){try{return qe===""&&i.location.href?i.location.href:qe}catch{return qe}}if(de.open(Oe.method,fs(Oe.url),!0),Oe.credentials==="include"?de.withCredentials=!0:Oe.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),w&&typeof w.headers=="object"&&!(w.headers instanceof m||i.Headers&&w.headers instanceof i.Headers)){var bu=[];Object.getOwnPropertyNames(w.headers).forEach(function(qe){bu.push(d(qe)),de.setRequestHeader(qe,f(w.headers[qe]))}),Oe.headers.forEach(function(qe,po){bu.indexOf(po)===-1&&de.setRequestHeader(po,qe)})}else Oe.headers.forEach(function(qe,po){de.setRequestHeader(po,qe)});Oe.signal&&(Oe.signal.addEventListener("abort",_n),de.onreadystatechange=function(){de.readyState===4&&Oe.signal.removeEventListener("abort",_n)}),de.send(typeof Oe._bodyInit>"u"?null:Oe._bodyInit)})}return j.polyfill=!0,i.fetch||(i.fetch=j,i.Headers=m,i.Request=A,i.Response=ie),t.Headers=m,t.Request=A,t.Response=ie,t.fetch=j,t}({})})(ba);ba.fetch.ponyfill=!0;delete ba.fetch.polyfill;var fi=ya.fetch?ya:ba;Xr=fi.fetch;Xr.default=fi.fetch;Xr.fetch=fi.fetch;Xr.Headers=fi.Headers;Xr.Request=fi.Request;Xr.Response=fi.Response;hm.exports=Xr});var zc=p(()=>{});var gm,ym,bm,hi,vm,xm,Lo,Sm,Cm,Om,Em,wm,Rm,Am,Lm,Im,Io,_m,km,va,$m,mi,Tm,_t,gi,ze,ko,Hc=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(gm||(gm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ym||(ym={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE"})(bm||(bm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE"})(hi||(hi={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(vm||(vm={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(xm||(xm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Lo||(Lo={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Sm||(Sm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Cm||(Cm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Om||(Om={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Em||(Em={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(wm||(wm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Rm||(Rm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Am||(Am={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Lm||(Lm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Im||(Im={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Io||(Io={}));_m=r=>Object.keys(Io).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(km||(km={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(va||(va={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})($m||($m={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(mi||(mi={}));Tm=r=>Object.keys(mi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(_t||(_t={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gi||(gi={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(ze||(ze={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(ko||(ko={}))});var Pm,Nm,Fm,Bm=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Pm||(Pm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Nm||(Nm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Fm||(Fm={}))});function Dm(r,e){return r===e||(L0[r]??[]).some(t=>Dm(t,e))}function Mm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Dm(i,e))}var L0,Um=p(()=>{Hc();L0={[ze.PERSONAL_BOOK_SHARE_USER]:[ze.PERSONAL_BOOK_USER],[ze.HTML_EXPORT_USER]:[ze.PERSONAL_BOOK_USER],[ze.PDF_EXPORT_USER]:[ze.PERSONAL_BOOK_USER],[ze.KHUB_ADMIN]:[ze.CONTENT_PUBLISHER],[ze.ADMIN]:[ze.KHUB_ADMIN,ze.USERS_ADMIN,ze.PORTAL_ADMIN],[ze.GENERATIVE_AI_EXPORT_USER]:[ze.GENERATIVE_AI_USER]}});var zm=p(()=>{});var I0,Jr=p(()=>{I0=yv(mm(),1);zc();Hc();Bm();Um();zm();zc()});var Wc={};ne(Wc,{SearchPlaceConverter:()=>eo,SearchPlaceQueryParams:()=>xe,isSearchPlaceQueryParams:()=>Wm,serializeRequest:()=>$0});function k0(r){return`"${r}"`}function Hm(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function $0(r,e){return new eo(r).serialize(e)}function Wm(r){return _0.has(r)}var xe,_0,eo,Vc=p(()=>{"use strict";Jr();zr();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(xe||(xe={}));_0=new Set(Object.values(xe));eo=class{constructor(e,t={},i=20,n=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=t,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,v,C,O;let R=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&R.append(xe.LOCALE,e.contentLocale):R.append(xe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&R.append(xe.QUERY,e.query);let F=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(A=>A.valueFilter&&!A.valueFilter.negative))!==null&&a!==void 0?a:[];if(F.length>0){let A=F.map(K=>{var Z,ie;let pe=((ie=(Z=K.valueFilter)===null||Z===void 0?void 0:Z.values)!==null&&ie!==void 0?ie:[]).map(j=>this.escapeFilters(j)).map(j=>k0(Hm(j))).join("_");return`${K.key}~${pe}`}).join("*");R.append(xe.VALUE_FILTERS,A)}let N=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(A=>A.dateFilter))!==null&&l!==void 0?l:[];if(N.length>0){let A=N.map(K=>{var Z;return`${K.key}~${(Z=K.dateFilter)===null||Z===void 0?void 0:Z.type.toLowerCase()}`}).join("*");R.append(xe.DATE_FILTERS,A)}let U=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(A=>A.rangeFilter))!==null&&f!==void 0?f:[];if(U.length>0){let A=U.map(K=>{var Z,ie;return`${K.key}~${(Z=K.rangeFilter)===null||Z===void 0?void 0:Z.from}_${(ie=K.rangeFilter)===null||ie===void 0?void 0:ie.to}`}).join("*");R.append(xe.RANGE_FILTERS,A)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&R.append(xe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&R.append(xe.SCOPE,e.scope.toLowerCase()),((g=e.sort)===null||g===void 0?void 0:g.length)>0&&e.sort[0].key==="ft:lastEdition"&&R.append(xe.SORT,"last_update"),!((m=e.paging)===null||m===void 0)&&m.perPage&&((C=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&C!==void 0?C:this.defaultPerPage)!=this.defaultPerPage&&R.append(xe.PER_PAGE,String(e.paging.perPage));let k=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let A in k)R.append(A,k[A]);let $=new Array;return R.forEach((A,K)=>{$.push(this.encodeQueryString(K)+"="+this.encodeQueryString(A))}),encodeURI($.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l,d,f;try{e=decodeURI(e).replace(/%23/g,"#")}catch(N){console.warn("Could not decode search request query params, fallback on raw value",N)}let g=new URLSearchParams(e),m=g.get(xe.LOCALE)==="all"?void 0:g.get(xe.LOCALE),v=((t=g.get(xe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),C=((i=g.get(xe.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),O=(n=g.get(xe.SCOPE))!==null&&n!==void 0?n:"default",R=+((a=g.get(xe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),F={};for(let N of g.keys())Wm(N)||(F[N]=g.get(N));return{contentLocale:m??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=g.get(xe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[O])!==null&&l!==void 0?l:"DEFAULT",virtualField:_m(v)?v:"EVERYWHERE",sort:(f=(d=this.predefinedSorts[C])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&f!==void 0?f:[],metadataFilters:this.parseCompatFilters(g),facets:[],paging:{page:1,perPage:vo(1,isNaN(R)?this.defaultPerPage:R,1e3)},otherQueryParams:F}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(xe.FILTERS)&&(d=this.parseValueFilters((t=e.get(xe.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(xe.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(xe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(xe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(xe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(xe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Hm).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:mi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(Tm(e))return[{key:"ft:lastEdition",dateFilter:{type:mi[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var Kc={};ne(Kc,{toFtFormComponent:()=>Gc});function Gc(r){class e extends r{static get formAssociated(){return!0}get form(){return this[jc].form}constructor(...i){super(i),this[jc]=this.attachInternals()}setFormValue(i){this[jc].setFormValue(i)}}return e}var jc,qc=p(()=>{"use strict";jc=Symbol("elementInternals")});var Zc={};ne(Zc,{DateFormatter:()=>yi});var yi,xa=p(()=>{"use strict";yi=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(i,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}}});var Qc={};ne(Qc,{ALL_KEYS_VALUE:()=>Yc,SameWindowStorageEvent:()=>bi});var Yc,bi,Xc=p(()=>{"use strict";Yc="__all__",bi=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Yc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new bi(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new bi(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new bi(Yc))}})});var ed={};ne(ed,{FocusMainContentEvent:()=>Jc});var Jc,td=p(()=>{"use strict";Jc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Vm={};function T0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function P0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var rd=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",T0);document.addEventListener("click",P0)});var vi,od=p(()=>{"use strict";P();vi=L`
|
|
47
|
+
`});var wh={};var cc=p(()=>{"use strict"});var dc={};ie(dc,{ParametrizedLabelResolver:()=>Gr});var Gr,pc=p(()=>{"use strict";Gr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}}});var jx,Ee,Gx,Rh=p(()=>{"use strict";zr();Y();jx=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},Ee=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Ur,attribute:!1,...e};h(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},Gx=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var pn,uc=p(()=>{"use strict";pn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ai(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var la=p(()=>{"use strict"});function Ah(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[wo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[wo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[wo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[wo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[wo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[un].set(s,[]),ai(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=b=>this[g](b);l.addEventListener(f.eventName,m),this[un].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[un].get(s))===null||l===void 0||l.forEach(d=>d()),this[un].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,t=wo,i=un,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var un,Kr,wo,Kt,Lh=p(()=>{"use strict";sn();la();un=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),wo=Symbol("internalStores");Kt=class extends Ah(H){}});function _t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ir(r){return!!r&&!!r[Ae]}function qt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===e0}(r)||Array.isArray(r)||!!r[Nh]||!!(!((e=r.constructor)===null||e===void 0)&&e[Nh])||Sc(r)||Cc(r))}function Ro(r,e,t){t===void 0&&(t=!1),ci(r)===0?(t?Object.keys:li)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function ci(r){var e=r[Ae];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Sc(r)?2:Cc(r)?3:0}function si(r,e){return ci(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Kx(r,e){return ci(r)===2?r.get(e):r[e]}function Fh(r,e,t){var i=ci(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Bh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Sc(r){return Xx&&r instanceof Map}function Cc(r){return Jx&&r instanceof Set}function qr(r){return r.o||r.t}function Oc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Uh(r);delete e[Ae];for(var t=li(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Ec(r,e){return e===void 0&&(e=!1),wc(r)||Ir(r)||!qt(r)||(ci(r)>1&&(r.set=r.add=r.clear=r.delete=qx),Object.freeze(r),e&&Ro(r,function(t,i){return Ec(i,!0)},!0)),r}function qx(){_t(2)}function wc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function sr(r){var e=xc[r];return e||_t(18,r),e}function Zx(r,e){xc[r]||(xc[r]=e)}function yc(){return hn}function fc(r,e){e&&(sr("Patches"),r.u=[],r.s=[],r.v=e)}function ca(r){bc(r),r.p.forEach(Yx),r.p=null}function bc(r){r===hn&&(hn=r.l)}function Ih(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function Yx(r){var e=r[Ae];e.i===0||e.i===1?e.j():e.g=!0}function hc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||sr("ES5").S(e,r,i),i?(t[Ae].P&&(ca(e),_t(4)),qt(r)&&(r=da(e,r),e.l||pa(e,r)),e.u&&sr("Patches").M(t[Ae].t,r,e.u,e.s)):r=da(e,t,[]),ca(e),e.u&&e.v(e.u,e.s),r!==Mh?r:void 0}function da(r,e,t){if(wc(e))return e;var i=e[Ae];if(!i)return Ro(e,function(l,d){return kh(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return pa(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Oc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Ro(a,function(l,d){return kh(r,i,n,l,d,t,s)}),pa(r,n,!1),t&&r.u&&sr("Patches").N(i,t,r.u,r.s)}return i.o}function kh(r,e,t,i,n,a,s){if(Ir(n)){var l=da(r,n,a&&e&&e.i!==3&&!si(e.R,i)?a.concat(i):void 0);if(Fh(t,i,l),!Ir(l))return;r.m=!1}else s&&t.add(n);if(qt(n)&&!wc(n)){if(!r.h.D&&r._<1)return;da(r,n),e&&e.A.l||pa(r,n)}}function pa(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Ec(e,t)}function mc(r,e){var t=r[Ae];return(t?qr(t):r)[e]}function _h(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Zr(r){r.P||(r.P=!0,r.l&&Zr(r.l))}function gc(r){r.o||(r.o=Oc(r.t))}function vc(r,e,t){var i=Sc(e)?sr("MapSet").F(e,t):Cc(e)?sr("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:yc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=mn;s&&(d=[l],f=fn);var g=Proxy.revocable(d,f),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(e,t):sr("ES5").J(e,t);return(t?t.A:yc()).p.push(i),i}function Qx(r){return Ir(r)||_t(22,r),function e(t){if(!qt(t))return t;var i,n=t[Ae],a=ci(t);if(n){if(!n.P&&(n.i<4||!sr("ES5").K(n)))return n.t;n.I=!0,i=$h(t,a),n.I=!1}else i=$h(t,a);return Ro(i,function(s,l){n&&Kx(n.t,s)===l||Fh(i,s,e(l))}),a===3?new Set(i):i}(r)}function $h(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Oc(r)}function Dh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ae];return mn.get(f,s)},set:function(f){var g=this[Ae];mn.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ae];if(!d.P)switch(d.i){case 5:i(d)&&Zr(d);break;case 4:t(d)&&Zr(d)}}}function t(s){for(var l=s.t,d=s.k,f=li(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Ae){var b=l[m];if(b===void 0&&!si(l,m))return!0;var O=d[m],C=O&&O[Ae];if(C?C.t!==b:!Bh(O,b))return!0}}var I=!!l[Ae];return f.length!==li(l).length+(I?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&_t(3,JSON.stringify(qr(s)))}var a={};Zx("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,b){if(m){for(var O=Array(b.length),C=0;C<b.length;C++)Object.defineProperty(O,""+C,r(C,!0));return O}var I=Uh(b);delete I[Ae];for(var B=li(I),F=0;F<B.length;F++){var U=B[F];I[U]=r(U,m||!!I[U].enumerable)}return Object.create(Object.getPrototypeOf(b),I)}(d,s),g={i:d?5:4,A:l?l.A:yc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ae,{value:g,writable:!0}),f},S:function(s,l,d){d?Ir(l)&&l[Ae].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[Ae];if(m){var b=m.t,O=m.k,C=m.R,I=m.i;if(I===4)Ro(O,function(w){w!==Ae&&(b[w]!==void 0||si(b,w)?C[w]||f(O[w]):(C[w]=!0,Zr(m)))}),Ro(b,function(w){O[w]!==void 0||si(O,w)||(C[w]=!1,Zr(m))});else if(I===5){if(i(m)&&(Zr(m),C.length=!0),O.length<b.length)for(var B=O.length;B<b.length;B++)C[B]=!1;else for(var F=b.length;F<O.length;F++)C[F]=!0;for(var U=Math.min(O.length,b.length),k=0;k<U;k++)O.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&f(O[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var Th,hn,Rc,Xx,Jx,Ph,Mh,Nh,Ae,e0,li,Uh,xc,mn,fn,t0,Et,r0,UR,zR,HR,WR,VR,jR,ua,fa=p(()=>{Rc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xx=typeof Map<"u",Jx=typeof Set<"u",Ph=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Mh=Rc?Symbol.for("immer-nothing"):((Th={})["immer-nothing"]=!0,Th),Nh=Rc?Symbol.for("immer-draftable"):"__$immer_draftable",Ae=Rc?Symbol.for("immer-state"):"__$immer_state",e0=""+Object.prototype.constructor,li=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Uh=Object.getOwnPropertyDescriptors||function(r){var e={};return li(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},xc={},mn={get:function(r,e){if(e===Ae)return r;var t=qr(r);if(!si(t,e))return function(n,a,s){var l,d=_h(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!qt(i)?i:i===mc(r.t,e)?(gc(r),r.o[e]=vc(r.A.h,i,r)):i},has:function(r,e){return e in qr(r)},ownKeys:function(r){return Reflect.ownKeys(qr(r))},set:function(r,e,t){var i=_h(qr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=mc(qr(r),e),a=n?.[Ae];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Bh(t,n)&&(t!==void 0||si(r.t,e)))return!0;gc(r),Zr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return mc(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,gc(r),Zr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=qr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){_t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){_t(12)}},fn={};Ro(mn,function(r,e){fn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),fn.deleteProperty=function(r,e){return fn.set.call(this,r,e,void 0)},fn.set=function(r,e,t){return mn.set.call(this,r[0],e,t,r[0])};t0=function(){function r(t){var i=this;this.O=Ph,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(I){var B=this;I===void 0&&(I=l);for(var F=arguments.length,U=Array(F>1?F-1:0),k=1;k<F;k++)U[k-1]=arguments[k];return d.produce(I,function(w){var _;return(_=a).call.apply(_,[B,w].concat(U))})}}var f;if(typeof a!="function"&&_t(6),s!==void 0&&typeof s!="function"&&_t(7),qt(n)){var g=Ih(i),m=vc(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ca(g):bc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(I){return fc(g,s),hc(I,g)},function(I){throw ca(g),I}):(fc(g,s),hc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Mh&&(f=void 0),i.D&&Ec(f,!0),s){var O=[],C=[];sr("Patches").M(n,f,O,C),s(O,C)}return f}_t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(O){return n.apply(void 0,[O].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){qt(t)||_t(8),Ir(t)&&(t=Qx(t));var i=Ih(this),n=vc(this,t,void 0);return n[Ae].C=!0,bc(i),n},e.finishDraft=function(t,i){var n=t&&t[Ae],a=n.A;return fc(a,i),hc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ph&&_t(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=sr("Patches").$;return Ir(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Et=new t0,r0=Et.produce,UR=Et.produceWithPatches.bind(Et),zR=Et.setAutoFreeze.bind(Et),HR=Et.setUseProxies.bind(Et),WR=Et.applyPatches.bind(Et),VR=Et.createDraft.bind(Et),jR=Et.finishDraft.bind(Et),ua=r0});function Ao(r){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(r)}var Ac=p(()=>{});function zh(r,e){if(Ao(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ao(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Hh=p(()=>{Ac()});function Wh(r){var e=zh(r,"string");return Ao(e)=="symbol"?e:e+""}var Vh=p(()=>{Ac();Hh()});function jh(r,e,t){return(e=Wh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Gh=p(()=>{Vh()});function Kh(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Lc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Kh(Object(t),!0).forEach(function(i){jh(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Kh(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var qh=p(()=>{Gh()});function tt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function o0(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function kc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(tt(1));return t(kc)(r,e)}if(typeof r!="function")throw new Error(tt(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(tt(3));return a}function m(I){if(typeof I!="function")throw new Error(tt(4));if(d)throw new Error(tt(5));var B=!0;return f(),l.push(I),function(){if(B){if(d)throw new Error(tt(6));B=!1,f();var U=l.indexOf(I);l.splice(U,1),s=null}}}function b(I){if(!o0(I))throw new Error(tt(7));if(typeof I.type>"u")throw new Error(tt(8));if(d)throw new Error(tt(9));try{d=!0,a=n(a,I)}finally{d=!1}for(var B=s=l,F=0;F<B.length;F++){var U=B[F];U()}return I}function O(I){if(typeof I!="function")throw new Error(tt(10));n=I,b({type:ha.REPLACE})}function C(){var I,B=m;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(tt(11));function k(){U.next&&U.next(g())}k();var w=B(k);return{unsubscribe:w}}},I[Zh]=function(){return this},I}return b({type:ha.INIT}),i={dispatch:b,subscribe:m,getState:g,replaceReducer:O},i[Zh]=C,i}function i0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:ha.INIT});if(typeof i>"u")throw new Error(tt(12));if(typeof t(void 0,{type:ha.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function Yh(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{i0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,O={},C=0;C<a.length;C++){var I=a[C],B=t[I],F=f[I],U=B(F,g);if(typeof U>"u"){var k=g&&g.type;throw new Error(tt(14))}O[I]=U,b=b||U!==F}return b=b||a.length!==Object.keys(f).length,b?O:f}}function di(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Qh(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(tt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=di.apply(void 0,l)(n.dispatch),Lc(Lc({},n),{},{dispatch:a})}}}var Zh,Ic,ha,ma=p(()=>{qh();Zh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ic=function(){return Math.random().toString(36).substring(7).split("").join(".")},ha={INIT:"@@redux/INIT"+Ic(),REPLACE:"@@redux/REPLACE"+Ic(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ic()}}});function Xh(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Jh,_c,em=p(()=>{Jh=Xh();Jh.withExtraArgument=Xh;_c=Jh});function f0(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Nc(r){return qt(r)?ua(r,function(){}):r}function g0(r){return typeof r=="boolean"}function y0(){return function(e){return b0(e)}}function b0(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new h0;if(t&&(g0(t)?l.push(_c):l.push(_c.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function am(r){var e=y0(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,b=m===void 0?void 0:m,O;if(typeof n=="function")O=n;else if(f0(n))O=Yh(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(e),!Tc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Tc&&C.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var I=Qh.apply(void 0,C),B=di;d&&(B=u0(Yr({trace:!Tc},typeof d=="object"&&d)));var F=new m0(I),U=F;Array.isArray(b)?U=pi([I],b):typeof b=="function"&&(U=b(F));var k=B.apply(void 0,U);return kc(O,g,k)}function Qr(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Yr(Yr({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function sm(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function v0(r){return typeof r=="function"}function x0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?sm(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(v0(r))d=function(){return Nc(r())};else{var f=Nc(r);d=function(){return f}}function g(m,b){m===void 0&&(m=d());var O=pi([a[b.type]],s.filter(function(C){var I=C.matcher;return I(b)}).map(function(C){var I=C.reducer;return I}));return O.filter(function(C){return!!C}).length===0&&(O=[l]),O.reduce(function(C,I){if(I)if(Ir(C)){var B=C,F=I(B,b);return F===void 0?C:F}else{if(qt(C))return ua(C,function(U){return I(U,b)});var F=I(C,b);if(F===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return F}return C},m)}return g.getInitialState=d,g}function S0(r,e){return r+"/"+e}function lm(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Nc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],b=S0(e,g),O,C;"reducer"in m?(O=m.reducer,C=m.prepare):O=m,a[g]=O,s[b]=O,l[g]=C?Qr(b,C):Qr(b)});function d(){var g=typeof r.extraReducers=="function"?sm(r.extraReducers):[r.extraReducers],m=g[0],b=m===void 0?{}:m,O=g[1],C=O===void 0?[]:O,I=g[2],B=I===void 0?void 0:I,F=Yr(Yr({},b),s);return x0(t,function(U){for(var k in F)U.addCase(k,F[k]);for(var w=0,_=C;w<_.length;w++){var G=_[w];U.addMatcher(G.matcher,G.reducer)}B&&U.addDefaultCase(B)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function R0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function A0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var nm,n0,pi,a0,s0,l0,tm,c0,d0,rm,Yr,$c,p0,u0,cA,h0,m0,Tc,C0,O0,E0,Pc,om,w0,fA,cm,dm,pm,hA,mA,gA,yA,Fc,bA,vA,xA,im,SA,L0,CA,um=p(()=>{fa();ma();ma();ma();em();fa();fa();nm=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),n0=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},pi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},a0=Object.defineProperty,s0=Object.defineProperties,l0=Object.getOwnPropertyDescriptors,tm=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,rm=function(r,e,t){return e in r?a0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Yr=function(r,e){for(var t in e||(e={}))c0.call(e,t)&&rm(r,t,e[t]);if(tm)for(var i=0,n=tm(e);i<n.length;i++){var t=n[i];d0.call(e,t)&&rm(r,t,e[t])}return r},$c=function(r,e){return s0(r,l0(e))},p0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},u0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?di:di.apply(null,arguments)},cA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};h0=function(r){nm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),m0=function(r){nm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);Tc=!0;C0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=C0[Math.random()*64|0];return e},E0=["name","message","stack","code"],Pc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),om=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),w0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=E0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},fA=function(){function r(e,t,i){var n=Qr(e+"/fulfilled",function(g,m,b,O){return{payload:g,meta:$c(Yr({},O||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=Qr(e+"/pending",function(g,m,b){return{payload:void 0,meta:$c(Yr({},b||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Qr(e+"/rejected",function(g,m,b,O,C){return{payload:O,error:(i&&i.serializeError||w0)(g||"Rejected"),meta:$c(Yr({},C||{}),{arg:b,requestId:m,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,b,O){var C=i?.idGenerator?i.idGenerator(g):O0(),I=new d,B,F=!1;function U(w){B=w,I.abort()}var k=function(){return p0(this,null,function(){var w,_,G,J,ue,ce,K;return n0(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),J=(w=i?.condition)==null?void 0:w.call(i,g,{getState:b,extra:O}),A0(J)?[4,J]:[3,2];case 1:J=v.sent(),v.label=2;case 2:if(J===!1||I.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return F=!0,ue=new Promise(function(R,j){return I.signal.addEventListener("abort",function(){return j({name:"AbortError",message:B||"Aborted"})})}),m(a(C,g,(_=i?.getPendingMeta)==null?void 0:_.call(i,{requestId:C,arg:g},{getState:b,extra:O}))),[4,Promise.race([ue,Promise.resolve(t(g,{dispatch:m,getState:b,extra:O,requestId:C,signal:I.signal,abort:U,rejectWithValue:function(R,j){return new Pc(R,j)},fulfillWithValue:function(R,j){return new om(R,j)}})).then(function(R){if(R instanceof Pc)throw R;return R instanceof om?n(R.payload,C,g,R.meta):n(R,C,g)})])];case 3:return G=v.sent(),[3,5];case 4:return ce=v.sent(),G=ce instanceof Pc?s(null,C,g,ce.payload,ce.meta):s(ce,C,g),[3,5];case 5:return K=i&&!i.dispatchConditionRejection&&s.match(G)&&G.meta.condition,K||m(G),[2,G]}})})}();return Object.assign(k,{abort:U,requestId:C,arg:g,unwrap:function(){return k.then(R0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();cm="listener",dm="completed",pm="cancelled",hA="task-"+pm,mA="task-"+dm,gA=cm+"-"+pm,yA=cm+"-"+dm,Fc="listenerMiddleware",bA=Qr(Fc+"/add"),vA=Qr(Fc+"/removeAll"),xA=Qr(Fc+"/remove"),SA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(im||(im=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},L0=function(r){return function(e){setTimeout(e,r)}},CA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:L0(10);Dh()});function I0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ai(e)&&e.clear()}var kr,fm=p(()=>{"use strict";um();la();uc();Zi();window.ftReduxStores||(window.ftReduxStores={});kr=class r extends Or{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(ai(a))return a;if(n==null)return;let s=lm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=am({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new pn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new ga(r,e,t).watch()}var ga,hm=p(()=>{"use strict";zr();ga=class{constructor(e,t,i){this.store=e,this.valueSelector=t,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ur(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Bc={};ie(Bc,{FtCommandQueue:()=>pn,FtLitElementRedux:()=>Kt,FtReduxStore:()=>kr,ReduxWatcher:()=>ga,clearAllStores:()=>I0,isFtReduxStore:()=>ai,redux:()=>Ee,reduxEventListener:()=>Gx,reduxReactive:()=>jx,watch:()=>ui,withRedux:()=>Ah});var ya=p(()=>{"use strict";Rh();uc();Lh();fm();la();hm()});var zc={};ie(zc,{scrollHelper:()=>Uc});var Dc,ba,Mc,Uc,Hc=p(()=>{"use strict";zr();ba=new Map,Mc=class{lock(e,t){if(t){let i=ba.get(t);if(i==null||i===e)return ba.set(t,e),t}}release(e,t){t&&ba.get(t)===e&&ba.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of Xs(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(t=i??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var i,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(i=t.offsetTop)!==null&&i!==void 0?i:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=vo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Dc=window.FluidTopicsScrollHelper)!==null&&Dc!==void 0?Dc:new Mc;Uc=window.FluidTopicsScrollHelper});var gm=yv((Xr,mm)=>{var va=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,xa=function(){function r(){this.fetch=!1,this.DOMException=va.DOMException}return r.prototype=va,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(v){return v&&DataView.prototype.isPrototypeOf(v)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(v){return v&&s.indexOf(Object.prototype.toString.call(v))>-1};function d(v){if(typeof v!="string"&&(v=String(v)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(v)||v==="")throw new TypeError('Invalid character in header field name: "'+v+'"');return v.toLowerCase()}function f(v){return typeof v!="string"&&(v=String(v)),v}function g(v){var R={next:function(){var j=v.shift();return{done:j===void 0,value:j}}};return n.iterable&&(R[Symbol.iterator]=function(){return R}),R}function m(v){this.map={},v instanceof m?v.forEach(function(R,j){this.append(j,R)},this):Array.isArray(v)?v.forEach(function(R){if(R.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+R.length);this.append(R[0],R[1])},this):v&&Object.getOwnPropertyNames(v).forEach(function(R){this.append(R,v[R])},this)}m.prototype.append=function(v,R){v=d(v),R=f(R);var j=this.map[v];this.map[v]=j?j+", "+R:R},m.prototype.delete=function(v){delete this.map[d(v)]},m.prototype.get=function(v){return v=d(v),this.has(v)?this.map[v]:null},m.prototype.has=function(v){return this.map.hasOwnProperty(d(v))},m.prototype.set=function(v,R){this.map[d(v)]=f(R)},m.prototype.forEach=function(v,R){for(var j in this.map)this.map.hasOwnProperty(j)&&v.call(R,this.map[j],j,this)},m.prototype.keys=function(){var v=[];return this.forEach(function(R,j){v.push(j)}),g(v)},m.prototype.values=function(){var v=[];return this.forEach(function(R){v.push(R)}),g(v)},m.prototype.entries=function(){var v=[];return this.forEach(function(R,j){v.push([j,R])}),g(v)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(v){if(!v._noBody){if(v.bodyUsed)return Promise.reject(new TypeError("Already read"));v.bodyUsed=!0}}function O(v){return new Promise(function(R,j){v.onload=function(){R(v.result)},v.onerror=function(){j(v.error)}})}function C(v){var R=new FileReader,j=O(R);return R.readAsArrayBuffer(v),j}function I(v){var R=new FileReader,j=O(R),he=/charset=([A-Za-z0-9_-]+)/.exec(v.type),Oe=he?he[1]:"utf-8";return R.readAsText(v,Oe),j}function B(v){for(var R=new Uint8Array(v),j=new Array(R.length),he=0;he<R.length;he++)j[he]=String.fromCharCode(R[he]);return j.join("")}function F(v){if(v.slice)return v.slice(0);var R=new Uint8Array(v.byteLength);return R.set(new Uint8Array(v)),R.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(v){this.bodyUsed=this.bodyUsed,this._bodyInit=v,v?typeof v=="string"?this._bodyText=v:n.blob&&Blob.prototype.isPrototypeOf(v)?this._bodyBlob=v:n.formData&&FormData.prototype.isPrototypeOf(v)?this._bodyFormData=v:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(v)?this._bodyText=v.toString():n.arrayBuffer&&n.blob&&a(v)?(this._bodyArrayBuffer=F(v.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(v)||l(v))?this._bodyArrayBuffer=F(v):this._bodyText=v=Object.prototype.toString.call(v):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof v=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(v)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var v=b(this);if(v)return v;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var v=b(this);return v||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var v=b(this);if(v)return v;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(B(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function w(v){var R=v.toUpperCase();return k.indexOf(R)>-1?R:v}function _(v,R){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var j=R.body;if(v instanceof _){if(v.bodyUsed)throw new TypeError("Already read");this.url=v.url,this.credentials=v.credentials,R.headers||(this.headers=new m(v.headers)),this.method=v.method,this.mode=v.mode,this.signal=v.signal,!j&&v._bodyInit!=null&&(j=v._bodyInit,v.bodyUsed=!0)}else this.url=String(v);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new m(R.headers)),this.method=w(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var he=/([?&])_=[^&]*/;if(he.test(this.url))this.url=this.url.replace(he,"$1_="+new Date().getTime());else{var Oe=/\?/;this.url+=(Oe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function G(v){var R=new FormData;return v.trim().split("&").forEach(function(j){if(j){var he=j.split("="),Oe=he.shift().replace(/\+/g," "),de=he.join("=").replace(/\+/g," ");R.append(decodeURIComponent(Oe),decodeURIComponent(de))}}),R}function J(v){var R=new m,j=v.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(he){return he.indexOf(`
|
|
48
|
+
`)===0?he.substr(1,he.length):he}).forEach(function(he){var Oe=he.split(":"),de=Oe.shift().trim();if(de){var Tn=Oe.join(":").trim();try{R.append(de,Tn)}catch(ms){console.warn("Response "+ms.message)}}}),R}U.call(_.prototype);function ue(v,R){if(!(this instanceof ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new m(R.headers),this.url=R.url||"",this._initBody(v)}U.call(ue.prototype),ue.prototype.clone=function(){return new ue(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},ue.error=function(){var v=new ue(null,{status:200,statusText:""});return v.ok=!1,v.status=0,v.type="error",v};var ce=[301,302,303,307,308];ue.redirect=function(v,R){if(ce.indexOf(R)===-1)throw new RangeError("Invalid status code");return new ue(null,{status:R,headers:{location:v}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(R,j){this.message=R,this.name=j;var he=Error(R);this.stack=he.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function K(v,R){return new Promise(function(j,he){var Oe=new _(v,R);if(Oe.signal&&Oe.signal.aborted)return he(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function Tn(){de.abort()}de.onload=function(){var qe={statusText:de.statusText,headers:J(de.getAllResponseHeaders()||"")};Oe.url.indexOf("file://")===0&&(de.status<200||de.status>599)?qe.status=200:qe.status=de.status,qe.url="responseURL"in de?de.responseURL:qe.headers.get("X-Request-URL");var po="response"in de?de.response:de.responseText;setTimeout(function(){j(new ue(po,qe))},0)},de.onerror=function(){setTimeout(function(){he(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){he(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){he(new t.DOMException("Aborted","AbortError"))},0)};function ms(qe){try{return qe===""&&i.location.href?i.location.href:qe}catch{return qe}}if(de.open(Oe.method,ms(Oe.url),!0),Oe.credentials==="include"?de.withCredentials=!0:Oe.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof m||i.Headers&&R.headers instanceof i.Headers)){var xu=[];Object.getOwnPropertyNames(R.headers).forEach(function(qe){xu.push(d(qe)),de.setRequestHeader(qe,f(R.headers[qe]))}),Oe.headers.forEach(function(qe,po){xu.indexOf(po)===-1&&de.setRequestHeader(po,qe)})}else Oe.headers.forEach(function(qe,po){de.setRequestHeader(po,qe)});Oe.signal&&(Oe.signal.addEventListener("abort",Tn),de.onreadystatechange=function(){de.readyState===4&&Oe.signal.removeEventListener("abort",Tn)}),de.send(typeof Oe._bodyInit>"u"?null:Oe._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=m,i.Request=_,i.Response=ue),t.Headers=m,t.Request=_,t.Response=ue,t.fetch=K,t}({})})(xa);xa.fetch.ponyfill=!0;delete xa.fetch.polyfill;var fi=va.fetch?va:xa;Xr=fi.fetch;Xr.default=fi.fetch;Xr.fetch=fi.fetch;Xr.Headers=fi.Headers;Xr.Request=fi.Request;Xr.Response=fi.Response;mm.exports=Xr});var Wc=p(()=>{});var ym,bm,vm,hi,xm,Sm,Lo,Cm,Om,Em,wm,Rm,Am,Lm,Im,km,Io,Pm,_m,Sa,$m,mi,Nm,$t,gi,Tm,ze,ko,Vc=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ym||(ym={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(bm||(bm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE"})(vm||(vm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE"})(hi||(hi={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(xm||(xm={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Sm||(Sm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Lo||(Lo={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Cm||(Cm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Om||(Om={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Em||(Em={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(wm||(wm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Rm||(Rm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Am||(Am={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Lm||(Lm={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Im||(Im={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(km||(km={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Io||(Io={}));Pm=r=>Object.keys(Io).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(_m||(_m={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Sa||(Sa={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})($m||($m={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(mi||(mi={}));Nm=r=>Object.keys(mi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})($t||($t={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gi||(gi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Tm||(Tm={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(ze||(ze={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(ko||(ko={}))});var Fm,Bm,Dm,Mm=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Fm||(Fm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Bm||(Bm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Dm||(Dm={}))});function Um(r,e){return r===e||(k0[r]??[]).some(t=>Um(t,e))}function zm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Um(i,e))}var k0,Hm=p(()=>{Vc();k0={[ze.PERSONAL_BOOK_SHARE_USER]:[ze.PERSONAL_BOOK_USER],[ze.HTML_EXPORT_USER]:[ze.PERSONAL_BOOK_USER],[ze.PDF_EXPORT_USER]:[ze.PERSONAL_BOOK_USER],[ze.KHUB_ADMIN]:[ze.CONTENT_PUBLISHER],[ze.ADMIN]:[ze.KHUB_ADMIN,ze.USERS_ADMIN,ze.PORTAL_ADMIN],[ze.GENERATIVE_AI_EXPORT_USER]:[ze.GENERATIVE_AI_USER]}});var Wm=p(()=>{});var _0,Jr=p(()=>{_0=vv(gm(),1);Wc();Vc();Mm();Hm();Wm();Wc()});var jc={};ie(jc,{SearchPlaceConverter:()=>eo,SearchPlaceQueryParams:()=>xe,isSearchPlaceQueryParams:()=>jm,serializeRequest:()=>T0});function $0(r){return`"${r}"`}function Vm(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function T0(r,e){return new eo(r).serialize(e)}function jm(r){return P0.has(r)}var xe,P0,eo,Gc=p(()=>{"use strict";Jr();zr();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(xe||(xe={}));P0=new Set(Object.values(xe));eo=class{constructor(e,t=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,b,O;let C=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&C.append(xe.LOCALE,e.contentLocale):C.append(xe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&C.append(xe.QUERY,e.query);let I=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(w=>w.valueFilter&&!w.valueFilter.negative))!==null&&a!==void 0?a:[];if(I.length>0){let w=I.map(_=>{var G,J;let ue=((J=(G=_.valueFilter)===null||G===void 0?void 0:G.values)!==null&&J!==void 0?J:[]).map(ce=>this.escapeFilters(ce)).map(ce=>$0(Vm(ce))).join("_");return`${_.key}~${ue}`}).join("*");C.append(xe.VALUE_FILTERS,w)}let B=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(w=>w.dateFilter))!==null&&l!==void 0?l:[];if(B.length>0){let w=B.map(_=>{var G;return`${_.key}~${(G=_.dateFilter)===null||G===void 0?void 0:G.type.toLowerCase()}`}).join("*");C.append(xe.DATE_FILTERS,w)}let F=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(w=>w.rangeFilter))!==null&&f!==void 0?f:[];if(F.length>0){let w=F.map(_=>{var G,J;return`${_.key}~${(G=_.rangeFilter)===null||G===void 0?void 0:G.from}_${(J=_.rangeFilter)===null||J===void 0?void 0:J.to}`}).join("*");C.append(xe.RANGE_FILTERS,w)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(xe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(xe.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(xe.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(xe.PER_PAGE,String(e.paging.perPage));let U=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let w in U)C.append(w,U[w]);let k=new Array;return C.forEach((w,_)=>{k.push(this.encodeQueryString(_)+"="+this.encodeQueryString(w))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(xe.LOCALE)==="all"?void 0:d.get(xe.LOCALE),g=((t=d.get(xe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(i=d.get(xe.SORT))===null||i===void 0?void 0:i.toLowerCase(),b=(n=d.get(xe.SCOPE))!==null&&n!==void 0?n:"default",O=+((a=d.get(xe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let I of d.keys())jm(I)||(C[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(xe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Pm(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:vo(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(xe.FILTERS)&&(d=this.parseValueFilters((t=e.get(xe.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(xe.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(xe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(xe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(xe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(xe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Vm).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:mi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(Nm(e))return[{key:"ft:lastEdition",dateFilter:{type:mi[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var Zc={};ie(Zc,{toFtFormComponent:()=>qc});function qc(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Kc].form}constructor(...i){super(i),this[Kc]=this.attachInternals()}setFormValue(i){this[Kc].setFormValue(i)}}return e}var Kc,Yc=p(()=>{"use strict";Kc=Symbol("elementInternals")});var Qc={};ie(Qc,{DateFormatter:()=>yi});var yi,Ca=p(()=>{"use strict";yi=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(i,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}}});var Jc={};ie(Jc,{ALL_KEYS_VALUE:()=>Xc,SameWindowStorageEvent:()=>bi});var Xc,bi,ed=p(()=>{"use strict";Xc="__all__",bi=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Xc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new bi(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new bi(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new bi(Xc))}})});var rd={};ie(rd,{FocusMainContentEvent:()=>td});var td,od=p(()=>{"use strict";td=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Gm={};function N0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function F0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var id=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",N0);document.addEventListener("click",F0)});var vi,nd=p(()=>{"use strict";P();vi=A`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`});function
|
|
72
|
+
`});function ad(r,e,t){return r?e(r):t?.(r)}var Km=p(()=>{});var sd=p(()=>{Km()});var qm,Zm,Ym=p(()=>{"use strict";Y();jt();sd();P();(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(qm||(qm={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Zm||(Zm={}))});var Qm=p(()=>{"use strict"});var Xm=p(()=>{"use strict";Ym();Qm()});function B0(r){this._$AN!==void 0?(Oa(this),this._$AM=r,Jm(this)):this._$AM=r}function D0(r,e=!1,t=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=t;a<i.length;a++)gn(i[a],!1),Oa(i[a]);else i!=null&&(gn(i,!1),Oa(i));else gn(this,r)}var gn,Oa,Jm,M0,Ea,eg=p(()=>{Ns();yo();yo();gn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let i of t)i._$AO?.(e,!1),gn(i,e);return!0},Oa=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},Jm=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),M0(e)}};M0=r=>{r.type==tr.CHILD&&(r._$AP??=D0,r._$AQ??=B0)},Ea=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),Jm(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(gn(this,e),Oa(this))}setValue(e){if(qu(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var tg=p(()=>{eg()});var rg,U0,ld,OL,og=p(()=>{"use strict";tg();P();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(rg||(rg={}));U0={sm:640,md:768,lg:1024,xl:1280},ld=class extends Ea{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,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,[t,i,n]){return this.lastArgs=[t,i,n],this.render(t,i,n)}render(e,t,i){let n=this.resolveThreshold(e),a=i??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:U0[e]}},OL=Vt(ld)});var ig=p(()=>{"use strict";og()});var cd,dd,pd,ud,_o,fd,L=p(()=>{"use strict";Cu();P();Y();jt();nt();rf();qi();Gs();Gn();Ys();qn();Yn();Il();_l();Zi();na();Qn();tc();sn();rc();zr();ac();lc();cc();pc();ya();aa();Hc();sa();Gc();Yc();Ca();ee();ed();od();id();nd();od();id();Gs();Gn();Ys();Ca();qn();Yn();Il();_l();Zi();na();Hc();Qn();tc();Yc();sn();rc();zr();ac();lc();cc();pc();ya();ed();aa();sa();Gc();nd();Xm();ig();ee();_o=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((pd=(dd=(cd=window.safari)===null||cd===void 0?void 0:cd.pushNotification)===null||dd===void 0?void 0:dd.toString())!==null&&pd!==void 0?pd:"")==="[object SafariRemoteNotification]",fd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ud=window.ftGlobals)!==null&&ud!==void 0?ud:{lit:Is,litDecorators:Ps,litRepeat:Fs,litClassMap:Bs,litStyleMap:Ds,litUnsafeHTML:Ms,wcUtils:{...js,...Us,...Zs,...Qc,...Qs,...tl,...Ll,...Vs,...Zl,...rd,...Gm,...zc,...Al,...ec,...Zc,...Jl,...xh,...el,...nc,...kl,...sc,...vi,...wh,...dc,...Bc,...Jc,...Yl,...Xl,...jc,isSafari:_o,isTouchScreen:fd,setVariable:y}}});var ng,$,ag,sg,lg,cg,dg,_r=p(()=>{"use strict";P();L();ng=o.extend("--ft-ripple-color","",E.colorContent),$={color:ng,backgroundColor:o.extend("--ft-ripple-background-color","",ng),opacityContentOnSurfacePressed:o.external(E.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(E.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(E.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(E.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},ag=o.extend("--ft-ripple-color","",E.colorPrimary),sg={color:ag,backgroundColor:o.extend("--ft-ripple-background-color","",ag)},lg=o.extend("--ft-ripple-color","",E.colorSecondary),cg={color:lg,backgroundColor:o.extend("--ft-ripple-background-color","",lg)},dg=A`
|
|
73
73
|
:host {
|
|
74
74
|
display: contents;
|
|
75
75
|
}
|
|
@@ -82,7 +82,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
82
82
|
|
|
83
83
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
84
84
|
overflow: hidden;
|
|
85
|
-
border-radius: ${
|
|
85
|
+
border-radius: ${$.borderRadius};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.ft-ripple .ft-ripple--background,
|
|
@@ -116,27 +116,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ft-ripple .ft-ripple--background {
|
|
119
|
-
background-color: ${
|
|
119
|
+
background-color: ${$.backgroundColor};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ft-ripple .ft-ripple--effect {
|
|
123
|
-
background-color: ${
|
|
123
|
+
background-color: ${$.color};
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
127
|
-
background-color: ${
|
|
127
|
+
background-color: ${cg.backgroundColor};
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
131
|
-
background-color: ${
|
|
131
|
+
background-color: ${cg.color};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
135
|
-
background-color: ${
|
|
135
|
+
background-color: ${sg.backgroundColor};
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
139
|
-
background-color: ${
|
|
139
|
+
background-color: ${sg.color};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-ripple .ft-ripple--background {
|
|
@@ -166,23 +166,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
169
|
-
opacity: ${
|
|
169
|
+
opacity: ${$.opacityContentOnSurfaceHover};
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
173
|
-
opacity: ${
|
|
173
|
+
opacity: ${$.opacityContentOnSurfaceSelected};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
177
|
-
opacity: ${
|
|
177
|
+
opacity: ${$.opacityContentOnSurfaceFocused};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
181
|
-
opacity: ${
|
|
181
|
+
opacity: ${$.opacityContentOnSurfacePressed};
|
|
182
182
|
transform: translate(-50%, -50%) scale(1);
|
|
183
183
|
}
|
|
184
|
-
`});function
|
|
185
|
-
${e?Jt(e):
|
|
184
|
+
`});function ug(r,e){let t=Ji[r];return A`
|
|
185
|
+
${e?Jt(e):A`.ft-typography--${Jt(r)}`} {
|
|
186
186
|
font-family: ${t.fontFamily};
|
|
187
187
|
font-size: ${t.fontSize};
|
|
188
188
|
font-weight: ${t.fontWeight};
|
|
@@ -191,7 +191,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
191
191
|
text-decoration: ${t.textDecoration};
|
|
192
192
|
text-transform: ${t.textCase};
|
|
193
193
|
}
|
|
194
|
-
`}var
|
|
194
|
+
`}var fg=p(()=>{"use strict";P();ee()});var hg,Tr,W,xi,Si,Ci,Oi,$r,He,je,Ei,wi,lr,mg,gg,yg,bg,vg,to,cr,xg,Sg,Cg,Og,Eg,Tt=p(()=>{"use strict";P();L();ee();fg();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();hg=o.extend("--ft-typography-font-family","",E.titleFont),Tr=o.extend("--ft-typography-font-family","",E.contentFont),W={fontFamily:Tr,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xi={fontFamily:o.extend("--ft-typography-title-font-family","",hg),fontSize:o.extend("--ft-typography-title-font-size","",W.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",W.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",W.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",W.textTransform,"inherit")},Si={fontFamily:o.extend("--ft-typography-title-dense-font-family","",hg),fontSize:o.extend("--ft-typography-title-dense-font-size","",W.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",W.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",W.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",W.textTransform,"inherit")},Ci={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Tr),fontSize:o.extend("--ft-typography-subtitle1-font-size","",W.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",W.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",W.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",W.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",W.textTransform,"inherit")},Oi={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Tr),fontSize:o.extend("--ft-typography-subtitle2-font-size","",W.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",W.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",W.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",W.textTransform,"inherit")},$r={fontFamily:o.extend("--ft-typography-body1-font-family","",Tr),fontSize:o.extend("--ft-typography-body1-font-size","",W.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",W.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",W.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",W.textTransform,"inherit")},He={fontFamily:o.extend("--ft-typography-body2-font-family","",Tr),fontSize:o.extend("--ft-typography-body2-font-size","",W.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",W.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",W.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",W.textTransform,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Tr),fontSize:o.extend("--ft-typography-caption-font-size","",W.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",W.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",W.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",W.textTransform,"inherit")},Ei={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Tr),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",W.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",W.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",W.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",W.textTransform,"inherit")},wi={fontFamily:o.extend("--ft-typography-overline-font-family","",Tr),fontSize:o.extend("--ft-typography-overline-font-size","",W.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",W.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",W.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",W.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",W.textTransform,"uppercase")},lr={fontFamily:o.extend("--ft-typography-button-font-family","",Tr),fontSize:o.extend("--ft-typography-button-font-size","",W.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",W.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",W.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",W.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",W.textTransform,"uppercase")},mg=A`
|
|
195
195
|
.ft-typography--title {
|
|
196
196
|
font-family: ${xi.fontFamily};
|
|
197
197
|
font-size: ${xi.fontSize};
|
|
@@ -200,7 +200,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
200
200
|
line-height: ${xi.lineHeight};
|
|
201
201
|
text-transform: ${xi.textTransform};
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,gg=A`
|
|
204
204
|
.ft-typography--title-dense {
|
|
205
205
|
font-family: ${Si.fontFamily};
|
|
206
206
|
font-size: ${Si.fontSize};
|
|
@@ -209,7 +209,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
209
209
|
line-height: ${Si.lineHeight};
|
|
210
210
|
text-transform: ${Si.textTransform};
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,yg=A`
|
|
213
213
|
.ft-typography--subtitle1 {
|
|
214
214
|
font-family: ${Ci.fontFamily};
|
|
215
215
|
font-size: ${Ci.fontSize};
|
|
@@ -218,7 +218,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
218
218
|
line-height: ${Ci.lineHeight};
|
|
219
219
|
text-transform: ${Ci.textTransform};
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,bg=A`
|
|
222
222
|
.ft-typography--subtitle2 {
|
|
223
223
|
font-family: ${Oi.fontFamily};
|
|
224
224
|
font-size: ${Oi.fontSize};
|
|
@@ -228,16 +228,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
228
228
|
text-transform: ${Oi.textTransform};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
`,
|
|
231
|
+
`,vg=A`
|
|
232
232
|
.ft-typography--body1 {
|
|
233
|
-
font-family: ${
|
|
234
|
-
font-size: ${
|
|
235
|
-
font-weight: ${
|
|
236
|
-
letter-spacing: ${
|
|
237
|
-
line-height: ${
|
|
238
|
-
text-transform: ${
|
|
239
|
-
}
|
|
240
|
-
`,to=
|
|
233
|
+
font-family: ${$r.fontFamily};
|
|
234
|
+
font-size: ${$r.fontSize};
|
|
235
|
+
font-weight: ${$r.fontWeight};
|
|
236
|
+
letter-spacing: ${$r.letterSpacing};
|
|
237
|
+
line-height: ${$r.lineHeight};
|
|
238
|
+
text-transform: ${$r.textTransform};
|
|
239
|
+
}
|
|
240
|
+
`,to=A`
|
|
241
241
|
.ft-typography--body2 {
|
|
242
242
|
font-family: ${He.fontFamily};
|
|
243
243
|
font-size: ${He.fontSize};
|
|
@@ -246,7 +246,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
246
246
|
line-height: ${He.lineHeight};
|
|
247
247
|
text-transform: ${He.textTransform};
|
|
248
248
|
}
|
|
249
|
-
`,cr=
|
|
249
|
+
`,cr=A`
|
|
250
250
|
.ft-typography--caption {
|
|
251
251
|
font-family: ${je.fontFamily};
|
|
252
252
|
font-size: ${je.fontSize};
|
|
@@ -255,7 +255,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
255
255
|
line-height: ${je.lineHeight};
|
|
256
256
|
text-transform: ${je.textTransform};
|
|
257
257
|
}
|
|
258
|
-
`,
|
|
258
|
+
`,xg=A`
|
|
259
259
|
.ft-typography--breadcrumb {
|
|
260
260
|
font-family: ${Ei.fontFamily};
|
|
261
261
|
font-size: ${Ei.fontSize};
|
|
@@ -264,7 +264,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
264
264
|
line-height: ${Ei.lineHeight};
|
|
265
265
|
text-transform: ${Ei.textTransform};
|
|
266
266
|
}
|
|
267
|
-
`,
|
|
267
|
+
`,Sg=A`
|
|
268
268
|
.ft-typography--overline {
|
|
269
269
|
font-family: ${wi.fontFamily};
|
|
270
270
|
font-size: ${wi.fontSize};
|
|
@@ -273,7 +273,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
273
273
|
line-height: ${wi.lineHeight};
|
|
274
274
|
text-transform: ${wi.textTransform};
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
276
|
+
`,Cg=A`
|
|
277
277
|
.ft-typography--button {
|
|
278
278
|
font-family: ${lr.fontFamily};
|
|
279
279
|
font-size: ${lr.fontSize};
|
|
@@ -282,11 +282,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
282
282
|
line-height: ${lr.lineHeight};
|
|
283
283
|
text-transform: ${lr.textTransform};
|
|
284
284
|
}
|
|
285
|
-
`,
|
|
285
|
+
`,Og=A`
|
|
286
286
|
.ft-typography {
|
|
287
287
|
vertical-align: inherit;
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
289
|
+
`,Eg=[Object.keys(Ji).map(r=>ug(r))]});var Le,wg,yn=p(()=>{"use strict";P();L();Le={color:o.extend("--ft-loader-color","",E.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},wg=A`
|
|
290
290
|
:host {
|
|
291
291
|
line-height: 0;
|
|
292
292
|
}
|
|
@@ -355,7 +355,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
355
355
|
transform: translate(calc(0.35 * ${Le.size}), 0);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
`});var
|
|
358
|
+
`});var Ne,Rg,$o=p(()=>{"use strict";P();L();Ne={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Rg=[A`
|
|
359
359
|
:host, i.ft-icon {
|
|
360
360
|
display: inline-flex;
|
|
361
361
|
align-items: center;
|
|
@@ -364,14 +364,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
:host {
|
|
367
|
-
width: ${
|
|
368
|
-
height: ${
|
|
367
|
+
width: ${Ne.size};
|
|
368
|
+
height: ${Ne.size};
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
i.ft-icon {
|
|
372
372
|
width: 100%;
|
|
373
373
|
height: 100%;
|
|
374
|
-
font-size: ${
|
|
374
|
+
font-size: ${Ne.size};
|
|
375
375
|
line-height: 1;
|
|
376
376
|
font-weight: normal;
|
|
377
377
|
text-transform: none;
|
|
@@ -382,28 +382,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
382
382
|
text-rendering: auto;
|
|
383
383
|
-webkit-font-smoothing: antialiased;
|
|
384
384
|
-moz-osx-font-smoothing: grayscale;
|
|
385
|
-
vertical-align: ${
|
|
385
|
+
vertical-align: ${Ne.verticalAlign};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
i.ft-icon.ft-icon--fluid-topics {
|
|
389
|
-
font-family: ${
|
|
389
|
+
font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
390
390
|
|
|
391
391
|
/* Ugly fix because font is broken */
|
|
392
|
-
font-size: calc(0.75 * ${
|
|
393
|
-
line-height: ${
|
|
392
|
+
font-size: calc(0.75 * ${Ne.size});
|
|
393
|
+
line-height: ${Ne.size};
|
|
394
394
|
position: relative;
|
|
395
395
|
top: -4%;
|
|
396
396
|
justify-content: center;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
.ft-icon--file-format {
|
|
400
|
-
font-family: ${
|
|
400
|
+
font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.ft-icon--material {
|
|
404
|
-
font-family: ${
|
|
404
|
+
font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
|
|
405
405
|
}
|
|
406
|
-
`,Ar]});var
|
|
406
|
+
`,Ar]});var Ag,te,Lg,hd,dr,Ig,To=p(()=>{"use strict";P();L();_r();Tt();yn();$o();Ag=o.extend("--ft-button-color","",E.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",E.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",E.borderRadiusL),color:Ag,fontSize:o.extend("--ft-button-font-size","",lr.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Ag),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Lg=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",E.colorOnPrimary)),hd={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",E.colorPrimary)),color:Lg,rippleColor:o.extend("--ft-button-primary-ripple-color","",Lg)},dr={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",E.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ig=[A`
|
|
407
407
|
:host {
|
|
408
408
|
display: inline-block;
|
|
409
409
|
max-width: 100%;
|
|
@@ -446,8 +446,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
446
446
|
|
|
447
447
|
--button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
|
|
448
448
|
--button-internal-color: ${te.color};
|
|
449
|
-
${y(
|
|
450
|
-
${y(
|
|
449
|
+
${y(Ne.size,te.iconSize)};
|
|
450
|
+
${y($.color,te.rippleColor)};
|
|
451
451
|
|
|
452
452
|
border-radius: ${te.borderRadius};
|
|
453
453
|
padding: ${te.verticalPadding} ${te.horizontalPadding};
|
|
@@ -489,9 +489,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
.ft-button.ft-button--primary {
|
|
492
|
-
background-color: ${
|
|
493
|
-
--button-internal-color: ${
|
|
494
|
-
${y(
|
|
492
|
+
background-color: ${hd.backgroundColor};
|
|
493
|
+
--button-internal-color: ${hd.color};
|
|
494
|
+
${y($.color,hd.rippleColor)};
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
.ft-button:focus {
|
|
@@ -540,7 +540,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
540
540
|
${y(Le.size,te.iconSize)};
|
|
541
541
|
${y(Le.color,"var(--button-internal-color)")};
|
|
542
542
|
}
|
|
543
|
-
`,Ar]});var ht,re,
|
|
543
|
+
`,Ar]});var ht,re,md=p(()=>{"use strict";P();Y();nt();L();_r();ht=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},re=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 me(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new me(10),this.moveRipple=e=>{var t,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return S`
|
|
544
544
|
<style>
|
|
545
545
|
.ft-ripple .ft-ripple--effect {
|
|
546
546
|
left: ${this.originX}px;
|
|
@@ -551,15 +551,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
551
551
|
<div class="ft-ripple--background"></div>
|
|
552
552
|
<div class="ft-ripple--effect"></div>
|
|
553
553
|
</div>
|
|
554
|
-
`}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 t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=
|
|
555
|
-
<${
|
|
554
|
+
`}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 t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=dg;ht([h({type:Boolean})],re.prototype,"primary",void 0);ht([h({type:Boolean})],re.prototype,"secondary",void 0);ht([h({type:Boolean})],re.prototype,"unbounded",void 0);ht([h({type:Boolean})],re.prototype,"activated",void 0);ht([h({type:Boolean})],re.prototype,"selected",void 0);ht([h({type:Boolean})],re.prototype,"disabled",void 0);ht([D()],re.prototype,"hovered",void 0);ht([D()],re.prototype,"focused",void 0);ht([D()],re.prototype,"pressed",void 0);ht([D()],re.prototype,"rippling",void 0);ht([D()],re.prototype,"originX",void 0);ht([D()],re.prototype,"originY",void 0);ht([z(".ft-ripple")],re.prototype,"ripple",void 0);ht([z(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0)});var kg=p(()=>{"use strict"});var at=p(()=>{"use strict";L();md();md();_r();kg();M("ft-ripple")(re)});var $g,z0,gd,_g,yd,bd,Sk,Ck,Tg=p(()=>{Ht();$g=Symbol.for(""),z0=r=>{if(r?.r===$g)return r?._$litStatic$},gd=r=>({_$litStatic$:r,r:$g}),_g=new Map,yd=r=>(e,...t)=>{let i=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<i;){for(d=e[f];f<i&&(a=t[f],(n=z0(a))!==void 0);)d+=n+e[++f],g=!0;f!==i&&l.push(a),s.push(d),f++}if(f===i&&s.push(e[i]),g){let m=s.join("$$lit$$");(e=_g.get(m))===void 0&&(s.raw=s,_g.set(m,e=s)),t=l}return r(e,...t)},bd=yd(S),Sk=yd(Es),Ck=yd(ws)});var Pg=p(()=>{Tg()});var st,Ri=p(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(st||(st={}))});var Ng,oe,vd=p(()=>{"use strict";Pg();Y();L();Ri();Tt();Ng=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},oe=class extends H{constructor(){super(...arguments),this.variant=st.body1}render(){return this.element?bd`
|
|
555
|
+
<${gd(this.element)}
|
|
556
556
|
part="text"
|
|
557
557
|
class="ft-typography ft-typography--${this.variant}">
|
|
558
558
|
<slot></slot>
|
|
559
|
-
</${
|
|
560
|
-
`:
|
|
559
|
+
</${gd(this.element)}>
|
|
560
|
+
`:bd`
|
|
561
561
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
562
|
-
`}};oe.styles=[
|
|
562
|
+
`}};oe.styles=[mg,gg,yg,bg,vg,to,cr,xg,Sg,Cg,Og,...Eg];Ng([h()],oe.prototype,"element",void 0);Ng([h()],oe.prototype,"variant",void 0)});var De=p(()=>{"use strict";L();vd();vd();Tt();Ri();M("ft-typography")(oe)});var pr,Fg,wa=p(()=>{"use strict";P();L();pr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(E.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Fg=A`
|
|
563
563
|
.ft-tooltip--container {
|
|
564
564
|
display: block;
|
|
565
565
|
}
|
|
@@ -588,7 +588,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
588
588
|
position: relative;
|
|
589
589
|
word-break: break-word;
|
|
590
590
|
}
|
|
591
|
-
`});var mt,Ie,
|
|
591
|
+
`});var mt,Ie,xd=p(()=>{"use strict";P();Y();L();De();wa();na();mt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ie=class extends H{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new me,this.revealDebouncer=new me}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return S`
|
|
592
592
|
<div part="container"
|
|
593
593
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
594
594
|
@mouseenter=${this.onHover}
|
|
@@ -606,19 +606,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
606
606
|
</div>
|
|
607
607
|
</div>
|
|
608
608
|
</div>
|
|
609
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(t),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.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&&(this.tooltip.style.left="",this.tooltip.style.top="",jl(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${E.transitionDuration}, left ${E.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,t){return Math.max(e,Math.min(0,-t))}};Ie.elementDefinitions={"ft-typography":oe};Ie.styles=Pg;mt([h()],Ie.prototype,"text",void 0);mt([h({type:Boolean})],Ie.prototype,"manual",void 0);mt([h({type:Boolean})],Ie.prototype,"inline",void 0);mt([h({type:Number})],Ie.prototype,"delay",void 0);mt([h()],Ie.prototype,"position",void 0);mt([$s()],Ie.prototype,"slotNodes",void 0);mt([z(".ft-tooltip--container")],Ie.prototype,"container",void 0);mt([z(".ft-tooltip")],Ie.prototype,"tooltip",void 0);mt([z(".ft-tooltip--content")],Ie.prototype,"tooltipContent",void 0);mt([D()],Ie.prototype,"visible",void 0);mt([Ko({passive:!0})],Ie.prototype,"onTouch",null);mt([Ko({passive:!0})],Ie.prototype,"onHover",null);mt([Ko({passive:!0})],Ie.prototype,"onOut",null);mt([Ko({passive:!0})],Ie.prototype,"onClick",null)});var Ng=p(()=>{"use strict"});var Ea=p(()=>{"use strict";I();bd();bd();Oa();Ng();M("ft-tooltip")(Ie)});function wa(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=U0.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=vd.get(l))!==null&&i!==void 0?i:vd.get(e))!==null&&n!==void 0?n:vd.get(s))!==null&&a!==void 0?a:B.UNKNOWN}var gt,B,vd,U0,Jk,xd=p(()=>{"use strict";(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK=""})(gt||(gt={}));(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(B||(B={}));vd=new Map([...["abw"].map(r=>[r,B.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(r=>[r,B.AUDIO]),...["avi"].map(r=>[r,B.AVI]),...["chm","xhs"].map(r=>[r,B.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(r=>[r,B.CODE]),...["csv"].map(r=>[r,B.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,B.DITA]),...["epub"].map(r=>[r,B.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,B.EXCEL]),...["flac"].map(r=>[r,B.FLAC]),...["gif"].map(r=>[r,B.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,B.GZIP]),...["html","htm","xhtml"].map(r=>[r,B.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(r=>[r,B.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,B.JPEG]),...["json"].map(r=>[r,B.JSON]),...["m4a","m4p"].map(r=>[r,B.M4A]),...["mov","qt"].map(r=>[r,B.MOV]),...["mp3"].map(r=>[r,B.MP3]),...["mp4","m4v"].map(r=>[r,B.MP4]),...["ogg","oga"].map(r=>[r,B.OGG]),...["pdf","ps"].map(r=>[r,B.PDF]),...["png"].map(r=>[r,B.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,B.POWERPOINT]),...["rar"].map(r=>[r,B.RAR]),...["stp"].map(r=>[r,B.STP]),...["txt","rtf","md","mdown"].map(r=>[r,B.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(r=>[r,B.VIDEO]),...["wav"].map(r=>[r,B.WAV]),...["wma"].map(r=>[r,B.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,B.WORD]),...["xml","xsl","rdf"].map(r=>[r,B.XML]),...["yaml","yml","x-yaml"].map(r=>[r,B.YAML]),...["zip"].map(r=>[r,B.ZIP])]),U0=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Jk={[B.ABW]:"#91ABC6",[B.AUDIO]:"#1795E3",[B.AVI]:"#E63324",[B.CHM]:"#71C3EB",[B.CODE]:"#71C3EB",[B.CSV]:"#1F7345",[B.DITA]:"#71C3EB",[B.EPUB]:"#85B926",[B.EXCEL]:"#1F7345",[B.FLAC]:"#1795E3",[B.GIF]:"#59B031",[B.GZIP]:"#F8AB36",[B.HTML]:"#71C3EB",[B.IMAGE]:"#59B031",[B.JPEG]:"#59B031",[B.JSON]:"#71C3EB",[B.M4A]:"#1795E3",[B.MOV]:"#E63324",[B.MP3]:"#1795E3",[B.MP4]:"#E63324",[B.OGG]:"#1795E3",[B.PDF]:"#E44948",[B.PNG]:"#59B031",[B.POWERPOINT]:"#B54A2B",[B.RAR]:"#F8AB36",[B.STP]:"#3764B1",[B.TEXT]:"#3162AB",[B.UNKNOWN]:"#999999",[B.VIDEO]:"#E63324",[B.WAV]:"#1795E3",[B.WMA]:"#1795E3",[B.WORD]:"#3162AB",[B.XML]:"#71C3EB",[B.YAML]:"#71C3EB",[B.ZIP]:"#F8AB36"}});var Ge,Sd=p(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ge||(Ge={}))});var yn,Se,Cd=p(()=>{"use strict";P();Q();I();Ki();xd();_o();Sd();yn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Se=class extends H{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,t=e!==Ge.material||!!this.value;return S`
|
|
609
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(t),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.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&&(this.tooltip.style.left="",this.tooltip.style.top="",Kl(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${E.transitionDuration}, left ${E.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,t){return Math.max(e,Math.min(0,-t))}};Ie.elementDefinitions={"ft-typography":oe};Ie.styles=Fg;mt([h()],Ie.prototype,"text",void 0);mt([h({type:Boolean})],Ie.prototype,"manual",void 0);mt([h({type:Boolean})],Ie.prototype,"inline",void 0);mt([h({type:Number})],Ie.prototype,"delay",void 0);mt([h()],Ie.prototype,"position",void 0);mt([Ts()],Ie.prototype,"slotNodes",void 0);mt([z(".ft-tooltip--container")],Ie.prototype,"container",void 0);mt([z(".ft-tooltip")],Ie.prototype,"tooltip",void 0);mt([z(".ft-tooltip--content")],Ie.prototype,"tooltipContent",void 0);mt([D()],Ie.prototype,"visible",void 0);mt([Ko({passive:!0})],Ie.prototype,"onTouch",null);mt([Ko({passive:!0})],Ie.prototype,"onHover",null);mt([Ko({passive:!0})],Ie.prototype,"onOut",null);mt([Ko({passive:!0})],Ie.prototype,"onClick",null)});var Bg=p(()=>{"use strict"});var Ra=p(()=>{"use strict";L();xd();xd();wa();Bg();M("ft-tooltip")(Ie)});function Aa(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=H0.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=Sd.get(l))!==null&&i!==void 0?i:Sd.get(e))!==null&&n!==void 0?n:Sd.get(s))!==null&&a!==void 0?a:N.UNKNOWN}var gt,N,Sd,H0,t_,Cd=p(()=>{"use strict";(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK=""})(gt||(gt={}));(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(N||(N={}));Sd=new Map([...["abw"].map(r=>[r,N.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(r=>[r,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.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(r=>[r,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.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(r=>[r,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.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(r=>[r,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]),H0=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);t_={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"}});var Ge,Od=p(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ge||(Ge={}))});var bn,Se,Ed=p(()=>{"use strict";P();Y();L();qi();Cd();$o();Od();bn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Se=class extends H{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,t=e!==Ge.material||!!this.value;return S`
|
|
610
610
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
611
611
|
${bo(this.resolvedIcon)}
|
|
612
612
|
<slot ?hidden=${t}></slot>
|
|
613
613
|
</i>
|
|
614
|
-
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ge.file_format:this.resolvedIcon=(e=
|
|
614
|
+
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ge.file_format:this.resolvedIcon=(e=N[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ge.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=gt[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Se.elementDefinitions={};Se.styles=Rg;bn([h()],Se.prototype,"variant",void 0);bn([h()],Se.prototype,"value",void 0);bn([h({reflect:!0,attribute:"aria-hidden"})],Se.prototype,"ariaHidden",void 0);bn([D()],Se.prototype,"resolvedIcon",void 0);bn([z("slot")],Se.prototype,"slottedContent",void 0)});var Pt=p(()=>{"use strict";L();Ed();$o();Od();Ed();Cd();M("ft-icon")(Se)});var Po,wd=p(()=>{"use strict";P();L();yn();Po=class extends H{render(){return S`
|
|
615
615
|
<div class="ft-loader">
|
|
616
616
|
<div></div>
|
|
617
617
|
<div></div>
|
|
618
618
|
<div></div>
|
|
619
619
|
<div></div>
|
|
620
620
|
</div>
|
|
621
|
-
`}};Po.styles=
|
|
621
|
+
`}};Po.styles=wg});var Dg=p(()=>{"use strict"});var Mg=p(()=>{"use strict";L();wd();yn();Dg();wd();M("ft-loader")(Po)});var Ye,ke,Rd=p(()=>{"use strict";L();at();Ra();De();Pt();Mg();P();nt();Y();Ye=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ke=class extends qc(H){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,i;let n=S`
|
|
622
622
|
<ft-ripple part="ripple"
|
|
623
623
|
?disabled=${this.isDisabled()}
|
|
624
624
|
?activated=${this.activated}
|
|
@@ -626,7 +626,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
626
626
|
<ft-typography part="label"
|
|
627
627
|
variant=${this.typographyVariant}
|
|
628
628
|
element="span"
|
|
629
|
-
class="ft-button--label ${
|
|
629
|
+
class="ft-button--label ${_o?"ft-safari-ellipsis-fix":""}"
|
|
630
630
|
?hidden=${!this.hasTextContent()}>
|
|
631
631
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
632
632
|
</ft-typography>
|
|
@@ -658,7 +658,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
658
658
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
659
659
|
`:S`
|
|
660
660
|
<slot part="icon" name="icon"></slot>
|
|
661
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return Jo(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ke.elementDefinitions={"ft-ripple":re,"ft-tooltip":Ie,"ft-typography":oe,"ft-icon":Se,"ft-loader":Po};Ye([h()],ke.prototype,"href",void 0);Ye([h()],ke.prototype,"target",void 0);Ye([h()],ke.prototype,"type",void 0);Ye([h({type:Boolean})],ke.prototype,"disabled",void 0);Ye([h()],ke.prototype,"label",void 0);Ye([h()],ke.prototype,"icon",void 0);Ye([h()],ke.prototype,"iconVariant",void 0);Ye([h({type:Boolean})],ke.prototype,"trailingIcon",void 0);Ye([h({type:Boolean})],ke.prototype,"loading",void 0);Ye([h({attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0);Ye([h()],ke.prototype,"tooltipPosition",void 0);Ye([h({type:Boolean})],ke.prototype,"hideTooltip",void 0);Ye([h({type:Boolean})],ke.prototype,"forceTooltip",void 0);Ye([h({type:Boolean})],ke.prototype,"activated",void 0);Ye([z(".ft-button")],ke.prototype,"button",void 0);Ye([z(".ft-button--label slot")],ke.prototype,"slottedContent",void 0);Ye([z("[part=tooltip]")],ke.prototype,"tooltip",void 0)});var
|
|
661
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return Jo(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ke.elementDefinitions={"ft-ripple":re,"ft-tooltip":Ie,"ft-typography":oe,"ft-icon":Se,"ft-loader":Po};Ye([h()],ke.prototype,"href",void 0);Ye([h()],ke.prototype,"target",void 0);Ye([h()],ke.prototype,"type",void 0);Ye([h({type:Boolean})],ke.prototype,"disabled",void 0);Ye([h()],ke.prototype,"label",void 0);Ye([h()],ke.prototype,"icon",void 0);Ye([h()],ke.prototype,"iconVariant",void 0);Ye([h({type:Boolean})],ke.prototype,"trailingIcon",void 0);Ye([h({type:Boolean})],ke.prototype,"loading",void 0);Ye([h({attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0);Ye([h()],ke.prototype,"tooltipPosition",void 0);Ye([h({type:Boolean})],ke.prototype,"hideTooltip",void 0);Ye([h({type:Boolean})],ke.prototype,"forceTooltip",void 0);Ye([h({type:Boolean})],ke.prototype,"activated",void 0);Ye([z(".ft-button")],ke.prototype,"button",void 0);Ye([z(".ft-button--label slot")],ke.prototype,"slottedContent",void 0);Ye([z("[part=tooltip]")],ke.prototype,"tooltip",void 0)});var La,Fe,Ad=p(()=>{"use strict";Y();L();To();Rd();La=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Fe=class extends ke{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Fe.styles=[Lr,Ig];La([h({type:Boolean})],Fe.prototype,"primary",void 0);La([h({type:Boolean})],Fe.prototype,"outlined",void 0);La([h({type:Boolean})],Fe.prototype,"dense",void 0);La([h({type:Boolean})],Fe.prototype,"round",void 0)});var Ld,Ug,Id=p(()=>{"use strict";P();L();_r();yn();$o();ee();Ld={...x,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},Ug=[A`
|
|
662
662
|
:host {
|
|
663
663
|
display: inline-block;
|
|
664
664
|
max-width: 100%;
|
|
@@ -741,7 +741,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
.ft-button.ft-button--icon-only ft-icon {
|
|
744
|
-
transform: scale(${
|
|
744
|
+
transform: scale(${Ld.iconOnlyScale});
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
/** Brand Primary styles **/
|
|
@@ -749,11 +749,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
749
749
|
.ftds--family-brand.ft-button--primary {
|
|
750
750
|
${y(Le.color,x.primaryBrandIconColor)};
|
|
751
751
|
|
|
752
|
-
${y(
|
|
753
|
-
${y(
|
|
754
|
-
${y(
|
|
755
|
-
${y(
|
|
756
|
-
${y(
|
|
752
|
+
${y($.color,x.primaryBrandStateLayerColor)};
|
|
753
|
+
${y($.opacityContentOnSurfaceHover,x.primaryBrandHoverStateLayerOpacity)};
|
|
754
|
+
${y($.opacityContentOnSurfaceFocused,x.primaryBrandFocusStateLayerOpacity)};
|
|
755
|
+
${y($.opacityContentOnSurfaceSelected,x.primaryBrandActiveStateLayerOpacity)};
|
|
756
|
+
${y($.opacityContentOnSurfacePressed,x.primaryBrandActiveStateLayerOpacity)};
|
|
757
757
|
|
|
758
758
|
background-color: ${x.primaryBrandBackgroundColor};
|
|
759
759
|
color: ${x.primaryBrandColor};
|
|
@@ -773,11 +773,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
773
773
|
.ftds--family-brand.ft-button--secondary {
|
|
774
774
|
${y(Le.color,x.secondaryBrandIconColor)};
|
|
775
775
|
|
|
776
|
-
${y(
|
|
777
|
-
${y(
|
|
778
|
-
${y(
|
|
779
|
-
${y(
|
|
780
|
-
${y(
|
|
776
|
+
${y($.color,x.secondaryBrandStateLayerColor)};
|
|
777
|
+
${y($.opacityContentOnSurfaceHover,x.secondaryBrandHoverStateLayerOpacity)};
|
|
778
|
+
${y($.opacityContentOnSurfaceFocused,x.secondaryBrandFocusStateLayerOpacity)};
|
|
779
|
+
${y($.opacityContentOnSurfaceSelected,x.secondaryBrandActiveStateLayerOpacity)};
|
|
780
|
+
${y($.opacityContentOnSurfacePressed,x.secondaryBrandActiveStateLayerOpacity)};
|
|
781
781
|
|
|
782
782
|
background-color: ${x.secondaryBrandBackgroundColor};
|
|
783
783
|
color: ${x.secondaryBrandColor};
|
|
@@ -798,11 +798,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
798
798
|
.ftds--family-brand.ft-button--tertiary {
|
|
799
799
|
${y(Le.color,x.tertiaryBrandIconColor)};
|
|
800
800
|
|
|
801
|
-
${y(
|
|
802
|
-
${y(
|
|
803
|
-
${y(
|
|
804
|
-
${y(
|
|
805
|
-
${y(
|
|
801
|
+
${y($.color,x.tertiaryBrandStateLayerColor)};
|
|
802
|
+
${y($.opacityContentOnSurfaceHover,x.tertiaryBrandHoverStateLayerOpacity)};
|
|
803
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiaryBrandFocusStateLayerOpacity)};
|
|
804
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiaryBrandActiveStateLayerOpacity)};
|
|
805
|
+
${y($.opacityContentOnSurfacePressed,x.tertiaryBrandActiveStateLayerOpacity)};
|
|
806
806
|
|
|
807
807
|
background-color: ${x.tertiaryBrandBackgroundColor};
|
|
808
808
|
color: ${x.tertiaryBrandColor};
|
|
@@ -822,11 +822,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
822
822
|
.ftds--family-neutral.ft-button--secondary {
|
|
823
823
|
${y(Le.color,x.secondaryNeutralIconColor)};
|
|
824
824
|
|
|
825
|
-
${y(
|
|
826
|
-
${y(
|
|
827
|
-
${y(
|
|
828
|
-
${y(
|
|
829
|
-
${y(
|
|
825
|
+
${y($.backgroundColor,x.secondaryNeutralStateLayerColor)};
|
|
826
|
+
${y($.opacityContentOnSurfaceHover,x.secondaryNeutralHoverStateLayerOpacity)};
|
|
827
|
+
${y($.opacityContentOnSurfaceFocused,x.secondaryNeutralFocusStateLayerOpacity)};
|
|
828
|
+
${y($.opacityContentOnSurfaceSelected,x.secondaryNeutralActiveStateLayerOpacity)};
|
|
829
|
+
${y($.opacityContentOnSurfacePressed,x.secondaryNeutralActiveStateLayerOpacity)};
|
|
830
830
|
|
|
831
831
|
background-color: ${x.secondaryNeutralBackgroundColor};
|
|
832
832
|
color: ${x.secondaryNeutralColor};
|
|
@@ -847,11 +847,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
847
847
|
.ftds--family-neutral.ft-button--tertiary {
|
|
848
848
|
${y(Le.color,x.tertiaryNeutralIconColor)};
|
|
849
849
|
|
|
850
|
-
${y(
|
|
851
|
-
${y(
|
|
852
|
-
${y(
|
|
853
|
-
${y(
|
|
854
|
-
${y(
|
|
850
|
+
${y($.backgroundColor,x.tertiaryNeutralStateLayerColor)};
|
|
851
|
+
${y($.opacityContentOnSurfaceHover,x.tertiaryNeutralHoverStateLayerOpacity)};
|
|
852
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiaryNeutralFocusStateLayerOpacity)};
|
|
853
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiaryNeutralActiveStateLayerOpacity)};
|
|
854
|
+
${y($.opacityContentOnSurfacePressed,x.tertiaryNeutralActiveStateLayerOpacity)};
|
|
855
855
|
|
|
856
856
|
background-color: ${x.tertiaryNeutralBackgroundColor};
|
|
857
857
|
color: ${x.tertiaryNeutralColor};
|
|
@@ -871,11 +871,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
871
871
|
.ftds--family-info.ft-button--secondary {
|
|
872
872
|
${y(Le.color,x.secondaryInfoIconColor)};
|
|
873
873
|
|
|
874
|
-
${y(
|
|
875
|
-
${y(
|
|
876
|
-
${y(
|
|
877
|
-
${y(
|
|
878
|
-
${y(
|
|
874
|
+
${y($.backgroundColor,x.secondaryInfoStateLayerColor)};
|
|
875
|
+
${y($.opacityContentOnSurfaceHover,x.secondaryInfoHoverStateLayerOpacity)};
|
|
876
|
+
${y($.opacityContentOnSurfaceFocused,x.secondaryInfoFocusStateLayerOpacity)};
|
|
877
|
+
${y($.opacityContentOnSurfaceSelected,x.secondaryInfoActiveStateLayerOpacity)};
|
|
878
|
+
${y($.opacityContentOnSurfacePressed,x.secondaryInfoActiveStateLayerOpacity)};
|
|
879
879
|
|
|
880
880
|
background-color: ${x.secondaryInfoBackgroundColor};
|
|
881
881
|
color: ${x.secondaryInfoColor};
|
|
@@ -896,11 +896,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
896
896
|
.ftds--family-info.ft-button--tertiary {
|
|
897
897
|
${y(Le.color,x.tertiaryInfoIconColor)};
|
|
898
898
|
|
|
899
|
-
${y(
|
|
900
|
-
${y(
|
|
901
|
-
${y(
|
|
902
|
-
${y(
|
|
903
|
-
${y(
|
|
899
|
+
${y($.backgroundColor,x.tertiaryInfoStateLayerColor)};
|
|
900
|
+
${y($.opacityContentOnSurfaceHover,x.tertiaryInfoHoverStateLayerOpacity)};
|
|
901
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiaryInfoFocusStateLayerOpacity)};
|
|
902
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiaryInfoActiveStateLayerOpacity)};
|
|
903
|
+
${y($.opacityContentOnSurfacePressed,x.tertiaryInfoActiveStateLayerOpacity)};
|
|
904
904
|
|
|
905
905
|
background-color: ${x.tertiaryInfoBackgroundColor};
|
|
906
906
|
color: ${x.tertiaryInfoColor};
|
|
@@ -920,11 +920,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
920
920
|
.ftds--family-success.ft-button--secondary {
|
|
921
921
|
${y(Le.color,x.secondarySuccessIconColor)};
|
|
922
922
|
|
|
923
|
-
${y(
|
|
924
|
-
${y(
|
|
925
|
-
${y(
|
|
926
|
-
${y(
|
|
927
|
-
${y(
|
|
923
|
+
${y($.backgroundColor,x.secondarySuccessStateLayerColor)};
|
|
924
|
+
${y($.opacityContentOnSurfaceHover,x.secondarySuccessHoverStateLayerOpacity)};
|
|
925
|
+
${y($.opacityContentOnSurfaceFocused,x.secondarySuccessFocusStateLayerOpacity)};
|
|
926
|
+
${y($.opacityContentOnSurfaceSelected,x.secondarySuccessActiveStateLayerOpacity)};
|
|
927
|
+
${y($.opacityContentOnSurfacePressed,x.secondarySuccessActiveStateLayerOpacity)};
|
|
928
928
|
|
|
929
929
|
background-color: ${x.secondarySuccessBackgroundColor};
|
|
930
930
|
color: ${x.secondarySuccessColor};
|
|
@@ -945,11 +945,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
945
945
|
.ftds--family-success.ft-button--tertiary {
|
|
946
946
|
${y(Le.color,x.tertiarySuccessIconColor)};
|
|
947
947
|
|
|
948
|
-
${y(
|
|
949
|
-
${y(
|
|
950
|
-
${y(
|
|
951
|
-
${y(
|
|
952
|
-
${y(
|
|
948
|
+
${y($.backgroundColor,x.tertiarySuccessStateLayerColor)};
|
|
949
|
+
${y($.opacityContentOnSurfaceHover,x.tertiarySuccessHoverStateLayerOpacity)};
|
|
950
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiarySuccessFocusStateLayerOpacity)};
|
|
951
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiarySuccessActiveStateLayerOpacity)};
|
|
952
|
+
${y($.opacityContentOnSurfacePressed,x.tertiarySuccessActiveStateLayerOpacity)};
|
|
953
953
|
|
|
954
954
|
background-color: ${x.tertiarySuccessBackgroundColor};
|
|
955
955
|
color: ${x.tertiarySuccessColor};
|
|
@@ -969,11 +969,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
969
969
|
.ftds--family-warning.ft-button--secondary {
|
|
970
970
|
${y(Le.color,x.secondaryWarningIconColor)};
|
|
971
971
|
|
|
972
|
-
${y(
|
|
973
|
-
${y(
|
|
974
|
-
${y(
|
|
975
|
-
${y(
|
|
976
|
-
${y(
|
|
972
|
+
${y($.backgroundColor,x.secondaryWarningStateLayerColor)};
|
|
973
|
+
${y($.opacityContentOnSurfaceHover,x.secondaryWarningHoverStateLayerOpacity)};
|
|
974
|
+
${y($.opacityContentOnSurfaceFocused,x.secondaryWarningFocusStateLayerOpacity)};
|
|
975
|
+
${y($.opacityContentOnSurfaceSelected,x.secondaryWarningActiveStateLayerOpacity)};
|
|
976
|
+
${y($.opacityContentOnSurfacePressed,x.secondaryWarningActiveStateLayerOpacity)};
|
|
977
977
|
|
|
978
978
|
background-color: ${x.secondaryWarningBackgroundColor};
|
|
979
979
|
color: ${x.secondaryWarningColor};
|
|
@@ -994,11 +994,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
994
994
|
.ftds--family-warning.ft-button--tertiary {
|
|
995
995
|
${y(Le.color,x.tertiaryWarningIconColor)};
|
|
996
996
|
|
|
997
|
-
${y(
|
|
998
|
-
${y(
|
|
999
|
-
${y(
|
|
1000
|
-
${y(
|
|
1001
|
-
${y(
|
|
997
|
+
${y($.backgroundColor,x.tertiaryWarningStateLayerColor)};
|
|
998
|
+
${y($.opacityContentOnSurfaceHover,x.tertiaryWarningHoverStateLayerOpacity)};
|
|
999
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiaryWarningFocusStateLayerOpacity)};
|
|
1000
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiaryWarningActiveStateLayerOpacity)};
|
|
1001
|
+
${y($.opacityContentOnSurfacePressed,x.tertiaryWarningActiveStateLayerOpacity)};
|
|
1002
1002
|
|
|
1003
1003
|
background-color: ${x.tertiaryWarningBackgroundColor};
|
|
1004
1004
|
color: ${x.tertiaryWarningColor};
|
|
@@ -1018,11 +1018,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1018
1018
|
.ftds--family-error.ft-button--secondary {
|
|
1019
1019
|
${y(Le.color,x.secondaryErrorIconColor)};
|
|
1020
1020
|
|
|
1021
|
-
${y(
|
|
1022
|
-
${y(
|
|
1023
|
-
${y(
|
|
1024
|
-
${y(
|
|
1025
|
-
${y(
|
|
1021
|
+
${y($.backgroundColor,x.secondaryErrorStateLayerColor)};
|
|
1022
|
+
${y($.opacityContentOnSurfaceHover,x.secondaryErrorHoverStateLayerOpacity)};
|
|
1023
|
+
${y($.opacityContentOnSurfaceFocused,x.secondaryErrorFocusStateLayerOpacity)};
|
|
1024
|
+
${y($.opacityContentOnSurfaceSelected,x.secondaryErrorActiveStateLayerOpacity)};
|
|
1025
|
+
${y($.opacityContentOnSurfacePressed,x.secondaryErrorActiveStateLayerOpacity)};
|
|
1026
1026
|
|
|
1027
1027
|
background-color: ${x.secondaryErrorBackgroundColor};
|
|
1028
1028
|
color: ${x.secondaryErrorColor};
|
|
@@ -1043,11 +1043,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1043
1043
|
.ftds--family-error.ft-button--tertiary {
|
|
1044
1044
|
${y(Le.color,x.tertiaryErrorIconColor)};
|
|
1045
1045
|
|
|
1046
|
-
${y(
|
|
1047
|
-
${y(
|
|
1048
|
-
${y(
|
|
1049
|
-
${y(
|
|
1050
|
-
${y(
|
|
1046
|
+
${y($.backgroundColor,x.tertiaryErrorStateLayerColor)};
|
|
1047
|
+
${y($.opacityContentOnSurfaceHover,x.tertiaryErrorHoverStateLayerOpacity)};
|
|
1048
|
+
${y($.opacityContentOnSurfaceFocused,x.tertiaryErrorFocusStateLayerOpacity)};
|
|
1049
|
+
${y($.opacityContentOnSurfaceSelected,x.tertiaryErrorActiveStateLayerOpacity)};
|
|
1050
|
+
${y($.opacityContentOnSurfacePressed,x.tertiaryErrorActiveStateLayerOpacity)};
|
|
1051
1051
|
|
|
1052
1052
|
background-color: ${x.tertiaryErrorBackgroundColor};
|
|
1053
1053
|
color: ${x.tertiaryErrorColor};
|
|
@@ -1065,7 +1065,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1065
1065
|
/** Large styles **/
|
|
1066
1066
|
|
|
1067
1067
|
.ftds--size-large {
|
|
1068
|
-
${y(
|
|
1068
|
+
${y(Ne.size,x.largeIconSize)};
|
|
1069
1069
|
${y(Le.size,x.largeIconSize)};
|
|
1070
1070
|
|
|
1071
1071
|
height: ${x.largeHeight};
|
|
@@ -1087,7 +1087,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1087
1087
|
/** Small styles **/
|
|
1088
1088
|
|
|
1089
1089
|
.ftds--size-medium {
|
|
1090
|
-
${y(
|
|
1090
|
+
${y(Ne.size,x.mediumIconSize)};
|
|
1091
1091
|
${y(Le.size,x.mediumIconSize)};
|
|
1092
1092
|
|
|
1093
1093
|
height: ${x.mediumHeight};
|
|
@@ -1110,7 +1110,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1110
1110
|
/** Small styles **/
|
|
1111
1111
|
|
|
1112
1112
|
.ftds--size-small {
|
|
1113
|
-
${y(
|
|
1113
|
+
${y(Ne.size,x.smallIconSize)};
|
|
1114
1114
|
${y(Le.size,x.smallIconSize)};
|
|
1115
1115
|
|
|
1116
1116
|
height: ${x.smallHeight};
|
|
@@ -1128,7 +1128,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1128
1128
|
.ftds--size-small.ft-button--icon-only {
|
|
1129
1129
|
width: ${x.smallIconOnlyWidth};
|
|
1130
1130
|
}
|
|
1131
|
-
`,Ar]});var
|
|
1131
|
+
`,Ar]});var Ia,Zt,kd=p(()=>{"use strict";Rd();Y();Ri();L();Id();ee();Pt();Ia=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Zt=class extends ar(ke){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Ct.brand,this.iconVariant=Ge.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Ve.large:return st.body2medium;case Ve.medium:return st.caption1medium;case Ve.small:return st.caption2medium}}};Zt.styles=[Lr,Ug];Ia([h({type:Boolean})],Zt.prototype,"primary",void 0);Ia([h({type:Boolean})],Zt.prototype,"secondary",void 0);Ia([h({type:Boolean})],Zt.prototype,"tertiary",void 0);Ia([h({type:Boolean})],Zt.prototype,"round",void 0)});var zg=p(()=>{"use strict"});var Hg=p(()=>{"use strict"});var Nt=p(()=>{"use strict";L();Ad();kd();Ad();To();zg();kd();Id();Hg();M("ft-button")(Fe);M("ftds-button")(Zt)});var Ce,_d,vn=p(()=>{"use strict";P();L();Nt();Ra();Ce={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",E.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",E.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",E.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",E.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",E.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",E.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",E.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",E.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",E.colorPrimary)},_d=A`
|
|
1132
1132
|
* {
|
|
1133
1133
|
box-sizing: border-box;
|
|
1134
1134
|
${y(te.color,Ce.buttonColor)};
|
|
@@ -1204,15 +1204,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1204
1204
|
height: 20px;
|
|
1205
1205
|
border-right: 1px solid ${Ce.colorOutline};
|
|
1206
1206
|
}
|
|
1207
|
-
`});var
|
|
1207
|
+
`});var ka,$d,_a=p(()=>{"use strict";P();L();ka={highlightBackgroundColor:o.create("--ft-sra-highlight-background-color","","COLOR","transparent")},$d=A`
|
|
1208
1208
|
.kwicmatch {
|
|
1209
1209
|
font-weight: 700;
|
|
1210
|
-
background-color: ${
|
|
1210
|
+
background-color: ${ka.highlightBackgroundColor};
|
|
1211
1211
|
}
|
|
1212
|
-
`});var
|
|
1212
|
+
`});var $a,Td,Ta=p(()=>{"use strict";P();L();$a={highlightBackgroundColor:o.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Td=A`
|
|
1213
1213
|
.kwicmatch {
|
|
1214
1214
|
font-weight: 700;
|
|
1215
|
-
background-color: ${
|
|
1215
|
+
background-color: ${$a.highlightBackgroundColor};
|
|
1216
1216
|
}
|
|
1217
1217
|
|
|
1218
1218
|
a {
|
|
@@ -1223,19 +1223,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1223
1223
|
a:focus {
|
|
1224
1224
|
outline: revert;
|
|
1225
1225
|
}
|
|
1226
|
-
`});var
|
|
1227
|
-
`});var
|
|
1228
|
-
`});var z0,No,H0,V,lt=p(()=>{"use strict";I();z0="ft-app-info",No=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};No.eventName="authentication-change";H0={session:(r,e)=>{Ze(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>V.dispatchEvent(new No(e.payload)),0))}},V=kr.get({name:z0,reducers:H0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Fo,Pd=p(()=>{"use strict";lt();Fo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=V.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=V.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var _a,jg=p(()=>{"use strict";Pd();_a=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Fo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Fo.await()}}});var yt,Bo=p(()=>{"use strict";I();jg();yt=class extends _a{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new or,this.cache=e?n.commonCache:new or}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var Ta,Nd=p(()=>{"use strict";lt();Bo();Ta=class extends yt{async listMyBookmarks(){let e=V.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Fd,Gg=p(()=>{"use strict";lt();Fd=class{addCommand(e,t=!1){V.commands.add(e,t)}consumeCommand(e){return V.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Fd});var Kg,W0,Pa,Ai,Na,qg=p(()=>{"use strict";lt();I();Bo();W0=Symbol("clearAfterUnitTest"),Pa=class extends yt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kg]=()=>{this.defaultMessages={},this.cache=new or,this.listeners={}},this.currentUiLocale=V.getState().uiLocale,V.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=V.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ze(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Gr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof rr)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>Kn(0).then(()=>t()).catch(()=>null)))}};Kg=W0;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ai=window.FluidTopicsI18nService,Na=window.FluidTopicsCustomI18nService});var Bd,Zg=p(()=>{"use strict";I();Bd=class{highlightHtml(e,t,i){rc(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Bd});var Fa,Dd=p(()=>{"use strict";lt();Jr();Bo();Fa=class extends yt{async listMySearches(){let{session:e}=V.getState();return Mm(e,ze.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Md,Yg=p(()=>{"use strict";I();lt();Md=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=V.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var i,n,a;return yi.format(e,(i=t?.locale)!==null&&i!==void 0?i:V.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Md});var Pr,Ud=p(()=>{"use strict";I();lt();Pr=class{static get(e,t){var i,n,a,s;let l=V.getState(),{lang:d,region:f}=(n=(i=l.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new eo(l.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,t??`${d}-${f}`)}}});var Ba,Qg=p(()=>{"use strict";Bo();Ba=class extends yt{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")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.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 n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var zd,Xg=p(()=>{"use strict";Ud();zd=class{urlToSearchRequest(e){return Pr.get().parse(e)}searchRequestToUrl(e){return Pr.get().serialize(e)}};window.FluidTopicsUrlService=new zd});var Do,Jg=p(()=>{"use strict";Do=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Do.eventName="change"});var Hd,ey,ty=p(()=>{"use strict";Hd=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},ey=new Hd});var Da,ry=p(()=>{"use strict";I();Jg();ty();Da=class r extends Or{static build(){return new r(window.history,ey,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ze(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Do(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),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 t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Do.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Do.eventName,e)}currentItem(){return Qi(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 Qi(this.states[this.previousDifferentMajorPosition()])}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 Qi(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 t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var oy=p(()=>{"use strict";ry();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Da.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var iy=p(()=>{"use strict";lt()});var Wd=p(()=>{"use strict";Nd();Pd();Gg();qg();Bo();Zg();Dd();Yg();Ud();Qg();Xg();oy();iy()});function ay(r,e){var t;return ny.getState().authenticationRequired&&!(!((t=ny.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var ny,sy=p(()=>{"use strict";lt();ny=V});var We,Re,Vd=p(()=>{"use strict";P();Q();I();Td();lt();Wd();sy();We=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Re=class extends H{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Fo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new or,this.cleanSessionDebouncer=new me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
|
|
1226
|
+
`});var jg,Pd=p(()=>{"use strict";P();jg=A`
|
|
1227
|
+
`});var Gg,Nd=p(()=>{"use strict";P();Gg=A`
|
|
1228
|
+
`});var W0,No,V0,V,lt=p(()=>{"use strict";L();W0="ft-app-info",No=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};No.eventName="authentication-change";V0={session:(r,e)=>{Ze(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>V.dispatchEvent(new No(e.payload)),0))}},V=kr.get({name:W0,reducers:V0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Fo,Fd=p(()=>{"use strict";lt();Fo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=V.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=V.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var Pa,Kg=p(()=>{"use strict";Fd();Pa=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Fo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Fo.await()}}});var yt,Bo=p(()=>{"use strict";L();Kg();yt=class extends Pa{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new or,this.cache=e?n.commonCache:new or}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var Na,Bd=p(()=>{"use strict";lt();Bo();Na=class extends yt{async listMyBookmarks(){let e=V.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Dd,qg=p(()=>{"use strict";lt();Dd=class{addCommand(e,t=!1){V.commands.add(e,t)}consumeCommand(e){return V.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dd});var Zg,Ai,j0,Fa,Li,Ba,Yg=p(()=>{"use strict";lt();L();Bo();Ai=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},j0=Symbol("clearAfterUnitTest"),Fa=class extends Kn(yt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zg]=()=>{this.defaultMessages={},this.cache=new or,this.listeners={}},this.currentUiLocale=V.getState().uiLocale,V.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=V.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ze(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Gr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof rr)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ai({loadedContexts:e})),this.dispatchEvent(new Ai({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ai({loadedContexts:[e]})),this.dispatchEvent(new Ai({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Zn(0).then(()=>i()).catch(()=>null)))}};Zg=j0;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Li=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Md,Qg=p(()=>{"use strict";L();Md=class{highlightHtml(e,t,i){ic(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Md});var Da,Ud=p(()=>{"use strict";lt();Jr();Bo();Da=class extends yt{async listMySearches(){let{session:e}=V.getState();return zm(e,ze.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var zd,Xg=p(()=>{"use strict";L();lt();zd=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=V.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var i,n,a;return yi.format(e,(i=t?.locale)!==null&&i!==void 0?i:V.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new zd});var Pr,Hd=p(()=>{"use strict";L();lt();Pr=class{static get(e,t){var i,n;let a=V.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new eo(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ma,Jg=p(()=>{"use strict";Bo();Ma=class extends yt{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")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.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 n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var Wd,ey=p(()=>{"use strict";Hd();Wd=class{urlToSearchRequest(e){return Pr.get().parse(e)}searchRequestToUrl(e){return Pr.get().serialize(e)}};window.FluidTopicsUrlService=new Wd});var Do,ty=p(()=>{"use strict";Do=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Do.eventName="change"});var Vd,ry,oy=p(()=>{"use strict";Vd=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},ry=new Vd});var Ua,iy=p(()=>{"use strict";L();ty();oy();Ua=class r extends Or{static build(){return new r(window.history,ry,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ze(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Do(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),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 t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Do.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Do.eventName,e)}currentItem(){return Xi(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 Xi(this.states[this.previousDifferentMajorPosition()])}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 Xi(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 t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var ny=p(()=>{"use strict";iy();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ua.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var ay=p(()=>{"use strict";lt()});var jd=p(()=>{"use strict";Bd();Fd();qg();Yg();Bo();Qg();Ud();Xg();Hd();Jg();ey();ny();ay()});function ly(r,e){var t;return sy.getState().authenticationRequired&&!(!((t=sy.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var sy,cy=p(()=>{"use strict";lt();sy=V});var We,Re,Gd=p(()=>{"use strict";P();Y();L();Nd();lt();jd();cy();We=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Re=class extends H{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Fo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new or,this.cleanSessionDebouncer=new me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
|
|
1229
1229
|
<slot></slot>
|
|
1230
|
-
`}connectedCallback(){super.connectedCallback(),V.addEventListener(No.eventName,this.reloadConfiguration)}disconnectedCallback(){V.addEventListener(No.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(V.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&V.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&V.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&V.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&V.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&V.actions.noCustom(this.noCustom),e.has("editorMode")&&V.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&V.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&V.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Ai.addContext(f)),e.has("openExternalDocumentInNewTab")&&V.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&V.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&V.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(V.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),V.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),V.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&V.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&V.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ay(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Re.elementDefinitions={};Re.styles=Vg;We([h()],Re.prototype,"baseUrl",void 0);We([h()],Re.prototype,"apiIntegrationIdentifier",void 0);We([h()],Re.prototype,"apiIntegrationAppVersion",void 0);We([h()],Re.prototype,"uiLocale",void 0);We([we(null)],Re.prototype,"availableUiLocales",void 0);We([we(null)],Re.prototype,"metadataConfiguration",void 0);We([h({type:Boolean})],Re.prototype,"editorMode",void 0);We([h({type:Boolean})],Re.prototype,"noCustom",void 0);We([h({type:Boolean})],Re.prototype,"openExternalDocumentInNewTab",void 0);We([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Re.prototype,"noCustomComponent",void 0);We([h({type:Boolean})],Re.prototype,"withManualResources",void 0);We([h({type:Boolean})],Re.prototype,"navigatorOnline",void 0);We([h({type:Boolean})],Re.prototype,"forcedOffline",void 0);We([h({type:Object})],Re.prototype,"apiProvider",void 0);We([h({type:Boolean})],Re.prototype,"authenticationRequired",void 0);We([we([])],Re.prototype,"messageContexts",void 0);We([we(void 0)],Re.prototype,"session",void 0);We([D()],Re.prototype,"localesConfiguration",void 0);We([D()],Re.prototype,"availableContentLocales",void 0)});var ly=p(()=>{"use strict";Q();ma();xa();lt()});var Ma,cy=p(()=>{"use strict";lt();Bo();Ma=class extends yt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=V.getState().session;return!!e?.sessionAuthenticated}}});var V0,j0,Ft,jd,Gd,Ua=p(()=>{"use strict";Jr();I();Dd();Nd();lt();cy();V0="ft-user-assets",j0={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(ko).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},Ft=kr.get({name:V0,reducers:j0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ko).map(r=>[r,void 0])),bookmarkByMap:{}}}}),jd=class{constructor(e=new Ma){this.assetCountsService=e,this.currentSession=V.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ta,this.savedSearchesService=new Fa,V.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=V.getState();Ze((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){Ft.actions.clearAssetCount(),Ft.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ft.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ft.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ft.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&Ft.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&Ft.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(Ft.getState().assetCounts.bookmarkByMap).length!==0;e===ko.BOOKMARKS&&t&&Ft.actions.clearBookmarkCountByMap(),Ft.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 t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ft.actions.bookmarks(t)}}},Gd=new jd;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Gd)});var dy=p(()=>{"use strict";Jr();Ua()});var py=p(()=>{"use strict"});var ur=p(()=>{"use strict";I();Vd();ly();lt();Ua();dy();Wd();Td();py();Vd();M("ft-app-context")(Re)});function uy(r){return r.match(/^[\w-]+\.[\w-]+$/)}var fy=p(()=>{"use strict";vn();I()});function Bt(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Na:Ai}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let l=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...l)}customI18n(a,s){if(uy(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,v)=>v?.context&&v.key&&a(g,m,v)?{...v,message:this.i18n({context:v.context,key:v.key,...g})}:v;(s=this[hy])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[my])===null||l===void 0||l.forEach((g,m)=>{var v;return d[m]=(v=d[m])===null||v===void 0?void 0:v.map(C=>f(g,m,C))})}updateI18nProperties(a){var s;(s=this[yy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[za].set(d,{isCustomContext:l}),this[xn].has(d)||this[xn].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[za].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[za].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[xn].forEach(a=>a()),this[xn].clear()}}return e=za,t=xn,G0([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var G0,hy,my,yy,za,xn,gy,Ha,vn=p(()=>{"use strict";I();ur();Q();fy();G0=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},hy=Symbol("i18nAttributes"),my=Symbol("i18nListAttributes"),yy=Symbol("i18nProperties"),za=Symbol("i18nContexts"),xn=Symbol("i18nUnsubs");gy=class extends Bt(H){},Ha=class extends Bt(Kt){}});var Sn,Yt,Kd=p(()=>{"use strict";P();Q();I();_d();vn();ur();Sn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Yt=class extends Ha{constructor(){super(),this.editorMode=!1,this.addStore(V)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
|
|
1230
|
+
`}connectedCallback(){super.connectedCallback(),V.addEventListener(No.eventName,this.reloadConfiguration)}disconnectedCallback(){V.addEventListener(No.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(V.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&V.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&V.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&V.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&V.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&V.actions.noCustom(this.noCustom),e.has("editorMode")&&V.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&V.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&V.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Li.addContext(f)),e.has("openExternalDocumentInNewTab")&&V.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&V.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&V.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(V.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),V.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),V.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&V.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&V.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ly(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Re.elementDefinitions={};Re.styles=Gg;We([h()],Re.prototype,"baseUrl",void 0);We([h()],Re.prototype,"apiIntegrationIdentifier",void 0);We([h()],Re.prototype,"apiIntegrationAppVersion",void 0);We([h()],Re.prototype,"uiLocale",void 0);We([we(null)],Re.prototype,"availableUiLocales",void 0);We([we(null)],Re.prototype,"metadataConfiguration",void 0);We([h({type:Boolean})],Re.prototype,"editorMode",void 0);We([h({type:Boolean})],Re.prototype,"noCustom",void 0);We([h({type:Boolean})],Re.prototype,"openExternalDocumentInNewTab",void 0);We([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Re.prototype,"noCustomComponent",void 0);We([h({type:Boolean})],Re.prototype,"withManualResources",void 0);We([h({type:Boolean})],Re.prototype,"navigatorOnline",void 0);We([h({type:Boolean})],Re.prototype,"forcedOffline",void 0);We([h({type:Object})],Re.prototype,"apiProvider",void 0);We([h({type:Boolean})],Re.prototype,"authenticationRequired",void 0);We([we([])],Re.prototype,"messageContexts",void 0);We([we(void 0)],Re.prototype,"session",void 0);We([D()],Re.prototype,"localesConfiguration",void 0);We([D()],Re.prototype,"availableContentLocales",void 0)});var dy=p(()=>{"use strict";Y();ya();Ca();lt()});var za,py=p(()=>{"use strict";lt();Bo();za=class extends yt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=V.getState().session;return!!e?.sessionAuthenticated}}});var G0,K0,Ft,Kd,qd,Ha=p(()=>{"use strict";Jr();L();Ud();Bd();lt();py();G0="ft-user-assets",K0={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(ko).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},Ft=kr.get({name:G0,reducers:K0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ko).map(r=>[r,void 0])),bookmarkByMap:{}}}}),Kd=class{constructor(e=new za){this.assetCountsService=e,this.currentSession=V.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Da,V.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=V.getState();Ze((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){Ft.actions.clearAssetCount(),Ft.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ft.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ft.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ft.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&Ft.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&Ft.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(Ft.getState().assetCounts.bookmarkByMap).length!==0;e===ko.BOOKMARKS&&t&&Ft.actions.clearBookmarkCountByMap(),Ft.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 t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ft.actions.bookmarks(t)}}},qd=new Kd;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qd)});var uy=p(()=>{"use strict";Jr();Ha()});var fy=p(()=>{"use strict"});var ur=p(()=>{"use strict";L();Gd();dy();lt();Ha();uy();jd();Nd();fy();Gd();M("ft-app-context")(Re)});function hy(r){return r.match(/^[\w-]+\.[\w-]+$/)}var my=p(()=>{"use strict";xn();L()});function Bt(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:Li}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let b=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(s,l,...b)}return d}customI18n(a,s){if(hy(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,b)=>b?.context&&b.key&&a(g,m,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[gy])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[yy])===null||l===void 0||l.forEach((g,m)=>{var b;return d[m]=(b=d[m])===null||b===void 0?void 0:b.map(O=>f(g,m,O))})}updateI18nProperties(a){var s;(s=this[vy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Wa].set(d,{isCustomContext:l}),this[Sn].has(d)||this[Sn].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Wa].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wa].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Sn].forEach(a=>a()),this[Sn].clear()}}return e=Wa,t=Sn,q0([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var q0,gy,yy,vy,Wa,Sn,by,Va,xn=p(()=>{"use strict";L();ur();Y();my();q0=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gy=Symbol("i18nAttributes"),yy=Symbol("i18nListAttributes"),vy=Symbol("i18nProperties"),Wa=Symbol("i18nContexts"),Sn=Symbol("i18nUnsubs");by=class extends Bt(H){},Va=class extends Bt(Kt){}});var Cn,Yt,Zd=p(()=>{"use strict";P();Y();L();Pd();xn();ur();Cn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Yt=class extends Va{constructor(){super(),this.editorMode=!1,this.addStore(V)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
|
|
1231
1231
|
<span class="ft-i18n">
|
|
1232
1232
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1233
1233
|
</span>
|
|
1234
|
-
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};Yt.elementDefinitions={};Yt.styles=
|
|
1235
|
-
`});var Ly=p(()=>{"use strict"});var Y0,Iy,ky=p(()=>{"use strict";I();Y0={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:vo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},Iy=r=>kr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0},reducers:Y0})});var ja,$y=p(()=>{"use strict";ur();ja=class extends yt{constructor(e){super(!0,e)}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var _y,Cn,$i,tp=p(()=>{"use strict";I();ky();Jr();$y();_y=r=>r.request.virtualField===Io.TITLE_ONLY&&r.request.scope===gi.DOCUMENTS,Cn=class r extends Event{constructor(){super(r.eventName)}};Cn.eventName="search-context-clear-all-filters";$i=class r{static build(e,t){return new r(Iy(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new me(10),this.searchDebouncer=new me(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new me(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>({input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:i.request.sort,contentLocale:i.request.contentLocale,scope:i.request.scope}),this.service=t??new ja,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Io.TITLE_ONLY),this.store.actions.setRequestScope(gi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Io.EVERYWHERE),this.store.actions.setRequestScope(gi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return _y(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Cn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),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{this.cancelableSearch=Qo(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof rr||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=Qo(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof rr)&&this.errorHandler&&this.errorHandler(i)}}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)}}});function J0(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[rp]=0,this[Ty]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[rp]>X0?window.clearInterval(this[Ty]):(this[rp]++,this.dispatchEvent(new op))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Q0([D()],e.prototype,"stateManager",void 0),e}var Q0,op,Ty,rp,X0,Dt,Mo=p(()=>{"use strict";I();Q();Ly();tp();Q0=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},op=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ty=Symbol("registerInterval"),rp=Symbol("registerAttempts"),X0=40;Dt=class extends J0(Kt){}});function On(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function En(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var ip=p(()=>{"use strict"});var Ga,Py=p(()=>{"use strict";I();Jr();ur();ip();Ga=class{constructor(e,t){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=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Ba,this.resultsWatcher=ui(e,i=>i.results,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.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=V.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}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}=V.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:On(e.metadataFilters),facets:e.metadataFilters.map(n=>En(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==_t.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:On(i.metadataFilters),facets:i.metadataFilters.map(s=>En(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==_t.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:On(i.metadataFilters),facets:i.metadataFilters.map(s=>En(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case _t.MAP:return{id:e.map.mapId,title:e.map.title,type:hi.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case _t.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:hi.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case _t.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:hi.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var rt,Ka,qa,Za,Fe,np=p(()=>{"use strict";P();Q();I();ep();Mo();ur();Ua();Py();rt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ka=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},qa=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Za=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},Fe=class extends Kt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=$i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Ga(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(V)}render(){return S`
|
|
1236
|
-
<slot @register-ft-search-component
|
|
1237
|
-
@ft-search-result-open-context-menu
|
|
1238
|
-
`}willUpdate(e){super.willUpdate(e),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("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("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("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)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
1234
|
+
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};Yt.elementDefinitions={};Yt.styles=jg;Cn([Ee()],Yt.prototype,"editorMode",void 0);Cn([h()],Yt.prototype,"context",void 0);Cn([h()],Yt.prototype,"key",void 0);Cn([we([])],Yt.prototype,"args",void 0);Cn([h()],Yt.prototype,"defaultMessage",void 0)});var fr,xy=p(()=>{"use strict";ur();fr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Li}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}}});var Sy=p(()=>{"use strict";xn()});var Cy=p(()=>{"use strict"});var hr=p(()=>{"use strict";L();Zd();xy();xn();Sy();Pd();Cy();Zd();M("ft-i18n")(Yt)});var wy,Ry=p(()=>{Ht();wy=r=>r??T});var Ay=p(()=>{Ry()});function Ly(r){var e,t,i,n,a;return((n=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.openMode)===Sa.EXTERNAL}function Ga(r){var e,t,i,n,a;if(Ly(r))return(n=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case $t.MAP:return r.map.readerUrl;case $t.DOCUMENT:return r.document.viewerUrl;case $t.TOPIC:return r.topic.readerUrl}return""}function Iy(r,e){return wy(e&&Ly(r)?"_blank":void 0)}var Xd=p(()=>{"use strict";Jr();Ay()});var ki,_i,ep=p(()=>{"use strict";ki=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}}});var Q0,tp,rp=p(()=>{"use strict";P();Q0={},tp=A`
|
|
1235
|
+
`});var ky=p(()=>{"use strict"});var X0,_y,$y=p(()=>{"use strict";L();X0={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:vo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestSortId:(r,e)=>{r.request.sortId=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},_y=r=>kr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:X0})});var Ka,Ty=p(()=>{"use strict";ur();Ka=class extends yt{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*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(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var Py,On,$i,op=p(()=>{"use strict";L();$y();Jr();Ty();Py=r=>r.request.virtualField===Io.TITLE_ONLY&&r.request.scope===gi.DOCUMENTS,On=class r extends Event{constructor(){super(r.eventName)}};On.eventName="search-context-clear-all-filters";$i=class r{static build(e,t){return new r(_y(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new me(10),this.searchDebouncer=new me(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new me(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=t??new Ka,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>this.store.actions.configuration(e)),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var t;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(t=this.sortOptions.find(n=>n.id==e))!==null&&t!==void 0?t:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Io.TITLE_ONLY),this.store.actions.setRequestScope(gi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Io.EVERYWHERE),this.store.actions.setRequestScope(gi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return Py(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new On)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),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{this.cancelableSearch=Qo(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof rr||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=Qo(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof rr)&&this.errorHandler&&this.errorHandler(i)}}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)}}});function tS(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ip]=0,this[Ny]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ip]>eS?window.clearInterval(this[Ny]):(this[ip]++,this.dispatchEvent(new np))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return J0([D()],e.prototype,"stateManager",void 0),e}var J0,np,Ny,ip,eS,Dt,Mo=p(()=>{"use strict";L();Y();ky();op();J0=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},np=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ny=Symbol("registerInterval"),ip=Symbol("registerAttempts"),eS=40;Dt=class extends tS(Kt){}});function En(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function wn(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var ap=p(()=>{"use strict"});var qa,Fy=p(()=>{"use strict";L();Jr();ur();ap();qa=class{constructor(e,t){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=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Ma,this.resultsWatcher=ui(e,i=>i.results,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.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=V.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}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}=V.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:En(e.metadataFilters),facets:e.metadataFilters.map(n=>wn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==$t.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:En(i.metadataFilters),facets:i.metadataFilters.map(s=>wn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==$t.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Lo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:En(i.metadataFilters),facets:i.metadataFilters.map(s=>wn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case $t.MAP:return{id:e.map.mapId,title:e.map.title,type:hi.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case $t.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:hi.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case $t.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:hi.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var Qe,Za,Ya,Qa,_e,sp=p(()=>{"use strict";P();Y();L();rp();Mo();ur();Ha();Fy();Qe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Za=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Ya=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Qa=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},_e=class extends Kt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=$i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new qa(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(V)}render(){return S`
|
|
1236
|
+
<slot @register-ft-search-component="${this.registerComponent}" @ft-search-result-click="${this.onResultClicked}"
|
|
1237
|
+
@ft-search-result-open-context-menu="${this.onResultContextMenuOpened}"></slot>
|
|
1238
|
+
`}willUpdate(e){super.willUpdate(e),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("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("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.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Ya(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Qa(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Za(e))}reloadSavedSearches(){qd.clearMySearches()}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)}};_e.elementDefinitions={};_e.styles=tp;Qe([Ee({store:V.name})],_e.prototype,"session",void 0);Qe([h()],_e.prototype,"query",void 0);Qe([h()],_e.prototype,"contentLocale",void 0);Qe([h({type:Number})],_e.prototype,"pageSize",void 0);Qe([h({type:Boolean})],_e.prototype,"searchInDocumentTitlesOnly",void 0);Qe([h()],_e.prototype,"scope",void 0);Qe([h()],_e.prototype,"virtualField",void 0);Qe([h({type:Boolean})],_e.prototype,"ignoreEmptyQuery",void 0);Qe([Ee({store:V.name})],_e.prototype,"openExternalDocumentInNewTab",void 0);Qe([we([])],_e.prototype,"filters",void 0);Qe([h()],_e.prototype,"sortId",void 0);Qe([we([])],_e.prototype,"sort",void 0);Qe([we({})],_e.prototype,"otherQueryParams",void 0);Qe([Ee({store:"search"})],_e.prototype,"request",void 0);Qe([Ee({store:"search"})],_e.prototype,"paging",void 0);Qe([Ee({store:"search",selector:r=>r.spellcheck})],_e.prototype,"autocorrect",void 0);Qe([h({attribute:!1})],_e.prototype,"searchServiceProvider",void 0)});var By=p(()=>{"use strict"});var Dy={};ie(Dy,{ClearAllFiltersEvent:()=>On,FtSearchContext:()=>_e,FtSearchContextCssVariables:()=>Q0,FtSearchStateManager:()=>$i,LoadErrorEvent:()=>Za,SearchRequestChangeEvent:()=>Ya,SearchResultsChangeEvent:()=>Qa,convertMetadataFilterToAnalyticsFacet:()=>wn,getAnalyticsLastUpdate:()=>En,searchInDocumentTitlesOnlySelector:()=>Py,styles:()=>tp});var My=p(()=>{"use strict";L();sp();rp();By();sp();op();ap();M("ft-search-context")(_e)});var ro,lp=p(()=>{"use strict";hr();ro=fr.build("designedSearchInput")});var Mt,cp=p(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Mt||(Mt={}))});var Uy,dp=p(()=>{"use strict";P();Uy=A`
|
|
1239
1239
|
.ft-size-watcher--pixel {
|
|
1240
1240
|
width: 0;
|
|
1241
1241
|
height: 0;
|
|
@@ -1254,11 +1254,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1254
1254
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
1255
1255
|
width: 100%;
|
|
1256
1256
|
}
|
|
1257
|
-
`});var
|
|
1257
|
+
`});var Rn,pp,wt,up=p(()=>{"use strict";P();Y();L();cp();dp();Rn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},pp=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},wt=class extends H{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Mt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new me}render(){return S`
|
|
1258
1258
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
1259
1259
|
<div class="ft-size-watcher--watcher"></div>
|
|
1260
1260
|
</div>
|
|
1261
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Mt.S:this.size<976?this.category=Mt.M:this.size<1024?this.category=Mt.L:this.size<1440?this.category=Mt.XL:this.category=Mt.XXL,this.dispatchEvent(new
|
|
1261
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Mt.S:this.size<976?this.category=Mt.M:this.size<1024?this.category=Mt.L:this.size<1440?this.category=Mt.XL:this.category=Mt.XXL,this.dispatchEvent(new pp(this.size,this.category)))},this.debounceTimeout)}};wt.elementDefinitions={};wt.styles=Uy;Rn([h({type:Number})],wt.prototype,"debounceTimeout",void 0);Rn([h({type:Boolean})],wt.prototype,"local",void 0);Rn([h({type:Number,reflect:!0})],wt.prototype,"size",void 0);Rn([h({type:String,reflect:!0})],wt.prototype,"category",void 0);Rn([z(".ft-size-watcher--watcher")],wt.prototype,"watcher",void 0)});var zy=p(()=>{"use strict";L();up();up();dp();cp();M("ft-size-watcher")(wt)});function Xa(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Hy(r){return Xa(r).split("|").pop()}function Wy(r){return Xa(r).split("|").join(" > ")}function Vy(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Vy(t,r.selected)),value:r.value}}function jy(r){return St(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function fp(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Vy(e,!1))}}function Gy(r){return St(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var hp=p(()=>{"use strict";L()});var Rt,Ky,mp=p(()=>{"use strict";L();P();De();at();Rt={textColor:o.extend("--ft-checkbox-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",W.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",E.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",E.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",E.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",E.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",E.colorError)},Ky=A`
|
|
1262
1262
|
* {
|
|
1263
1263
|
box-sizing: border-box;
|
|
1264
1264
|
}
|
|
@@ -1339,7 +1339,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1339
1339
|
|
|
1340
1340
|
.ft-checkbox.ft-checkbox--error {
|
|
1341
1341
|
color: ${Rt.errorColor};
|
|
1342
|
-
${y(
|
|
1342
|
+
${y($.color,Rt.errorColor)};
|
|
1343
1343
|
|
|
1344
1344
|
.ft-checkbox--box {
|
|
1345
1345
|
border-color: ${Rt.errorColor};
|
|
@@ -1351,7 +1351,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
`});var oo,ot,
|
|
1354
|
+
`});var oo,ot,gp=p(()=>{"use strict";P();Y();L();nt();at();De();mp();oo=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ot=class extends H{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return S`
|
|
1355
1355
|
<label class="${be(e)}" for="checkbox-input" part="checkbox-label">
|
|
1356
1356
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
1357
1357
|
<ft-ripple part="checkbox-ripple"
|
|
@@ -1378,7 +1378,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1378
1378
|
<slot></slot>
|
|
1379
1379
|
</ft-typography>
|
|
1380
1380
|
</label>
|
|
1381
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ot.elementDefinitions={"ft-ripple":re,"ft-typography":oe};ot.styles=
|
|
1381
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ot.elementDefinitions={"ft-ripple":re,"ft-typography":oe};ot.styles=Ky;oo([h()],ot.prototype,"name",void 0);oo([h({type:Boolean,reflect:!0})],ot.prototype,"checked",void 0);oo([h({type:Boolean})],ot.prototype,"indeterminate",void 0);oo([h({type:Boolean})],ot.prototype,"disabled",void 0);oo([h({type:Boolean})],ot.prototype,"error",void 0);oo([z(".ft-checkbox")],ot.prototype,"container",void 0);oo([z("ft-ripple")],ot.prototype,"ripple",void 0);oo([z("input")],ot.prototype,"input",void 0)});var qy=p(()=>{"use strict"});var Zy=p(()=>{"use strict";L();gp();gp();mp();qy();M("ft-checkbox")(ot)});var io,Ja,ct,es=p(()=>{"use strict";P();Y();L();nt();at();De();io=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ja=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},ct=class extends H{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return S`
|
|
1382
1382
|
<div class="${be(this.radioClasses)}"
|
|
1383
1383
|
@click=${this.onClick}>
|
|
1384
1384
|
<div class="ft-radio--box-container">
|
|
@@ -1404,7 +1404,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1404
1404
|
</ft-typography>
|
|
1405
1405
|
</label>
|
|
1406
1406
|
</div>
|
|
1407
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1407
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Ja(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ja(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};ct.elementDefinitions={"ft-ripple":re,"ft-typography":oe};io([h()],ct.prototype,"value",void 0);io([h()],ct.prototype,"name",void 0);io([h({type:Boolean,reflect:!0})],ct.prototype,"checked",void 0);io([h({attribute:"aria-checked",reflect:!0})],ct.prototype,"ariaChecked",void 0);io([h({type:Boolean})],ct.prototype,"disabled",void 0);io([z(".ft-radio")],ct.prototype,"container",void 0);io([z("ft-ripple")],ct.prototype,"ripple",void 0);io([z("input")],ct.prototype,"input",void 0)});var no,Yy,yp=p(()=>{"use strict";P();L();De();no={textColor:o.extend("--ft-radio-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",W.fontSize),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",E.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system")},Yy=A`
|
|
1408
1408
|
* {
|
|
1409
1409
|
box-sizing: border-box;
|
|
1410
1410
|
}
|
|
@@ -1493,28 +1493,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1493
1493
|
.ft-radio ft-typography {
|
|
1494
1494
|
padding-right: 2px;
|
|
1495
1495
|
}
|
|
1496
|
-
`});var Nr,
|
|
1496
|
+
`});var Nr,bp=p(()=>{"use strict";es();yp();Ri();es();Nr=class extends ct{get typographyVariant(){return st.body2}};Nr.styles=Yy});var Qy,vp=p(()=>{"use strict";P();L();at();Qy=A`
|
|
1497
1497
|
* {
|
|
1498
1498
|
box-sizing: border-box;
|
|
1499
|
-
--input-size: calc(${
|
|
1500
|
-
--input-margin: calc(-1 * ${
|
|
1499
|
+
--input-size: calc(${pe.circleSize} + 2 * (${pe.focusOutlineOffset} + ${pe.focusOutlineWidth}));
|
|
1500
|
+
--input-margin: calc(-1 * ${pe.focusOutlineOffset} - ${pe.focusOutlineWidth});
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
1503
|
.ft-radio {
|
|
1504
1504
|
box-sizing: border-box;
|
|
1505
|
-
color: ${
|
|
1505
|
+
color: ${pe.color};
|
|
1506
1506
|
|
|
1507
1507
|
display: inline-flex;
|
|
1508
1508
|
align-items: center;
|
|
1509
|
-
gap: ${
|
|
1509
|
+
gap: ${pe.horizontalGap};
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
1512
|
.ft-radio--disabled:not(.ft-radio--checked) {
|
|
1513
|
-
opacity: ${
|
|
1513
|
+
opacity: ${pe.unselectedDisabledComponentOpacity}
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
1516
|
.ft-radio--disabled.ft-radio--checked {
|
|
1517
|
-
opacity: ${
|
|
1517
|
+
opacity: ${pe.selectedDisabledComponentOpacity}
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
input {
|
|
@@ -1539,49 +1539,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1539
1539
|
|
|
1540
1540
|
.ft-radio ft-ripple {
|
|
1541
1541
|
z-index: 0;
|
|
1542
|
-
${y(
|
|
1543
|
-
${y(
|
|
1544
|
-
${y(
|
|
1545
|
-
${y(
|
|
1546
|
-
${y(
|
|
1542
|
+
${y($.color,pe.unselectedStateLayerColor)};
|
|
1543
|
+
${y($.backgroundColor,pe.unselectedStateLayerColor)};
|
|
1544
|
+
${y($.opacityContentOnSurfaceHover,pe.unselectedHoverStateLayerOpacity)};
|
|
1545
|
+
${y($.opacityContentOnSurfaceFocused,pe.unselectedFocusStateLayerOpacity)};
|
|
1546
|
+
${y($.opacityContentOnSurfacePressed,pe.unselectedActiveStateLayerOpacity)};
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
1549
|
.ft-radio--checked ft-ripple {
|
|
1550
|
-
${y(
|
|
1551
|
-
${y(
|
|
1552
|
-
${y(
|
|
1553
|
-
${y(
|
|
1554
|
-
${y(
|
|
1550
|
+
${y($.color,pe.selectedStateLayerColor)};
|
|
1551
|
+
${y($.backgroundColor,pe.selectedStateLayerColor)};
|
|
1552
|
+
${y($.opacityContentOnSurfaceHover,pe.selectedHoverStateLayerOpacity)};
|
|
1553
|
+
${y($.opacityContentOnSurfaceFocused,pe.selectedFocusStateLayerOpacity)};
|
|
1554
|
+
${y($.opacityContentOnSurfacePressed,pe.selectedActiveStateLayerOpacity)};
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
.ft-radio--box {
|
|
1558
1558
|
z-index: 1;
|
|
1559
|
-
border: 2px solid ${
|
|
1559
|
+
border: 2px solid ${pe.unselectedBorderColor};
|
|
1560
1560
|
border-radius: 50%;
|
|
1561
1561
|
|
|
1562
1562
|
display: flex;
|
|
1563
1563
|
justify-content: center;
|
|
1564
1564
|
align-items: center;
|
|
1565
1565
|
|
|
1566
|
-
width: ${
|
|
1567
|
-
height: ${
|
|
1566
|
+
width: ${pe.circleSize};
|
|
1567
|
+
height: ${pe.circleSize};
|
|
1568
1568
|
}
|
|
1569
1569
|
|
|
1570
1570
|
.ft-radio--box:after {
|
|
1571
1571
|
content: " ";
|
|
1572
|
-
background-color: ${
|
|
1572
|
+
background-color: ${pe.selectedRadioColor};
|
|
1573
1573
|
|
|
1574
1574
|
border-radius: 50%;
|
|
1575
1575
|
|
|
1576
|
-
width: calc(${
|
|
1577
|
-
height: calc(${
|
|
1576
|
+
width: calc(${pe.circleSize} - 8px);
|
|
1577
|
+
height: calc(${pe.circleSize} - 8px);
|
|
1578
1578
|
|
|
1579
1579
|
transform: scale(0);
|
|
1580
1580
|
transition: transform 100ms ease;
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
1583
|
.ft-radio--checked .ft-radio--box {
|
|
1584
|
-
border-color: ${
|
|
1584
|
+
border-color: ${pe.selectedRadioColor};
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
1587
|
|
|
@@ -1594,19 +1594,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
.ft-radio:has(:focus-visible) .ft-radio--box {
|
|
1597
|
-
outline: ${
|
|
1598
|
-
outline-offset: ${
|
|
1597
|
+
outline: ${pe.focusOutlineWidth} solid ${pe.focusFocusRingColor};
|
|
1598
|
+
outline-offset: ${pe.focusOutlineOffset};
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
1601
|
.ft-radio ft-typography {
|
|
1602
1602
|
padding-right: 2px;
|
|
1603
1603
|
}
|
|
1604
|
-
`});var
|
|
1604
|
+
`});var An,xp=p(()=>{"use strict";es();Ri();L();vp();ee();An=class extends ar(ct){constructor(){super(...arguments),this.family=Ct.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return st.body2medium}};An.styles=[Lr,Qy]});var Ti,At,ts=p(()=>{"use strict";L();Y();P();Ti=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},At=class extends H{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return S`
|
|
1605
1605
|
<slot @slotchange=${this.onSlotChange}
|
|
1606
1606
|
@change=${this.onChange}
|
|
1607
1607
|
@keydown=${this.onKeyDown}
|
|
1608
1608
|
></slot>
|
|
1609
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};At.elementDefinitions={};
|
|
1609
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};At.elementDefinitions={};Ti([h()],At.prototype,"name",void 0);Ti([h({reflect:!0,attribute:"role"})],At.prototype,"role",void 0);Ti([h({reflect:!0})],At.prototype,"tabIndex",void 0);Ti([h({reflect:!0,attribute:"aria-labelledby"})],At.prototype,"ariaLabelledBy",void 0);Ti([$s()],At.prototype,"assignedElements",void 0);Ti([D()],At.prototype,"currentSelectedIndex",void 0)});var Xy,Sp=p(()=>{"use strict";P();Xy=A`
|
|
1610
1610
|
:host {
|
|
1611
1611
|
display: block;
|
|
1612
1612
|
}
|
|
@@ -1614,17 +1614,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1614
1614
|
:host(:focus-visible) {
|
|
1615
1615
|
outline: none;
|
|
1616
1616
|
}
|
|
1617
|
-
`});var Uo,
|
|
1617
|
+
`});var Uo,Cp=p(()=>{"use strict";ts();Sp();ts();Uo=class extends At{};Uo.styles=Xy});var Jy,Op=p(()=>{"use strict";P();L();Jy=A`
|
|
1618
1618
|
:host {
|
|
1619
1619
|
display: flex;
|
|
1620
1620
|
flex-direction: column;
|
|
1621
|
-
gap: ${
|
|
1621
|
+
gap: ${pe.verticalGap}
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
1624
|
:host(:focus-visible) {
|
|
1625
1625
|
outline: none;
|
|
1626
1626
|
}
|
|
1627
|
-
`});var
|
|
1627
|
+
`});var Ln,Ep=p(()=>{"use strict";ts();L();Op();ee();Ln=class extends ar(At){constructor(){super(...arguments),this.family=Ct.brand}};Ln.styles=[Lr,Jy]});var wp=p(()=>{"use strict";L();bp();xp();Cp();Ep();bp();yp();xp();vp();Cp();Sp();Ep();Op();M("ft-radio")(Nr);M("ftds-radio")(An);M("ft-radio-group")(Uo);M("ftds-radio-group")(Ln)});var In,eb,Rp=p(()=>{"use strict";P();L();To();Tt();In={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",E.colorOnSurface),borderRadiusM:o.external(E.borderRadiusM,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),fontFamily:o.external(He.fontFamily,"Body2 typography"),fontSize:o.external(He.fontSize,"Body2 typography"),fontWeight:o.external(He.fontWeight,"Body2 typography"),letterSpacing:o.external(He.letterSpacing,"Body2 typography"),lineHeight:o.external(He.lineHeight,"Body2 typography"),textTransform:o.external(He.textTransform,"Body2 typography")},eb=A`
|
|
1628
1628
|
.ft-filter-level--container {
|
|
1629
1629
|
display: flex;
|
|
1630
1630
|
flex-direction: column;
|
|
@@ -1638,14 +1638,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1638
1638
|
flex-shrink: 0;
|
|
1639
1639
|
text-decoration: none;
|
|
1640
1640
|
position: relative;
|
|
1641
|
-
border-radius: ${
|
|
1641
|
+
border-radius: ${In.borderRadiusM};
|
|
1642
1642
|
overflow: hidden;
|
|
1643
1643
|
display: flex;
|
|
1644
1644
|
align-items: center;
|
|
1645
1645
|
padding: 4px 4px;
|
|
1646
1646
|
gap: 4px;
|
|
1647
1647
|
cursor: pointer;
|
|
1648
|
-
color: ${
|
|
1648
|
+
color: ${In.colorOnSurface};
|
|
1649
1649
|
}
|
|
1650
1650
|
|
|
1651
1651
|
.ft-filter-level--go-back:focus {
|
|
@@ -1674,11 +1674,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
1676
1676
|
ft-button {
|
|
1677
|
-
${y(te.color,
|
|
1677
|
+
${y(te.color,In.colorOnSurface)};
|
|
1678
1678
|
}
|
|
1679
1679
|
|
|
1680
1680
|
ft-button.ft-filter-level--display-more {
|
|
1681
|
-
${y(te.color,
|
|
1681
|
+
${y(te.color,In.buttonMoreColor)};
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
1684
|
ft-radio, ft-checkbox {
|
|
@@ -1692,9 +1692,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1692
1692
|
|
|
1693
1693
|
.ft-filter-level--no-values {
|
|
1694
1694
|
margin: 10px 0;
|
|
1695
|
-
color: ${
|
|
1695
|
+
color: ${In.colorOnSurfaceMedium};
|
|
1696
1696
|
}
|
|
1697
|
-
`});var dt,Me,
|
|
1697
|
+
`});var dt,Me,tb=p(()=>{"use strict";P();Y();jt();L();Nt();De();at();Pt();Zy();wp();Rp();dt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Me=class extends H{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(i=>!i.selected)),this.filter&&(e=e.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())));let t=e.slice(0,this.limit);return S`
|
|
1698
1698
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1699
1699
|
${this.parent==null?null:S`
|
|
1700
1700
|
<div tabindex="0"
|
|
@@ -1715,7 +1715,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1715
1715
|
${this.noValuesLabel}
|
|
1716
1716
|
</ft-typography>
|
|
1717
1717
|
`:T}
|
|
1718
|
-
${
|
|
1718
|
+
${Pe(t,i=>i.value,i=>{var n;return S`
|
|
1719
1719
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1720
1720
|
${this.multivalued?this.buildMultiValuedOption(i):this.buildMonoValuedOption(i)}
|
|
1721
1721
|
${this.preventNavigation||i.selected||((n=i.subOptions)!==null&&n!==void 0?n:[]).length===0?T:S`
|
|
@@ -1761,7 +1761,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1761
1761
|
@change=${t=>this.optionsChanged(t,e)}>
|
|
1762
1762
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1763
1763
|
</ft-radio>
|
|
1764
|
-
`}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};Me.elementDefinitions={"ft-button":
|
|
1764
|
+
`}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};Me.elementDefinitions={"ft-button":Fe,"ft-ripple":re,"ft-typography":oe,"ft-checkbox":ot,"ft-icon":Se,"ft-radio":Nr};Me.styles=eb;dt([h({type:String})],Me.prototype,"filterId",void 0);dt([h({type:Object})],Me.prototype,"parent",void 0);dt([h({type:Array})],Me.prototype,"options",void 0);dt([h({type:Boolean})],Me.prototype,"multivalued",void 0);dt([h({type:Boolean})],Me.prototype,"disabled",void 0);dt([h({type:Boolean})],Me.prototype,"hideSelectedOptions",void 0);dt([h({type:Boolean})],Me.prototype,"displayCount",void 0);dt([h({type:Boolean})],Me.prototype,"preventNavigation",void 0);dt([h({type:String})],Me.prototype,"filter",void 0);dt([h({type:String})],Me.prototype,"moreValuesButtonLabel",void 0);dt([h({type:String})],Me.prototype,"noValuesLabel",void 0);dt([h({type:Number})],Me.prototype,"displayedValuesLimit",void 0);dt([z(".ft-filter-level--container")],Me.prototype,"container",void 0);dt([D()],Me.prototype,"radios",void 0);dt([D()],Me.prototype,"displayedPages",void 0)});var pt,rb,rs=p(()=>{"use strict";P();L();To();pt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",E.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(E.colorSurface,"Design system")},rb=A`
|
|
1765
1765
|
.ft-snap-scroll {
|
|
1766
1766
|
box-sizing: border-box;
|
|
1767
1767
|
position: relative;
|
|
@@ -1886,7 +1886,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1886
1886
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1887
1887
|
background-color: ${pt.colorSurface};
|
|
1888
1888
|
}
|
|
1889
|
-
`});var mr,
|
|
1889
|
+
`});var mr,Ap,Ue,Lp=p(()=>{"use strict";P();Y();L();Nt();nt();rs();mr=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ap=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ue=class extends H{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new me(200),this.updateScrollDebouncer=new me(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>i)&&this.scrollToElement(t)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=be({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":_o}),t=this.controls&&this.withScroll;return S`
|
|
1890
1890
|
<div part="container" class="${e}">
|
|
1891
1891
|
<ft-button
|
|
1892
1892
|
class="ft-snap-scroll--previous"
|
|
@@ -1910,7 +1910,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1910
1910
|
@click=${this.next}
|
|
1911
1911
|
></ft-button>
|
|
1912
1912
|
</div>
|
|
1913
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1913
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Ap(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,i;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};Ue.elementDefinitions={"ft-button":Fe};Ue.styles=rb;mr([h({type:Boolean})],Ue.prototype,"horizontal",void 0);mr([h({type:Boolean})],Ue.prototype,"hideScrollbar",void 0);mr([h({type:Boolean})],Ue.prototype,"controls",void 0);mr([h({type:Boolean})],Ue.prototype,"limitSize",void 0);mr([D()],Ue.prototype,"elements",void 0);mr([D()],Ue.prototype,"currentElement",void 0);mr([D()],Ue.prototype,"withScroll",void 0);mr([D()],Ue.prototype,"startReached",void 0);mr([D()],Ue.prototype,"endReached",void 0);mr([z(".ft-snap-scroll--content")],Ue.prototype,"contentSlot",void 0)});var ob=p(()=>{"use strict"});var os=p(()=>{"use strict";L();Lp();Lp();rs();ob();M("ft-snap-scroll")(Ue)});var vt,ib,is=p(()=>{"use strict";P();L();Tt();To();vt={colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorSurface:o.external(E.colorSurface,"Design system"),transitionDuration:o.external(E.transitionDuration,"Design system"),transitionTimingFunction:o.external(E.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",E.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",W.fontSize,"16px")},ib=[cr,Eo,A`
|
|
1914
1914
|
:host {
|
|
1915
1915
|
display: flex;
|
|
1916
1916
|
max-height: 100%;
|
|
@@ -2027,7 +2027,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2027
2027
|
slot:not([name]) {
|
|
2028
2028
|
display: none;
|
|
2029
2029
|
}
|
|
2030
|
-
`]});var $e,
|
|
2030
|
+
`]});var $e,Ip,fe,kp=p(()=>{"use strict";P();Y();L();De();tb();Nt();os();is();$e=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ip=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fe=class extends H{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new me(300),this.changeDebouncer=new me(10),this.lastDispatchedValues=[]}get flatOptions(){return St(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return St(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return S`
|
|
2031
2031
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
2032
2032
|
part="container">
|
|
2033
2033
|
${!this.label&&!e?null:S`
|
|
@@ -2108,17 +2108,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2108
2108
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
2109
2109
|
noValuesLabel="${this.noValuesLabel}"
|
|
2110
2110
|
></ft-filter-level>
|
|
2111
|
-
`}goBack(e){this.slideOut=e.detail.value,
|
|
2111
|
+
`}goBack(e){this.slideOut=e.detail.value,Qi(()=>this.slideOut===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Qi(()=>this.slideIn===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){Qi(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=i.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Ze(this.lastDispatchedValues,e)||(this.dispatchEvent(new Ip(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};fe.elementDefinitions={"ft-button":Fe,"ft-filter-level":Me,"ft-snap-scroll":Ue,"ft-typography":oe};fe.styles=ib;$e([h({type:String})],fe.prototype,"id",void 0);$e([h({type:String})],fe.prototype,"label",void 0);$e([h({type:String})],fe.prototype,"filterPlaceHolder",void 0);$e([h({type:String})],fe.prototype,"clearButtonLabel",void 0);$e([h({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);$e([h({type:String})],fe.prototype,"noValuesLabel",void 0);$e([we([])],fe.prototype,"options",void 0);$e([h({type:Boolean})],fe.prototype,"multivalued",void 0);$e([h({type:Boolean})],fe.prototype,"disabled",void 0);$e([h({type:Boolean})],fe.prototype,"raiseSelectedOptions",void 0);$e([h({type:Boolean})],fe.prototype,"displayCount",void 0);$e([h({type:Number})],fe.prototype,"displayedValuesLimit",void 0);$e([h({type:Boolean})],fe.prototype,"hideClearButton",void 0);$e([z(".ft-filter--slot")],fe.prototype,"slotElement",void 0);$e([z(".ft-filter--container")],fe.prototype,"container",void 0);$e([z(".ft-filter--values")],fe.prototype,"valuesContainer",void 0);$e([z(".ft-filter--levels")],fe.prototype,"levelsContainer",void 0);$e([D()],fe.prototype,"lastLevelHasHiddenvalues",void 0);$e([z(".ft-filter--filter input")],fe.prototype,"filterInput",void 0);$e([_s(".ft-filter--levels ft-filter-level")],fe.prototype,"levels",void 0);$e([D()],fe.prototype,"withScroll",void 0);$e([D()],fe.prototype,"filter",void 0);$e([D()],fe.prototype,"slideIn",void 0);$e([D()],fe.prototype,"slideOut",void 0)});var Pi,Lt,_p=p(()=>{"use strict";L();Y();P();Pi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lt=class extends H{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return S`
|
|
2112
2112
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
2113
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Lt.elementDefinitions={};
|
|
2113
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Lt.elementDefinitions={};Pi([h({type:String})],Lt.prototype,"label",void 0);Pi([h({type:Object,converter:r=>r})],Lt.prototype,"value",void 0);Pi([h({type:Boolean,reflect:!0})],Lt.prototype,"selected",void 0);Pi([h({type:Object})],Lt.prototype,"subOptions",void 0);Pi([we({})],Lt.prototype,"renderOption",void 0);Pi([z(".ft-filter-option--slot")],Lt.prototype,"slotElement",void 0)});var nb=p(()=>{"use strict"});var ab=p(()=>{"use strict"});var sb=p(()=>{"use strict";L();kp();_p();Rp();kp();is();nb();_p();ab();M("ft-filter")(fe);M("ft-filter-option")(Lt)});var lb,$p=p(()=>{"use strict";P();lb=A`
|
|
2114
2114
|
.ft-accordion {
|
|
2115
2115
|
box-sizing: border-box;
|
|
2116
2116
|
}
|
|
2117
|
-
`});var
|
|
2117
|
+
`});var cb,gr,Tp=p(()=>{"use strict";P();Y();L();$p();cb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gr=class extends H{constructor(){super(...arguments),this.multi=!1}render(){return S`
|
|
2118
2118
|
<div class="ft-accordion">
|
|
2119
2119
|
<slot @activated=${this.onChange}></slot>
|
|
2120
2120
|
</div>
|
|
2121
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};gr.elementDefinitions={};gr.styles=
|
|
2121
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};gr.elementDefinitions={};gr.styles=lb;cb([h({type:Boolean})],gr.prototype,"multi",void 0);cb([z("slot")],gr.prototype,"content",void 0)});var zo,db,Pp=p(()=>{"use strict";P();L();zo={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(E.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},db=A`
|
|
2122
2122
|
.ft-accordion-item {
|
|
2123
2123
|
display: flex;
|
|
2124
2124
|
flex-direction: column;
|
|
@@ -2164,7 +2164,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2164
2164
|
.ft-accordion-item--separator {
|
|
2165
2165
|
border-bottom: 1px solid ${zo.colorOutline};
|
|
2166
2166
|
}
|
|
2167
|
-
`});var
|
|
2167
|
+
`});var ns,Ut,Np=p(()=>{"use strict";P();Y();L();at();De();Pt();Pp();ns=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ut=class extends H{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return S`
|
|
2168
2168
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
2169
2169
|
<div class="ft-accordion-item--toggle"
|
|
2170
2170
|
part="toggle"
|
|
@@ -2194,7 +2194,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2194
2194
|
</div>
|
|
2195
2195
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
2196
2196
|
</div>
|
|
2197
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Se};Ut.styles=
|
|
2197
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Se};Ut.styles=db;ns([h()],Ut.prototype,"icon",void 0);ns([h()],Ut.prototype,"iconVariant",void 0);ns([h()],Ut.prototype,"label",void 0);ns([h({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var pb=p(()=>{"use strict"});var ub=p(()=>{"use strict"});var fb=p(()=>{"use strict";L();Tp();Np();Tp();$p();pb();Np();Pp();ub();M("ft-accordion")(gr);M("ft-accordion-item")(Ut)});var hb,Xe,mb,Fp,gb,yb,Bp=p(()=>{"use strict";P();L();_r();Tt();$o();Nt();hb=o.extend("--ft-chip-color","",E.colorOnSurface),Xe={backgroundColor:o.extend("--ft-chip-background-color","",E.colorSurface),color:hb,fontSize:o.extend("--ft-chip-font-size","",He.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",He.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",hb),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",E.colorOutline),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},mb=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",E.colorOnPrimary)),Fp={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",E.colorPrimary)),color:mb,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",mb)},gb={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},yb=[Ar,A`
|
|
2198
2198
|
:host {
|
|
2199
2199
|
display: inline-block;
|
|
2200
2200
|
max-width: 100%;
|
|
@@ -2210,21 +2210,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2210
2210
|
box-sizing: border-box;
|
|
2211
2211
|
pointer-events: auto;
|
|
2212
2212
|
|
|
2213
|
-
--chip-internal-font-size: ${
|
|
2214
|
-
--chip-internal-font-weight: ${
|
|
2213
|
+
--chip-internal-font-size: ${Xe.fontSize};
|
|
2214
|
+
--chip-internal-font-weight: ${Xe.fontWeight};
|
|
2215
2215
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
2216
|
-
${y(
|
|
2217
|
-
--chip-internal-vertical-padding: ${
|
|
2218
|
-
--chip-internal-horizontal-padding: ${
|
|
2216
|
+
${y(Ne.size,Xe.iconSize)};
|
|
2217
|
+
--chip-internal-vertical-padding: ${Xe.verticalPadding};
|
|
2218
|
+
--chip-internal-horizontal-padding: ${Xe.horizontalPadding};
|
|
2219
2219
|
--chip-internal-icon-padding: 3px;
|
|
2220
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
2220
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${Xe.iconSize});
|
|
2221
2221
|
|
|
2222
|
-
border: 1px solid ${
|
|
2223
|
-
color: ${
|
|
2224
|
-
${y(
|
|
2225
|
-
border-radius: var(${Jt(
|
|
2222
|
+
border: 1px solid ${Xe.borderColor};
|
|
2223
|
+
color: ${Xe.color};
|
|
2224
|
+
${y($.color,Xe.rippleColor)};
|
|
2225
|
+
border-radius: var(${Jt(Xe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
2226
2226
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
2227
|
-
background-color: ${
|
|
2227
|
+
background-color: ${Xe.backgroundColor};
|
|
2228
2228
|
line-height: var(--chip-internal-content-height);
|
|
2229
2229
|
}
|
|
2230
2230
|
|
|
@@ -2234,28 +2234,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2234
2234
|
|
|
2235
2235
|
.ft-chip--dense {
|
|
2236
2236
|
--chip-internal-icon-padding: 3px;
|
|
2237
|
-
--chip-internal-vertical-padding: ${
|
|
2238
|
-
--chip-internal-horizontal-padding: ${
|
|
2237
|
+
--chip-internal-vertical-padding: ${gb.verticalPadding};
|
|
2238
|
+
--chip-internal-horizontal-padding: ${gb.horizontalPadding};
|
|
2239
2239
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
2240
2240
|
}
|
|
2241
2241
|
|
|
2242
2242
|
.ft-chip--no-content {
|
|
2243
|
-
--chip-internal-horizontal-padding: ${
|
|
2243
|
+
--chip-internal-horizontal-padding: ${Xe.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
2246
|
.ft-chip--disabled {
|
|
2247
2247
|
cursor: default;
|
|
2248
2248
|
pointer-events: none;
|
|
2249
2249
|
filter: grayscale(1);
|
|
2250
|
-
opacity: ${
|
|
2250
|
+
opacity: ${Xe.opacityDisabled};
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
2253
|
.ft-chip--highlighted {
|
|
2254
2254
|
border: none;
|
|
2255
2255
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
2256
|
-
background-color: ${
|
|
2257
|
-
${y(
|
|
2258
|
-
color: ${
|
|
2256
|
+
background-color: ${Fp.backgroundColor};
|
|
2257
|
+
${y($.color,Fp.rippleColor)};
|
|
2258
|
+
color: ${Fp.color};
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
2261
|
.ft-chip--clickable {
|
|
@@ -2286,7 +2286,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
2288
2288
|
.ft-chip--icon-button {
|
|
2289
|
-
${y(te.iconSize,
|
|
2289
|
+
${y(te.iconSize,Xe.iconSize)};
|
|
2290
2290
|
${y(te.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
2291
2291
|
${y(te.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
2292
2292
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
@@ -2334,7 +2334,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2334
2334
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2335
2335
|
order: -1;
|
|
2336
2336
|
}
|
|
2337
|
-
`]});var xt,
|
|
2337
|
+
`]});var xt,as,Be,Dp=p(()=>{"use strict";P();Y();nt();L();at();De();Pt();Bp();Nt();xt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},as=class extends CustomEvent{constructor(){super("icon-click")}},Be=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.icon=void 0,this.trailingIcon=!1}render(){let e={"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":_o};return S`
|
|
2338
2338
|
<div class="${be(e)}"
|
|
2339
2339
|
aria-label="${this.getLabel()}"
|
|
2340
2340
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -2361,7 +2361,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2361
2361
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2362
2362
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
2363
2363
|
</div>
|
|
2364
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
2364
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new as))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new as))}getLabel(){return this.label||this.textContent}get textContent(){return Jo(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Be.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Se,"ft-button":Fe};Be.styles=yb;xt([h({type:Boolean})],Be.prototype,"highlighted",void 0);xt([h({type:Boolean})],Be.prototype,"removable",void 0);xt([h({type:Boolean})],Be.prototype,"disabled",void 0);xt([h({type:Boolean})],Be.prototype,"clickable",void 0);xt([h({type:Boolean})],Be.prototype,"iconClickable",void 0);xt([h({type:Boolean})],Be.prototype,"dense",void 0);xt([h({type:Boolean})],Be.prototype,"multiLine",void 0);xt([h()],Be.prototype,"label",void 0);xt([h()],Be.prototype,"iconLabel",void 0);xt([h({type:Boolean})],Be.prototype,"hideIconTooltip",void 0);xt([h()],Be.prototype,"icon",void 0);xt([h()],Be.prototype,"iconVariant",void 0);xt([h({type:Boolean})],Be.prototype,"trailingIcon",void 0);xt([z("ft-typography slot")],Be.prototype,"slottedContent",void 0)});var bb,Mp=p(()=>{"use strict";P();ee();L();Pt();Nt();bb=[A`
|
|
2365
2365
|
:host {
|
|
2366
2366
|
display: inline-block;
|
|
2367
2367
|
max-width: 100%;
|
|
@@ -2395,16 +2395,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2395
2395
|
|
|
2396
2396
|
/* SMALL VARIANT */
|
|
2397
2397
|
.ftds--size-small {
|
|
2398
|
-
min-height: ${
|
|
2399
|
-
padding: 0 ${
|
|
2400
|
-
border-radius: ${
|
|
2401
|
-
border-width: ${
|
|
2398
|
+
min-height: ${Z.smallMinHeight};
|
|
2399
|
+
padding: 0 ${Z.smallHorizontalPadding};
|
|
2400
|
+
border-radius: ${Z.smallBorderRadius};
|
|
2401
|
+
border-width: ${Z.smallBorderWidth};
|
|
2402
2402
|
border-style: solid;
|
|
2403
|
-
${y(
|
|
2403
|
+
${y(Ne.size,Z.smallIconSize)}
|
|
2404
2404
|
}
|
|
2405
2405
|
|
|
2406
2406
|
.ftds--size-small.ftds-chip--with-action {
|
|
2407
|
-
padding-right: ${
|
|
2407
|
+
padding-right: ${Z.smallButtonRightPadding};
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
2410
|
.ftds--size-small ft-typography {
|
|
@@ -2414,17 +2414,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2414
2414
|
|
|
2415
2415
|
.ftds--size-small .ftds-chip--icon-container {
|
|
2416
2416
|
overflow: visible;
|
|
2417
|
-
height: ${
|
|
2418
|
-
margin-right: ${
|
|
2417
|
+
height: ${Z.smallIconSize};
|
|
2418
|
+
margin-right: ${Z.smallButtonRightPadding};
|
|
2419
2419
|
}
|
|
2420
2420
|
|
|
2421
2421
|
/* Dirty non-variabilized tweaks to properly center the icon */
|
|
2422
2422
|
.ftds--size-small .ftds-chip--remove-button {
|
|
2423
2423
|
overflow: visible;
|
|
2424
2424
|
top: -3px;
|
|
2425
|
-
height: ${
|
|
2425
|
+
height: ${Z.smallIconSize};
|
|
2426
2426
|
transform: scale(.75); /* Little trick to have a (even) bigger icon inside of the button */
|
|
2427
|
-
${
|
|
2427
|
+
${Ld.smallIconOnlyWidth.set("15px")};
|
|
2428
2428
|
}
|
|
2429
2429
|
|
|
2430
2430
|
.ftds--size-small .ftds-chip--remove-button::part(icon) {
|
|
@@ -2433,17 +2433,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2433
2433
|
|
|
2434
2434
|
/* MEDIUM VARIANT */
|
|
2435
2435
|
.ftds--size-medium {
|
|
2436
|
-
min-height: ${
|
|
2437
|
-
padding: 0 ${
|
|
2438
|
-
border-radius: ${
|
|
2439
|
-
border-width: ${
|
|
2436
|
+
min-height: ${Z.mediumMinHeight};
|
|
2437
|
+
padding: 0 ${Z.mediumHorizontalPadding};
|
|
2438
|
+
border-radius: ${Z.mediumBorderRadius};
|
|
2439
|
+
border-width: ${Z.mediumBorderWidth};
|
|
2440
2440
|
border-style: solid;
|
|
2441
|
-
gap: ${
|
|
2442
|
-
${y(
|
|
2441
|
+
gap: ${Z.mediumGap};
|
|
2442
|
+
${y(Ne.size,Z.mediumIconSize)}
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
2445
2445
|
.ftds--size-medium.ftds-chip--with-action {
|
|
2446
|
-
padding-right: ${
|
|
2446
|
+
padding-right: ${Z.mediumButtonRightPadding};
|
|
2447
2447
|
}
|
|
2448
2448
|
|
|
2449
2449
|
.ftds--size-medium .ftds-chip--remove-button {
|
|
@@ -2452,17 +2452,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2452
2452
|
|
|
2453
2453
|
/* LARGE VARIANT */
|
|
2454
2454
|
.ftds--size-large {
|
|
2455
|
-
min-height: ${
|
|
2456
|
-
padding: 0 ${
|
|
2457
|
-
border-radius: ${
|
|
2458
|
-
border-width: ${
|
|
2455
|
+
min-height: ${Z.largeMinHeight};
|
|
2456
|
+
padding: 0 ${Z.largeHorizontalPadding};
|
|
2457
|
+
border-radius: ${Z.largeBorderRadius};
|
|
2458
|
+
border-width: ${Z.largeBorderWidth};
|
|
2459
2459
|
border-style: solid;
|
|
2460
|
-
gap: ${
|
|
2461
|
-
${y(
|
|
2460
|
+
gap: ${Z.largeGap};
|
|
2461
|
+
${y(Ne.size,Z.largeIconSize)}
|
|
2462
2462
|
}
|
|
2463
2463
|
|
|
2464
2464
|
.ftds--size-large.ftds-chip--with-action {
|
|
2465
|
-
padding-right: ${
|
|
2465
|
+
padding-right: ${Z.largeButtonRightPadding};
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
.ftds--size-large .ftds-chip--remove-button {
|
|
@@ -2472,63 +2472,63 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2472
2472
|
|
|
2473
2473
|
/* NEUTRAL COLORS */
|
|
2474
2474
|
.ftds--family-neutral {
|
|
2475
|
-
background-color: ${
|
|
2476
|
-
border-color: ${
|
|
2477
|
-
color: ${
|
|
2475
|
+
background-color: ${Z.neutralBackgroundColor};
|
|
2476
|
+
border-color: ${Z.neutralBorderColor};
|
|
2477
|
+
color: ${Z.neutralColor};
|
|
2478
2478
|
}
|
|
2479
2479
|
|
|
2480
2480
|
.ftds--family-neutral .ftds-chip--icon-container {
|
|
2481
|
-
color: ${
|
|
2481
|
+
color: ${Z.neutralIconColor};
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
2484
|
|
|
2485
2485
|
/* INFO COLORS */
|
|
2486
2486
|
.ftds--family-info {
|
|
2487
|
-
background-color: ${
|
|
2488
|
-
border-color: ${
|
|
2489
|
-
color: ${
|
|
2487
|
+
background-color: ${Z.infoBackgroundColor};
|
|
2488
|
+
border-color: ${Z.infoBorderColor};
|
|
2489
|
+
color: ${Z.infoColor};
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
2492
2492
|
.ftds--family-info .ftds-chip--icon-container {
|
|
2493
|
-
color: ${
|
|
2493
|
+
color: ${Z.infoIconColor};
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
2496
|
|
|
2497
2497
|
/* SUCCESS COLORS */
|
|
2498
2498
|
.ftds--family-success {
|
|
2499
|
-
background-color: ${
|
|
2500
|
-
border-color: ${
|
|
2501
|
-
color: ${
|
|
2499
|
+
background-color: ${Z.successBackgroundColor};
|
|
2500
|
+
border-color: ${Z.successBorderColor};
|
|
2501
|
+
color: ${Z.successColor};
|
|
2502
2502
|
}
|
|
2503
2503
|
|
|
2504
2504
|
.ftds--family-success .ftds-chip--icon-container {
|
|
2505
|
-
color: ${
|
|
2505
|
+
color: ${Z.successIconColor};
|
|
2506
2506
|
}
|
|
2507
2507
|
|
|
2508
2508
|
|
|
2509
2509
|
/* WARNING COLORS */
|
|
2510
2510
|
.ftds--family-warning {
|
|
2511
|
-
background-color: ${
|
|
2512
|
-
border-color: ${
|
|
2513
|
-
color: ${
|
|
2511
|
+
background-color: ${Z.warningBackgroundColor};
|
|
2512
|
+
border-color: ${Z.warningBorderColor};
|
|
2513
|
+
color: ${Z.warningColor};
|
|
2514
2514
|
}
|
|
2515
2515
|
|
|
2516
2516
|
.ftds--family-warning .ftds-chip--icon-container {
|
|
2517
|
-
color: ${
|
|
2517
|
+
color: ${Z.warningIconColor};
|
|
2518
2518
|
}
|
|
2519
2519
|
|
|
2520
2520
|
|
|
2521
2521
|
/* ERROR COLORS */
|
|
2522
2522
|
.ftds--family-error {
|
|
2523
|
-
background-color: ${
|
|
2524
|
-
border-color: ${
|
|
2525
|
-
color: ${
|
|
2523
|
+
background-color: ${Z.errorBackgroundColor};
|
|
2524
|
+
border-color: ${Z.errorBorderColor};
|
|
2525
|
+
color: ${Z.errorColor};
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
2528
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2529
|
-
color: ${
|
|
2529
|
+
color: ${Z.errorIconColor};
|
|
2530
2530
|
}
|
|
2531
|
-
`]});var
|
|
2531
|
+
`]});var Ni,Up,zt,zp=p(()=>{"use strict";P();Y();nt();L();De();Pt();Mp();ee();Nt();Ni=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Up=class extends CustomEvent{constructor(){super("remove")}},zt=class extends ln{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return S`
|
|
2532
2532
|
<div class="${be(e)}"
|
|
2533
2533
|
aria-label="${this.getLabel()}"
|
|
2534
2534
|
part="chip">
|
|
@@ -2554,25 +2554,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2554
2554
|
></ftds-button>
|
|
2555
2555
|
`:this.withAction?S`
|
|
2556
2556
|
<slot name="action"></slot>
|
|
2557
|
-
`:T}resolveButtonSize(){switch(this.size){case Ve.large:return Ve.medium;case Ve.medium:case Ve.small:return Ve.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new
|
|
2557
|
+
`:T}resolveButtonSize(){switch(this.size){case Ve.large:return Ve.medium;case Ve.medium:case Ve.small:return Ve.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Up)}typographyVariant(){switch(this.size){case Ve.large:return st.body2medium;case Ve.medium:case Ve.small:return st.caption1medium}}};zt.elementDefinitions={"ft-typography":oe,"ft-icon":Se,"ftds-button":Zt};zt.styles=bb;Ni([h({type:Boolean})],zt.prototype,"withAction",void 0);Ni([h({type:Boolean})],zt.prototype,"removable",void 0);Ni([h()],zt.prototype,"removeButtonLabel",void 0);Ni([h()],zt.prototype,"label",void 0);Ni([h()],zt.prototype,"icon",void 0);Ni([z("ft-typography slot")],zt.prototype,"slottedContent",void 0)});var vb=p(()=>{"use strict"});var xb=p(()=>{"use strict"});var Hp=p(()=>{"use strict";L();Dp();zp();Dp();Bp();vb();zp();Mp();xb();M("ft-chip")(Be);M("ftds-chip")(zt)});var X,Sb,Fi=p(()=>{"use strict";P();L();Tt();X={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",E.colorOutline),textColor:o.extend("--ft-input-label-text-color","",E.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",E.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",E.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",E.borderRadiusS),colorError:o.external(E.colorError,"Design system")},Sb=A`
|
|
2558
2558
|
.ft-input-label {
|
|
2559
2559
|
position: absolute;
|
|
2560
2560
|
inset: 0;
|
|
2561
2561
|
display: flex;
|
|
2562
|
-
background-color: ${
|
|
2563
|
-
border-radius: ${
|
|
2562
|
+
background-color: ${X.backgroundColor};
|
|
2563
|
+
border-radius: ${X.borderRadius} ${X.borderRadius} 0 0;
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
2566
|
.ft-input-label--outlined {
|
|
2567
|
-
border-radius: ${
|
|
2567
|
+
border-radius: ${X.borderRadius};
|
|
2568
2568
|
}
|
|
2569
2569
|
|
|
2570
2570
|
.ft-input-label {
|
|
2571
|
-
border-color: ${
|
|
2571
|
+
border-color: ${X.borderColor};
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
2574
|
.ft-input-label.ft-input-label--in-error {
|
|
2575
|
-
border-color: ${
|
|
2575
|
+
border-color: ${X.colorError}
|
|
2576
2576
|
}
|
|
2577
2577
|
|
|
2578
2578
|
.ft-input-label:before,
|
|
@@ -2585,7 +2585,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2585
2585
|
}
|
|
2586
2586
|
|
|
2587
2587
|
.ft-input-label:before {
|
|
2588
|
-
width: calc(${
|
|
2588
|
+
width: calc(${X.horizontalSpacing} - 4px);
|
|
2589
2589
|
flex-shrink: 0;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
@@ -2601,20 +2601,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2601
2601
|
border-bottom-width: 1px;
|
|
2602
2602
|
border-bottom-style: solid;
|
|
2603
2603
|
border-color: inherit;
|
|
2604
|
-
color: ${
|
|
2604
|
+
color: ${X.textColor};
|
|
2605
2605
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2606
|
-
max-width: calc(${
|
|
2606
|
+
max-width: calc(${X.labelMaxWidth} - 2 * (${X.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2607
2607
|
text-overflow: ellipsis;
|
|
2608
|
-
${y(je.fontSize,
|
|
2609
|
-
${y(je.lineHeight,
|
|
2608
|
+
${y(je.fontSize,X.fontSize)};
|
|
2609
|
+
${y(je.lineHeight,X.fontSize)};
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
2612
|
.ft-input-label--in-error .ft-input-label--text {
|
|
2613
|
-
color: ${
|
|
2613
|
+
color: ${X.colorError}
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
2616
|
.ft-input-label--disabled .ft-input-label--text {
|
|
2617
|
-
color: ${
|
|
2617
|
+
color: ${X.disabledTextColor};
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
2620
|
.ft-input-label--hidden-text {
|
|
@@ -2631,19 +2631,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2631
2631
|
overflow: hidden;
|
|
2632
2632
|
white-space: nowrap;
|
|
2633
2633
|
text-overflow: ellipsis;
|
|
2634
|
-
padding: ${
|
|
2635
|
-
margin: calc(${
|
|
2634
|
+
padding: ${X.verticalSpacing} 4px;
|
|
2635
|
+
margin: calc(${X.verticalSpacing} * -1) 0;
|
|
2636
2636
|
max-width: 100%;
|
|
2637
2637
|
box-sizing: border-box;
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
2640
|
.ft-input-label--raised .ft-input-label--text {
|
|
2641
|
-
${y(je.fontSize,
|
|
2642
|
-
${y(je.lineHeight,
|
|
2641
|
+
${y(je.fontSize,X.raisedFontSize)};
|
|
2642
|
+
${y(je.lineHeight,X.raisedFontSize)};
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
2645
2645
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
2646
|
-
top: ${
|
|
2646
|
+
top: ${X.verticalSpacing};
|
|
2647
2647
|
}
|
|
2648
2648
|
|
|
2649
2649
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -2656,36 +2656,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2656
2656
|
.ft-input-label--outlined:before {
|
|
2657
2657
|
border-left-width: 1px;
|
|
2658
2658
|
border-left-style: solid;
|
|
2659
|
-
border-radius: ${
|
|
2659
|
+
border-radius: ${X.borderRadius} 0 0 ${X.borderRadius};
|
|
2660
2660
|
}
|
|
2661
2661
|
|
|
2662
2662
|
.ft-input-label--outlined:after {
|
|
2663
2663
|
border-right-width: 1px;
|
|
2664
2664
|
border-right-style: solid;
|
|
2665
|
-
border-radius: 0 ${
|
|
2665
|
+
border-radius: 0 ${X.borderRadius} ${X.borderRadius} 0;
|
|
2666
2666
|
}
|
|
2667
2667
|
|
|
2668
2668
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
2669
2669
|
padding: 2px 4px;
|
|
2670
|
-
z-index: ${
|
|
2671
|
-
background-color: ${
|
|
2672
|
-
border-radius: ${
|
|
2670
|
+
z-index: ${X.raisedZIndex};
|
|
2671
|
+
background-color: ${X.backgroundColor};
|
|
2672
|
+
border-radius: ${X.borderRadius};
|
|
2673
2673
|
top: calc((${je.lineHeight} / -2) + 2px);
|
|
2674
2674
|
}
|
|
2675
2675
|
|
|
2676
2676
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2677
2677
|
border-top: none;
|
|
2678
2678
|
}
|
|
2679
|
-
`});var
|
|
2679
|
+
`});var Cb,Fr,Wp=p(()=>{"use strict";P();Y();sd();nt();L();Cb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Fr=class extends H{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return S`
|
|
2680
2680
|
<div class="${be(this.inputLabelClasses)}">
|
|
2681
|
-
${
|
|
2681
|
+
${ad(this.text,()=>S`
|
|
2682
2682
|
<div class="ft-input-label--text ft-typography--caption">
|
|
2683
2683
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
2684
2684
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
2685
2685
|
</div>
|
|
2686
2686
|
`)}
|
|
2687
2687
|
</div>
|
|
2688
|
-
`}};Fr.elementDefinitions={};
|
|
2688
|
+
`}};Fr.elementDefinitions={};Cb([h({type:String})],Fr.prototype,"text",void 0);Cb([h({type:Boolean})],Fr.prototype,"raised",void 0)});var Vp,Qt,jp=p(()=>{"use strict";Y();Tt();Fi();Wp();Vp=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Qt=class extends Fr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Qt.elementDefinitions={};Qt.styles=[cr,Sb];Vp([h({type:Boolean})],Qt.prototype,"outlined",void 0);Vp([h({type:Boolean})],Qt.prototype,"error",void 0);Vp([h({type:Boolean})],Qt.prototype,"disabled",void 0)});var it,Ob,Gp=p(()=>{"use strict";P();ee();Tt();Fi();L();it={fontSize:o.extend("--ft-input-label-font-size","",xo.fontSize),fontSizeRaised:o.extend("--ft-input-label-font-size-raised","",Wr.fontSize),lineHeight:o.extend("--ft-input-label-line-height","",Wr.lineHeight),color:o.extend("--ft-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:o.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:o.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:o.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:o.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:o.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:o.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:o.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:o.create("--ft-input-label-additional-padding-right","","SIZE","0px")},Ob=[A`
|
|
2689
2689
|
|
|
2690
2690
|
:root {
|
|
2691
2691
|
--field-height: ${it.largeFieldHeight};
|
|
@@ -2749,12 +2749,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2749
2749
|
white-space: nowrap;
|
|
2750
2750
|
text-overflow: ellipsis;
|
|
2751
2751
|
|
|
2752
|
-
padding-top: ${
|
|
2753
|
-
padding-bottom: ${
|
|
2752
|
+
padding-top: ${X.verticalSpacing};
|
|
2753
|
+
padding-bottom: ${X.verticalSpacing};
|
|
2754
2754
|
padding-left: calc(var(--field-horizontal-padding) + ${it.additionalPaddingLeft});
|
|
2755
2755
|
padding-right: calc(var(--field-horizontal-padding) + ${it.additionalPaddingRight});
|
|
2756
2756
|
|
|
2757
|
-
margin: calc(${
|
|
2757
|
+
margin: calc(${X.verticalSpacing} * -1) 0;
|
|
2758
2758
|
color: ${it.color};
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
@@ -2767,7 +2767,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2767
2767
|
top: var(--input-content-vertical-padding);
|
|
2768
2768
|
}
|
|
2769
2769
|
|
|
2770
|
-
`]});var
|
|
2770
|
+
`]});var kn,Kp=p(()=>{"use strict";Wp();L();Gp();De();kn=class extends ar(Fr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};kn.styles=[cr,Ob]});var Eb=p(()=>{"use strict"});var wb=p(()=>{"use strict"});var Rb=p(()=>{"use strict";L();jp();Kp();jp();Fi();Eb();Kp();Gp();wb();M("ft-input-label")(Qt);M("ftds-input-label")(kn)});var ne,Ab,ss=p(()=>{"use strict";P();L();Fi();Tt();_r();$o();ne={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",E.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",E.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",E.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",E.colorSurface),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),borderRadiusS:o.external(E.borderRadiusS,"Design system"),elevation02:o.external(E.elevation02,"Design system"),colorError:o.external(E.colorError,"Design system")},Ab=A`
|
|
2771
2771
|
*:focus {
|
|
2772
2772
|
outline: none;
|
|
2773
2773
|
}
|
|
@@ -2781,7 +2781,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2781
2781
|
.ft-select--main-panel {
|
|
2782
2782
|
position: relative;
|
|
2783
2783
|
display: flex;
|
|
2784
|
-
height: calc(4 * ${
|
|
2784
|
+
height: calc(4 * ${ne.verticalSpacing} + ${ne.labelSize} + ${ne.selectedOptionSize});
|
|
2785
2785
|
}
|
|
2786
2786
|
|
|
2787
2787
|
.ft-select--input-panel {
|
|
@@ -2790,17 +2790,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2790
2790
|
display: flex;
|
|
2791
2791
|
align-items: center;
|
|
2792
2792
|
overflow: hidden;
|
|
2793
|
-
padding-left: ${
|
|
2794
|
-
padding-right: ${
|
|
2793
|
+
padding-left: ${ne.horizontalSpacing};
|
|
2794
|
+
padding-right: ${ne.horizontalSpacing};
|
|
2795
2795
|
gap: 8px;
|
|
2796
|
-
color: ${
|
|
2797
|
-
${y(
|
|
2796
|
+
color: ${ne.selectedOptionColor};
|
|
2797
|
+
${y($.color,ne.selectedOptionColor)};
|
|
2798
2798
|
}
|
|
2799
2799
|
|
|
2800
2800
|
.ft-select--input-panel,
|
|
2801
2801
|
.ft-select--option {
|
|
2802
|
-
${y(
|
|
2803
|
-
${y(
|
|
2802
|
+
${y($.opacityContentOnSurfaceHover,"0.08")};
|
|
2803
|
+
${y($.opacityContentOnSurfacePressed,"0.04")};
|
|
2804
2804
|
}
|
|
2805
2805
|
|
|
2806
2806
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -2810,7 +2810,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2810
2810
|
|
|
2811
2811
|
.ft-select--disabled .ft-select--input-panel,
|
|
2812
2812
|
.ft-select--disabled .ft-select--option {
|
|
2813
|
-
color: ${
|
|
2813
|
+
color: ${ne.colorOnSurfaceDisabled};
|
|
2814
2814
|
}
|
|
2815
2815
|
|
|
2816
2816
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -2819,21 +2819,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2819
2819
|
}
|
|
2820
2820
|
|
|
2821
2821
|
ft-input-label {
|
|
2822
|
-
${y(
|
|
2823
|
-
${y(
|
|
2824
|
-
${y(
|
|
2825
|
-
${y(
|
|
2826
|
-
${y(
|
|
2827
|
-
${y(
|
|
2822
|
+
${y(X.fontSize,ne.selectedOptionSize)};
|
|
2823
|
+
${y(X.raisedFontSize,ne.labelSize)};
|
|
2824
|
+
${y(X.verticalSpacing,ne.verticalSpacing)};
|
|
2825
|
+
${y(X.horizontalSpacing,ne.horizontalSpacing)};
|
|
2826
|
+
${y(X.backgroundColor,ne.backgroundColor)};
|
|
2827
|
+
${y(X.labelMaxWidth,`calc(100% - ${Ne.size} - 8px)`)};
|
|
2828
2828
|
}
|
|
2829
2829
|
|
|
2830
2830
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
2831
|
-
color: ${
|
|
2831
|
+
color: ${ne.colorPrimary};
|
|
2832
2832
|
}
|
|
2833
2833
|
|
|
2834
2834
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
2835
|
-
${y(
|
|
2836
|
-
${y(
|
|
2835
|
+
${y(X.borderColor,ne.colorPrimary)};
|
|
2836
|
+
${y(X.textColor,ne.colorPrimary)};
|
|
2837
2837
|
}
|
|
2838
2838
|
|
|
2839
2839
|
.ft-select--selected-option {
|
|
@@ -2843,12 +2843,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2843
2843
|
overflow: hidden;
|
|
2844
2844
|
white-space: nowrap;
|
|
2845
2845
|
text-overflow: ellipsis;
|
|
2846
|
-
${y(
|
|
2847
|
-
${y(
|
|
2846
|
+
${y($r.fontSize,ne.selectedOptionSize)};
|
|
2847
|
+
${y($r.lineHeight,ne.selectedOptionSize)};
|
|
2848
2848
|
}
|
|
2849
2849
|
|
|
2850
2850
|
.ft-select--in-error .ft-select--selected-option {
|
|
2851
|
-
color: ${
|
|
2851
|
+
color: ${ne.colorError};
|
|
2852
2852
|
}
|
|
2853
2853
|
|
|
2854
2854
|
ft-icon {
|
|
@@ -2860,26 +2860,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2860
2860
|
}
|
|
2861
2861
|
|
|
2862
2862
|
.ft-select--filled .ft-select--input-panel {
|
|
2863
|
-
border-radius: ${
|
|
2863
|
+
border-radius: ${ne.borderRadiusS} ${ne.borderRadiusS} 0 0;
|
|
2864
2864
|
}
|
|
2865
2865
|
|
|
2866
2866
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
2867
2867
|
align-self: stretch;
|
|
2868
|
-
padding-top: calc(${
|
|
2868
|
+
padding-top: calc(${ne.labelSize} + 2 * ${ne.verticalSpacing});
|
|
2869
2869
|
}
|
|
2870
2870
|
|
|
2871
2871
|
.ft-select--outlined .ft-select--input-panel {
|
|
2872
|
-
border-radius: ${
|
|
2872
|
+
border-radius: ${ne.borderRadiusS};
|
|
2873
2873
|
}
|
|
2874
2874
|
|
|
2875
2875
|
.ft-select--options {
|
|
2876
2876
|
display: none;
|
|
2877
2877
|
position: absolute;
|
|
2878
2878
|
top: 100%;
|
|
2879
|
-
color: ${
|
|
2880
|
-
background: ${
|
|
2881
|
-
z-index: ${
|
|
2882
|
-
box-shadow: ${
|
|
2879
|
+
color: ${ne.optionsColor};
|
|
2880
|
+
background: ${ne.backgroundColor};
|
|
2881
|
+
z-index: ${ne.optionsZIndex};
|
|
2882
|
+
box-shadow: ${ne.elevation02};
|
|
2883
2883
|
}
|
|
2884
2884
|
|
|
2885
2885
|
.ft-select--fixed .ft-select--options {
|
|
@@ -2888,13 +2888,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2888
2888
|
|
|
2889
2889
|
.ft-select--options-displayed .ft-select--options {
|
|
2890
2890
|
display: block;
|
|
2891
|
-
max-height: ${
|
|
2891
|
+
max-height: ${ne.optionsHeight};
|
|
2892
2892
|
overflow-y: auto;
|
|
2893
2893
|
}
|
|
2894
2894
|
|
|
2895
2895
|
.ft-select--option {
|
|
2896
2896
|
position: relative;
|
|
2897
|
-
padding: 4px ${
|
|
2897
|
+
padding: 4px ${ne.horizontalSpacing};
|
|
2898
2898
|
min-height: 32px;
|
|
2899
2899
|
display: flex;
|
|
2900
2900
|
align-items: center;
|
|
@@ -2906,14 +2906,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2906
2906
|
}
|
|
2907
2907
|
|
|
2908
2908
|
.ft-select--helper-text {
|
|
2909
|
-
padding: 0 ${
|
|
2910
|
-
color: ${
|
|
2909
|
+
padding: 0 ${ne.horizontalSpacing};
|
|
2910
|
+
color: ${ne.helperColor};
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
2913
|
.ft-select--in-error .ft-select--helper-text {
|
|
2914
|
-
color: ${
|
|
2914
|
+
color: ${ne.colorError};
|
|
2915
2915
|
}
|
|
2916
|
-
`});var
|
|
2916
|
+
`});var Te,yr,ye,qp=p(()=>{"use strict";P();Y();nt();jt();L();De();Rb();at();Pt();ss();Te=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},yr=class extends H{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return S``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};yr.elementDefinitions={};Te([h({type:String})],yr.prototype,"label",void 0);Te([h({type:Object,converter:r=>r})],yr.prototype,"value",void 0);Te([h({type:Boolean,reflect:!0})],yr.prototype,"selected",void 0);ye=class r extends H{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,t,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&i!==void 0?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return S`
|
|
2917
2917
|
<div class="${be(f)}" part="container">
|
|
2918
2918
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2919
2919
|
<ft-input-label text="${this.label}"
|
|
@@ -2942,7 +2942,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2942
2942
|
part="options"
|
|
2943
2943
|
@keydown=${this.onOptionsKeyDown}
|
|
2944
2944
|
innerrole="listbox">
|
|
2945
|
-
${
|
|
2945
|
+
${Pe(this.options,g=>g.value,g=>this.renderOption(g))}
|
|
2946
2946
|
</div>
|
|
2947
2947
|
</div>
|
|
2948
2948
|
<slot name="helper" part="helper">
|
|
@@ -2958,40 +2958,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2958
2958
|
<div class="${be({"ft-select--option":!0,"ft-select--option-selected":t,"ft-typography--body2":!0})}"
|
|
2959
2959
|
part="option"
|
|
2960
2960
|
tabindex="0"
|
|
2961
|
+
aria-label="${e.label}"
|
|
2961
2962
|
data-value="${e.value}"
|
|
2962
2963
|
@keydown=${n=>this.onOptionKeyDown(n,e)}
|
|
2963
2964
|
@click=${()=>this.selectOption(e)}>
|
|
2964
2965
|
<ft-ripple ?primary=${t} ?activated=${t}></ft-ripple>
|
|
2965
2966
|
<span>${e.label}</span>
|
|
2966
2967
|
</div>
|
|
2967
|
-
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];
|
|
2968
|
+
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];ql(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",ne.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){var t,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var d;return((d=l.label)===null||d===void 0?void 0:d.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(t=this.optionsMenu)===null||t===void 0?void 0:t.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var t,i;if(!Ze((t=this.selectedOption)===null||t===void 0?void 0:t.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ye.elementDefinitions={"ft-input-label":Qt,"ft-typography":oe,"ft-ripple":re,"ft-icon":Se};ye.searchTimeoutMilliseconds=2e3;ye.styles=[to,cr,Ab];Te([h({type:String})],ye.prototype,"label",void 0);Te([h({type:String})],ye.prototype,"ariaLabel",void 0);Te([h({type:String})],ye.prototype,"helper",void 0);Te([h({type:Boolean})],ye.prototype,"outlined",void 0);Te([h({type:Boolean})],ye.prototype,"disabled",void 0);Te([h({type:Boolean})],ye.prototype,"error",void 0);Te([h({type:Boolean})],ye.prototype,"fixedMenuPosition",void 0);Te([h({type:Array})],ye.prototype,"options",void 0);Te([D()],ye.prototype,"selectedOption",void 0);Te([D()],ye.prototype,"optionsDisplayed",void 0);Te([D()],ye.prototype,"focusOptions",void 0);Te([D()],ye.prototype,"currentSearch",void 0);Te([D()],ye.prototype,"lastSearchInputDate",void 0);Te([z(".ft-select")],ye.prototype,"container",void 0);Te([z(".ft-select--options")],ye.prototype,"optionsMenu",void 0);Te([z(".ft-select--input-panel")],ye.prototype,"mainPanel",void 0);Te([z(".ft-select--option:first-child")],ye.prototype,"firstOption",void 0);Te([z(".ft-select--option:focus")],ye.prototype,"focusedOption",void 0);Te([z(".ft-select--option.ft-select--option-selected")],ye.prototype,"selectedOptionElement",void 0);Te([z(".ft-select--option:last-child")],ye.prototype,"lastOption",void 0);Te([z("slot:not([name])")],ye.prototype,"optionsSlot",void 0)});var Lb=p(()=>{"use strict"});var Ib=p(()=>{"use strict";L();qp();qp();ss();Lb();M("ft-select")(ye);M("ft-select-option")(yr)});var Je,kb,ls=p(()=>{"use strict";P();L();Je={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(E.borderRadiusM,"Design system")},kb=A`
|
|
2968
2969
|
:host {
|
|
2969
|
-
width: ${
|
|
2970
|
-
height: ${
|
|
2971
|
-
display: ${
|
|
2970
|
+
width: ${Je.width};
|
|
2971
|
+
height: ${Je.height};
|
|
2972
|
+
display: ${Je.display};
|
|
2972
2973
|
overflow: hidden;
|
|
2973
|
-
border-radius: ${
|
|
2974
|
+
border-radius: ${Je.borderRadiusM};
|
|
2974
2975
|
background: linear-gradient(
|
|
2975
2976
|
90deg,
|
|
2976
2977
|
transparent,
|
|
2977
|
-
${
|
|
2978
|
-
${
|
|
2979
|
-
transparent ${
|
|
2980
|
-
), ${
|
|
2978
|
+
${Je.glareColor} calc(0.45 * ${Je.glareWidth}),
|
|
2979
|
+
${Je.glareColor} calc(0.55 * ${Je.glareWidth}),
|
|
2980
|
+
transparent ${Je.glareWidth}
|
|
2981
|
+
), ${Je.backgroundColor};
|
|
2981
2982
|
background-repeat: repeat-y;
|
|
2982
2983
|
background-size: 100vw 100vh;
|
|
2983
2984
|
background-attachment: fixed;
|
|
2984
|
-
background-position: calc(${
|
|
2985
|
-
animation: shine ${
|
|
2985
|
+
background-position: calc(${Je.glareWidth} * -1) 0;
|
|
2986
|
+
animation: shine ${Je.animationDuration} infinite;
|
|
2986
2987
|
animation-timing-function: linear;
|
|
2987
2988
|
}
|
|
2988
2989
|
|
|
2989
2990
|
@keyframes shine {
|
|
2990
2991
|
to {
|
|
2991
|
-
background-position: calc(100vw + ${
|
|
2992
|
+
background-position: calc(100vw + ${Je.glareWidth}) 0, calc(${Je.glareWidth} * -1) 0;
|
|
2992
2993
|
}
|
|
2993
2994
|
}
|
|
2994
|
-
`});var q,
|
|
2995
|
+
`});var q,_b,$b,cs=p(()=>{"use strict";L();P();To();Fi();ss();ls();wa();rs();is();Tt();q={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",E.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(E.colorSurface,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),elevation02:o.external(E.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",E.colorPrimary)},_b=A`
|
|
2995
2996
|
* {
|
|
2996
2997
|
box-sizing: border-box;
|
|
2997
2998
|
}
|
|
@@ -3039,8 +3040,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3039
3040
|
}
|
|
3040
3041
|
|
|
3041
3042
|
.ft-search-bar--skeleton {
|
|
3042
|
-
${y(
|
|
3043
|
-
${y(
|
|
3043
|
+
${y(Je.height,q.height)};
|
|
3044
|
+
${y(Je.borderRadiusM,q.borderRadius)};
|
|
3044
3045
|
}
|
|
3045
3046
|
|
|
3046
3047
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
@@ -3128,9 +3129,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3128
3129
|
}
|
|
3129
3130
|
|
|
3130
3131
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
3131
|
-
${y(
|
|
3132
|
-
${y(
|
|
3133
|
-
${y(
|
|
3132
|
+
${y(X.borderColor,"transparent")};
|
|
3133
|
+
${y(X.borderRadius,`calc(${q.borderRadius} - 1px)`)};
|
|
3134
|
+
${y(ne.selectedOptionColor,q.buttonColor)};
|
|
3134
3135
|
}
|
|
3135
3136
|
|
|
3136
3137
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -3186,14 +3187,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3186
3187
|
${y(W.fontWeight,"bold")};
|
|
3187
3188
|
}
|
|
3188
3189
|
|
|
3189
|
-
|
|
3190
|
+
`,$b=A`
|
|
3190
3191
|
.ft-search-bar--presets {
|
|
3191
3192
|
min-width: 200px;
|
|
3192
3193
|
}
|
|
3193
3194
|
|
|
3194
3195
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
3195
3196
|
margin-right: auto;
|
|
3196
|
-
${y(
|
|
3197
|
+
${y(ne.optionsZIndex,"2")};
|
|
3197
3198
|
}
|
|
3198
3199
|
|
|
3199
3200
|
.ft-search-bar--desktop-menu {
|
|
@@ -3347,14 +3348,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3347
3348
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
3348
3349
|
margin: 0;
|
|
3349
3350
|
}
|
|
3350
|
-
`});var ao,
|
|
3351
|
-
`}};ao.elementDefinitions={};ao.styles=
|
|
3351
|
+
`});var ao,Zp=p(()=>{"use strict";P();L();ls();ao=class extends H{render(){return S`
|
|
3352
|
+
`}};ao.elementDefinitions={};ao.styles=kb});var Tb=p(()=>{"use strict"});var Pb=p(()=>{"use strict";L();Zp();Zp();ls();Tb();M("ft-skeleton")(ao)});var br,ds=p(()=>{"use strict";P();jt();Pt();L();cs();at();br=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new me(t)}render(){let e=this.recentSearchesMatchingQuery;return S`
|
|
3352
3353
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
3353
3354
|
id="${this.listboxId}"
|
|
3354
3355
|
role="listbox"
|
|
3355
3356
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
3356
3357
|
part="suggestions-container">
|
|
3357
|
-
${
|
|
3358
|
+
${Pe(e.slice(0,5),t=>t,(t,i)=>S`
|
|
3358
3359
|
<div part="suggestion-container"
|
|
3359
3360
|
class=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":T}>
|
|
3360
3361
|
<a href="${this.getRequestWithQuery(t)}"
|
|
@@ -3383,7 +3384,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3383
3384
|
</ft-button>
|
|
3384
3385
|
</div>
|
|
3385
3386
|
`)}
|
|
3386
|
-
${
|
|
3387
|
+
${Pe(this.searchBar.suggestions,t=>t.value,(t,i)=>S`
|
|
3387
3388
|
<div part="suggestion-container"
|
|
3388
3389
|
class=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":T}>
|
|
3389
3390
|
<a href="${this.getRequestWithQuery(t.value)}"
|
|
@@ -3401,9 +3402,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3401
3402
|
</div>
|
|
3402
3403
|
`)}
|
|
3403
3404
|
</div>
|
|
3404
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?Ge.file_format:Ge.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?gt.BOOK:gt.ARTICLE;break;case"DOCUMENT":i=
|
|
3405
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?Ge.file_format:Ge.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?gt.BOOK:gt.ARTICLE;break;case"DOCUMENT":i=Aa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=gt.TOPICS;break}return S`
|
|
3405
3406
|
<ft-icon .variant="${t}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3406
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};br.styles=[
|
|
3407
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};br.styles=[dn,A`
|
|
3407
3408
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
3408
3409
|
flex-grow: 1;
|
|
3409
3410
|
flex-shrink: 1;
|
|
@@ -3491,9 +3492,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3491
3492
|
}
|
|
3492
3493
|
|
|
3493
3494
|
ft-ripple {
|
|
3494
|
-
${y(
|
|
3495
|
+
${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
|
|
3495
3496
|
}
|
|
3496
|
-
`]});var vr,
|
|
3497
|
+
`]});var vr,ps=p(()=>{"use strict";P();jt();hp();L();os();Hp();vr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return S``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=S`
|
|
3497
3498
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?S`
|
|
3498
3499
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
3499
3500
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3504,7 +3505,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3504
3505
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
3505
3506
|
</ft-chip>
|
|
3506
3507
|
`:null}
|
|
3507
|
-
${
|
|
3508
|
+
${Pe(this.searchBar.facets,n=>n.key,n=>{let a=Gy(n);return Pe(a,s=>{let l=n.label+": "+Wy(s),d=n.key.replace(":","-"),f=S`
|
|
3508
3509
|
<ft-chip
|
|
3509
3510
|
part="selected-filters selected-filter-${d}"
|
|
3510
3511
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3517,7 +3518,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3517
3518
|
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(g=>g!==s))}
|
|
3518
3519
|
data-key="${n.key}"
|
|
3519
3520
|
data-value="${s}">
|
|
3520
|
-
${
|
|
3521
|
+
${Hy(s)}
|
|
3521
3522
|
</ft-chip>
|
|
3522
3523
|
`;return t?f:S`
|
|
3523
3524
|
<ft-tooltip inline text="${l}">
|
|
@@ -3543,7 +3544,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3543
3544
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
3544
3545
|
${i}
|
|
3545
3546
|
</div>
|
|
3546
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&t!==void 0?t:e}};vr.styles=
|
|
3547
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&t!==void 0?t:e}};vr.styles=A`
|
|
3547
3548
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
3548
3549
|
flex-shrink: 0;
|
|
3549
3550
|
display: flex;
|
|
@@ -3562,8 +3563,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3562
3563
|
}
|
|
3563
3564
|
|
|
3564
3565
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3565
|
-
${y(
|
|
3566
|
-
${y(
|
|
3566
|
+
${y(Xe.iconSize,"17px")};
|
|
3567
|
+
${y(Xe.fontSize,"12px")};
|
|
3567
3568
|
}
|
|
3568
3569
|
|
|
3569
3570
|
.ft-search-bar--selected-filters * {
|
|
@@ -3573,7 +3574,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3573
3574
|
.ft-search-bar--selected-filters ft-chip {
|
|
3574
3575
|
flex-grow: 0;
|
|
3575
3576
|
}
|
|
3576
|
-
`});var
|
|
3577
|
+
`});var _n,Nb=p(()=>{"use strict";P();ps();ds();nt();_n=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new vr(e),this.suggestManager=i??new br(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return S`
|
|
3577
3578
|
<div class="${be(t)}" part="container" tabindex="-1">
|
|
3578
3579
|
<div class="ft-search-bar" role="search">
|
|
3579
3580
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -3630,9 +3631,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3630
3631
|
@click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(t=this.searchBar.input)===null||t===void 0?void 0:t.focus()}}
|
|
3631
3632
|
></ft-button>
|
|
3632
3633
|
</div>
|
|
3633
|
-
`}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};
|
|
3634
|
+
`}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};_n.styles=A`
|
|
3634
3635
|
|
|
3635
|
-
`});var $n,
|
|
3636
|
+
`});var $n,Fb=p(()=>{"use strict";P();jt();ps();ds();nt();$n=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new vr(e),this.suggestManager=i??new br(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return S`
|
|
3636
3637
|
<div class="${be(t)}" part="container" tabindex="-1">
|
|
3637
3638
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
3638
3639
|
${this.renderSearchBarLeftAction()}
|
|
@@ -3680,7 +3681,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3680
3681
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
3681
3682
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
3682
3683
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
3683
|
-
${
|
|
3684
|
+
${Pe(this.searchBar.availableContentLocales,e=>e.lang,e=>S`
|
|
3684
3685
|
<ft-select-option .value=${e.lang}
|
|
3685
3686
|
label="${e.label}"
|
|
3686
3687
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -3709,9 +3710,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3709
3710
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
3710
3711
|
></ft-button>
|
|
3711
3712
|
</div>
|
|
3712
|
-
`}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};$n.styles=
|
|
3713
|
+
`}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};$n.styles=A`
|
|
3713
3714
|
|
|
3714
|
-
`});var
|
|
3715
|
+
`});var ae,Bb,Yp,rS,Q,Qp=p(()=>{"use strict";P();Y();jt();L();zy();De();hp();sb();Pt();fb();Nt();Hp();Ib();os();Ra();at();cs();Pb();ds();ps();Nb();Fb();wp();ur();ae=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");Bb={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Yp=class extends CustomEvent{constructor(e){super("change",{detail:e})}},rS=()=>{},Q=class extends H{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Gr(Bb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new eo(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Mt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new br(this),this.selectedFacetsManager=new vr(this),this.desktopSearchBarManager=new $n(this),this.mobileSearchBarManager=new _n(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new me(10),this.updateLocalesDebouncer=new me(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new me(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(i=>t.values.includes(i)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(i=>t.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var i,n;return((n=(i=t.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Mt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await Xo(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return S`
|
|
3715
3716
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
3716
3717
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3717
3718
|
${this.renderLiveText()}
|
|
@@ -3739,7 +3740,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3739
3740
|
</div>
|
|
3740
3741
|
</ft-accordion-item>
|
|
3741
3742
|
`:null}
|
|
3742
|
-
${
|
|
3743
|
+
${Pe(this.facets,t=>t.key,t=>{let i=fp(t),n=t.key.replace(":","-"),a=jy(i);return t.rootNodes.length>0?S`
|
|
3743
3744
|
<ft-accordion-item data-facet-key="${t.key}">
|
|
3744
3745
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
3745
3746
|
<ft-typography variant="button">${t.label}</ft-typography>
|
|
@@ -3769,7 +3770,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3769
3770
|
`}getContentLocaleRadioGroup(){var e;return S`
|
|
3770
3771
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
3771
3772
|
@change=${t=>{this.contentLocale=t.detail==="all"?void 0:t.detail,this.clearFilters()}}>
|
|
3772
|
-
${
|
|
3773
|
+
${Pe((e=this.availableContentLocales)!==null&&e!==void 0?e:[],t=>t.lang,t=>{var i;return S`
|
|
3773
3774
|
<ft-radio value="${(i=t.lang)!==null&&i!==void 0?i:"all"}"
|
|
3774
3775
|
?checked=${t.lang==this.contentLocale}>
|
|
3775
3776
|
${t.label}
|
|
@@ -3800,7 +3801,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3800
3801
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
3801
3802
|
outlined
|
|
3802
3803
|
@change=${t=>this.selectedPreset=t.detail}>
|
|
3803
|
-
${
|
|
3804
|
+
${Pe((e=this.presets)!==null&&e!==void 0?e:[],t=>t.name,t=>S`
|
|
3804
3805
|
<ft-select-option value="${t.name}"
|
|
3805
3806
|
label="${t.name}"
|
|
3806
3807
|
?selected=${t.name===this.selectedPreset}>
|
|
@@ -3832,7 +3833,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3832
3833
|
${this.getContentLocaleRadioGroup()}
|
|
3833
3834
|
</div>
|
|
3834
3835
|
`:T}
|
|
3835
|
-
${
|
|
3836
|
+
${Pe(this.facets,e=>e.key,e=>{let t=fp(e),i=t.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return S`
|
|
3836
3837
|
<ft-filter
|
|
3837
3838
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3838
3839
|
part="filters filter filter-${n}"
|
|
@@ -3851,14 +3852,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3851
3852
|
></ft-filter>
|
|
3852
3853
|
`})}
|
|
3853
3854
|
</ft-snap-scroll>
|
|
3854
|
-
`:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Gr(
|
|
3855
|
+
`:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Gr(Bb,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>Xa(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Yp(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var t,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(rS)),this.facets=[];for(let i of this.facetsRequest)t.has(i.id)?this.facets.push(t.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!fd&&this.focusInput(),V.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),V.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&St(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&i.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>St(t.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?T:S`
|
|
3855
3856
|
<div class="ft-search-bar--floating-panel"
|
|
3856
3857
|
id="ft-search-bar-floating-panel"
|
|
3857
3858
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3858
3859
|
part="floating-panel"
|
|
3859
3860
|
tabindex="-1">
|
|
3860
3861
|
${this.renderDesktopMenu()}
|
|
3861
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
3862
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};Q.elementDefinitions={"ft-accordion":gr,"ft-accordion-item":Ut,"ft-button":Fe,"ft-chip":Be,"ft-filter":fe,"ft-filter-option":Lt,"ft-icon":Se,"ft-ripple":re,"ft-select":ye,"ft-select-option":yr,"ft-size-watcher":wt,"ft-skeleton":ao,"ft-snap-scroll":Ue,"ft-tooltip":Ie,"ft-typography":oe,"ft-radio-group":Uo,"ft-radio":Nr};Q.styles=[to,Eo,_b,$b,vr.styles,br.styles,vi];ae([h({type:Boolean})],Q.prototype,"dense",void 0);ae([h()],Q.prototype,"mode",void 0);ae([h({type:Boolean})],Q.prototype,"forceMobileMenuOpen",void 0);ae([h({type:Boolean})],Q.prototype,"forceMenuOpen",void 0);ae([h()],Q.prototype,"baseUrl",void 0);ae([h()],Q.prototype,"apiIntegrationIdentifier",void 0);ae([h()],Q.prototype,"contentLocale",void 0);ae([D()],Q.prototype,"availableContentLocales",void 0);ae([D()],Q.prototype,"availableContentLocalesInitialized",void 0);ae([h()],Q.prototype,"uiLocale",void 0);ae([we({})],Q.prototype,"labels",void 0);ae([we([])],Q.prototype,"displayedFilters",void 0);ae([we([])],Q.prototype,"presets",void 0);ae([h({type:String,reflect:!0})],Q.prototype,"selectedPreset",void 0);ae([we([])],Q.prototype,"priors",void 0);ae([h()],Q.prototype,"searchRequestSerializer",void 0);ae([h({type:Boolean})],Q.prototype,"focusOnDisplay",void 0);ae([D()],Q.prototype,"metadataFilters",void 0);ae([D()],Q.prototype,"sizeCategory",void 0);ae([D()],Q.prototype,"displayFacets",void 0);ae([D()],Q.prototype,"mobileMenuOpen",void 0);ae([D()],Q.prototype,"facets",void 0);ae([D()],Q.prototype,"facetsInitialized",void 0);ae([z(".ft-search-bar--container")],Q.prototype,"container",void 0);ae([z(".ft-search-bar--filters-opener")],Q.prototype,"filtersOpener",void 0);ae([z(".ft-search-bar--floating-panel")],Q.prototype,"floatingContainer",void 0);ae([z("ft-snap-scroll.ft-search-bar--filters-container")],Q.prototype,"scrollingFiltersContainer",void 0);ae([z(".ft-search-bar--input")],Q.prototype,"input",void 0);ae([z(".ft-search-bar--launch-search")],Q.prototype,"launchSearchButton",void 0);ae([D()],Q.prototype,"query",void 0);ae([D()],Q.prototype,"suggestions",void 0);ae([D()],Q.prototype,"recentSearches",void 0);ae([D()],Q.prototype,"scrollToFacet",void 0);ae([D()],Q.prototype,"api",void 0);ae([D()],Q.prototype,"displaySuggestListbox",void 0);ae([D()],Q.prototype,"selectedSuggestOptionId",void 0);ae([D()],Q.prototype,"selectedSuggestRemoveRecent",void 0);ae([D()],Q.prototype,"facetsLoaded",void 0)});var Db=p(()=>{"use strict"});var Mb=p(()=>{"use strict";L();Qp();Qp();cs();Db();M("ft-search-bar")(Q)});var Ub,zb=p(()=>{"use strict";P();vn();L();at();Mb();Ub=A`
|
|
3862
3863
|
* {
|
|
3863
3864
|
box-sizing: border-box;
|
|
3864
3865
|
}
|
|
@@ -3905,15 +3906,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3905
3906
|
}
|
|
3906
3907
|
|
|
3907
3908
|
ft-ripple {
|
|
3908
|
-
${y(
|
|
3909
|
+
${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
|
|
3909
3910
|
}
|
|
3910
|
-
`});var so,
|
|
3911
|
+
`});var so,Hb=p(()=>{"use strict";L();P();zb();jt();Pt();at();De();ur();lp();so=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Pr.get();return S`
|
|
3911
3912
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3912
3913
|
id="${this.listboxId}"
|
|
3913
3914
|
role="listbox"
|
|
3914
3915
|
aria-label="${ro.messages.suggestionsLabel()}"
|
|
3915
3916
|
part="container">
|
|
3916
|
-
${
|
|
3917
|
+
${Pe(this.ftSearchInput.suggestResults||[],t=>t.value,(t,i)=>this.renderSuggestion(i,t,e))}
|
|
3917
3918
|
</div>
|
|
3918
3919
|
`}renderSuggestion(e,t,i){let n=`suggestion-${e}`,a=S`
|
|
3919
3920
|
<ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
|
|
@@ -3941,9 +3942,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3941
3942
|
@click=${()=>this.onSuggestSelected(t.value)}>
|
|
3942
3943
|
${a}
|
|
3943
3944
|
</div>
|
|
3944
|
-
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let t=e.type==="DOCUMENT"?Ge.file_format:Ge.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?gt.BOOK:gt.ARTICLE;break;case"DOCUMENT":i=
|
|
3945
|
+
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let t=e.type==="DOCUMENT"?Ge.file_format:Ge.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?gt.BOOK:gt.ARTICLE;break;case"DOCUMENT":i=Aa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=gt.TOPICS;break}return S`
|
|
3945
3946
|
<ft-icon .variant="${t}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3946
|
-
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};so.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Se};so.styles=[
|
|
3947
|
+
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};so.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Se};so.styles=[dn,Ub]});var Xt,Ke,Xp=p(()=>{"use strict";P();L();vn();Mo();hr();lp();Y();nt();Hb();Nt();De();ur();Xt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ke=class extends Bt(Dt){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.suggestions=new so(this),this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(ro)}render(){var e,t,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(t=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Pr.get().serializeToCurrentPageIfPossible(a,s);return S`
|
|
3947
3948
|
<div class="${be(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3948
3949
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3949
3950
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
@@ -3990,12 +3991,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3990
3991
|
></ft-button>
|
|
3991
3992
|
</div>
|
|
3992
3993
|
</div>
|
|
3993
|
-
`}renderLiveText(){return this.shouldDisplaySuggestions?ro.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":let t=this.suggestions.selectedSuggestOption||this.launchSearchButton;t?.click();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var t;(t=this.stateManager)===null||t===void 0||t.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):T,this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.displaySuggestListbox=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};Ke.elementDefinitions={"ft-button":
|
|
3994
|
-
`});var
|
|
3994
|
+
`}renderLiveText(){return this.shouldDisplaySuggestions?ro.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":let t=this.suggestions.selectedSuggestOption||this.launchSearchButton;t?.click();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var t;(t=this.stateManager)===null||t===void 0||t.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):T,this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.displaySuggestListbox=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};Ke.elementDefinitions={"ft-button":Fe,...so.elementDefinitions};Ke.styles=[to,Eo,_d,...so.styles,vi];Xt([Ee()],Ke.prototype,"request",void 0);Xt([Ee()],Ke.prototype,"liveQuery",void 0);Xt([Ee()],Ke.prototype,"suggestResults",void 0);Xt([D()],Ke.prototype,"forceCloseSuggestion",void 0);Xt([D()],Ke.prototype,"displaySuggestListbox",void 0);Xt([D()],Ke.prototype,"selectedSuggestOptionId",void 0);Xt([h()],Ke.prototype,"launchSearchPath",void 0);Xt([h({type:Boolean})],Ke.prototype,"useCustomSearchPath",void 0);Xt([h({type:Boolean})],Ke.prototype,"triggerSearchOnClear",void 0);Xt([z(".ft-search-input--input")],Ke.prototype,"input",void 0);Xt([z('[part="launch-search-in-input"]')],Ke.prototype,"launchSearchButton",void 0)});var Wb=p(()=>{"use strict"});var Vb={};ie(Vb,{FtSearchInput:()=>Ke,FtSearchInputCssVariables:()=>Ce,styles:()=>_d});var jb=p(()=>{"use strict";L();Xp();vn();Wb();Xp();M("ft-search-input")(Ke)});var oS,Jp,eu=p(()=>{"use strict";P();oS={},Jp=A`
|
|
3995
|
+
`});var tu,Gb=p(()=>{"use strict";hr();tu=fr.fromGwt("designedActionBlockAriaLabels")});var Kb,Br,ru=p(()=>{"use strict";P();L();eu();Nt();Mo();hr();Gb();Kb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Br=class extends Bt(Dt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(tu)}render(){return this.isLastPage?T:S`
|
|
3995
3996
|
<ft-button @click="${this.loadMore}">
|
|
3996
|
-
${
|
|
3997
|
+
${tu.messages.searchPageLoadMore()}
|
|
3997
3998
|
</ft-button>
|
|
3998
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Br.elementDefinitions={"ft-button":
|
|
3999
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Br.elementDefinitions={"ft-button":Fe};Br.styles=Jp;Kb([Ee({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Br.prototype,"currentPage",void 0);Kb([Ee({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Br.prototype,"isLastPage",void 0)});var qb=p(()=>{"use strict"});var Zb={};ie(Zb,{FtSearchLoadMoreButton:()=>Br,FtSearchLoadMoreButtonCssVariables:()=>oS,styles:()=>Jp});var Yb=p(()=>{"use strict";L();ru();eu();qb();ru();M("ft-search-load-more-button")(Br)});function iS(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ou]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[ou]):this.dispatchEvent(new iu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=ou,us([h({attribute:!1})],t.prototype,"cluster",void 0),us([h({attribute:!1})],t.prototype,"result",void 0),us([h({attribute:!1,type:Number})],t.prototype,"rank",void 0),us([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}var us,iu,ou,Bi,nu=p(()=>{"use strict";Mo();Y();us=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},iu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},ou=Symbol("registerInterval");Bi=class extends iS(Dt){}});var Ho,au=p(()=>{"use strict";P();nu();_a();qi();De();Ho=class extends Bi{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?S`
|
|
3999
4000
|
<ft-typography variant="body1" part="text">${bo(e)}</ft-typography>
|
|
4000
4001
|
`:S`
|
|
4001
4002
|
<style>
|
|
@@ -4003,46 +4004,46 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4003
4004
|
display: none !important;
|
|
4004
4005
|
}
|
|
4005
4006
|
</style>
|
|
4006
|
-
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Ho.elementDefinitions={"ft-typography":oe};Ho.styles
|
|
4007
|
-
<a href="${
|
|
4007
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Ho.elementDefinitions={"ft-typography":oe};Ho.styles=$d});var Qb=p(()=>{"use strict"});var Xb={};ie(Xb,{FtSearchResultAbstract:()=>Ho,FtSearchResultAbstractCssVariables:()=>ka,styles:()=>$d});var su=p(()=>{"use strict";L();au();_a();Qb();au();M("ft-search-result-abstract")(Ho)});var nS,lo,lu=p(()=>{"use strict";P();Y();nu();Ta();De();qi();Xd();ep();nS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lo=class extends Bi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():S`
|
|
4008
|
+
<a href="${Ga(this.result)}"
|
|
4008
4009
|
@click=${this.onResultClick}
|
|
4009
4010
|
@auxclick=${t=>this.onAuxClick(t)}
|
|
4010
4011
|
@contextmenu=${this.onContextMenu}
|
|
4011
|
-
target="${
|
|
4012
|
+
target="${Iy(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
4012
4013
|
part="link">
|
|
4013
4014
|
${this.renderTitle()}
|
|
4014
4015
|
</a>
|
|
4015
4016
|
`:T}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){return S`
|
|
4016
4017
|
<ft-typography variant="title" part="text">${bo(this.selectTitle(this.result))}</ft-typography>
|
|
4017
|
-
`}onResultClick(){this.dispatchEvent(new
|
|
4018
|
+
`}onResultClick(){this.dispatchEvent(new ki(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new _i(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};lo.elementDefinitions={"ft-typography":oe};lo.styles=Td;nS([h({type:Boolean})],lo.prototype,"withoutLink",void 0)});var Jb=p(()=>{"use strict"});var ev={};ie(ev,{FtSearchResultTitle:()=>lo,FtSearchResultTitleCssVariables:()=>$a,styles:()=>Td});var cu=p(()=>{"use strict";L();lu();Ta();Jb();lu();M("ft-search-result-title")(lo)});var aS,du,pu=p(()=>{"use strict";P();aS={},du=A`
|
|
4018
4019
|
[part="no-results-message"] {
|
|
4019
4020
|
text-align: center;
|
|
4020
4021
|
padding: 12px;
|
|
4021
4022
|
}
|
|
4022
|
-
`});var
|
|
4023
|
+
`});var tv,uu=p(()=>{"use strict";P();tv=A`
|
|
4023
4024
|
a {
|
|
4024
4025
|
color: inherit;
|
|
4025
4026
|
text-decoration: inherit;
|
|
4026
4027
|
}
|
|
4027
|
-
`});var
|
|
4028
|
+
`});var fs,rv=p(()=>{"use strict";fs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var hs,fu,xr,hu=p(()=>{"use strict";P();Y();L();uu();rv();hs=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},fu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},xr=class extends H{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new fs(e=>this.onResultSelected(e))}render(){return S`
|
|
4028
4029
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
4029
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new
|
|
4030
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new fu(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};xr.elementDefinitions={};xr.styles=tv;hs([h({attribute:!1})],xr.prototype,"cluster",void 0);hs([h({attribute:!1,type:Boolean})],xr.prototype,"openResultInNewTab",void 0);hs([D()],xr.prototype,"result",void 0);hs([h()],xr.prototype,"index",void 0)});var ov=p(()=>{"use strict"});var iv=p(()=>{"use strict";L();hu();uu();ov();hu();M("ft-search-result-context")(xr)});var Di,nv,mu=p(()=>{"use strict";hr();Di=fr.build("searchResultsNumber"),nv={results:"{0} results","results[\\=1]":"1 result"}});var Wo,It,gu=p(()=>{"use strict";P();jt();Y();L();pu();Mo();iv();cu();su();hr();mu();Wo=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},It=class extends Bt(Dt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>S`
|
|
4030
4031
|
<ft-search-result-title></ft-search-result-title>
|
|
4031
4032
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
4032
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(
|
|
4033
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
4034
|
-
`;let e=this.buildClusters();return
|
|
4033
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(Di)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return S`
|
|
4034
|
+
<ft-typography part="no-results-message" variant="body1">${Di.messages.results(0)}</ft-typography>
|
|
4035
|
+
`;let e=this.buildClusters();return Pe(e,t=>t.id,(t,i)=>{var n;return S`
|
|
4035
4036
|
<ft-search-result-context .cluster=${t} index="${i}"
|
|
4036
4037
|
@ft-search-result-cluster-change=${a=>this.onClusterChange(t.id,a.detail)}>
|
|
4037
4038
|
${this.renderResult((n=this.selectedResultByCluster[t.id])!==null&&n!==void 0?n:t.entries[0],i)}
|
|
4038
4039
|
</ft-search-result-context>
|
|
4039
|
-
`})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&
|
|
4040
|
+
`})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&Uc.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,i;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};It.styles=du;Wo([h({type:String,attribute:"cluster-policy"})],It.prototype,"clusterPolicy",void 0);Wo([h({type:Boolean})],It.prototype,"displayNoResultsMessage",void 0);Wo([h({attribute:!1})],It.prototype,"renderResult",void 0);Wo([we([])],It.prototype,"clusterSortCriterion",void 0);Wo([Ee({selector:r=>({...r.request,paging:void 0})})],It.prototype,"requestWithoutPaging",void 0);Wo([Ee({selector:r=>r.request.paging})],It.prototype,"paging",void 0);Wo([Ee()],It.prototype,"results",void 0)});var av=p(()=>{"use strict"});var sv={};ie(sv,{FtSearchResults:()=>It,FtSearchResultsCssVariables:()=>aS,styles:()=>du});var lv=p(()=>{"use strict";L();gu();pu();av();gu();M("ft-search-results")(It)});var sS,yu,bu=p(()=>{"use strict";P();sS={},yu=A`
|
|
4040
4041
|
|
|
4041
|
-
`});var
|
|
4042
|
+
`});var lS,co,vu=p(()=>{"use strict";P();L();bu();Mo();hr();mu();De();lS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},co=class extends Bt(Dt){constructor(){super(),this.addI18nContext(Di,nv)}render(){return this.paging==null?T:S`
|
|
4042
4043
|
<ft-typography variant="body1">
|
|
4043
|
-
${
|
|
4044
|
+
${Di.messages.results(this.paging.totalClustersCount)}
|
|
4044
4045
|
</ft-typography>
|
|
4045
|
-
`}};co.elementDefinitions={"ft-typography":oe};co.styles=
|
|
4046
|
+
`}};co.elementDefinitions={"ft-typography":oe};co.styles=yu;lS([Ee()],co.prototype,"paging",void 0)});var cv=p(()=>{"use strict"});var dv={};ie(dv,{FtSearchResultsNumber:()=>co,FtSearchResultsNumberCssVariables:()=>sS,styles:()=>yu});var pv=p(()=>{"use strict";L();vu();bu();cv();vu();M("ft-search-results-number")(co)});L();P();L();P();L();P();L();_r();var ve={padding:o.create("--ft-card-padding","","SIZE","12px"),borderRadius:o.extend("--ft-card-border-radius","",E.borderRadiusM),borderStyle:o.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:o.extend("--ft-card-border-color","",E.colorOutline),hoverBorderColor:o.extend("--ft-card-hover-border-color","",E.colorPrimary),outlineStyle:o.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:o.create("--ft-card-outline-width","","SIZE","0"),outlineColor:o.extend("--ft-card-outline-color","",E.colorPrimary),selectedOutlineStyle:o.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:o.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:o.extend("--ft-card-selected-outline-color","",E.colorPrimary),selectedBorderRadius:o.extend("--ft-card-selected-border-radius","",E.borderRadiusM),colorSurface:o.extend("--ft-card-background-color","",E.colorSurface),colorOnSurfaceMedium:o.extend("--ft-card-content-color","",E.colorOnSurfaceMedium),colorOnSurfaceHigh:o.extend("--ft-card-title-color","",E.colorOnSurfaceHigh),elevation02:o.extend("--ft-card-elevation","",E.elevation02),elevation04:o.extend("--ft-card-selected-elevation","",E.elevation04)},pg=A`
|
|
4046
4047
|
:host {
|
|
4047
4048
|
display: block;
|
|
4048
4049
|
}
|
|
@@ -4056,7 +4057,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4056
4057
|
border-style: ${ve.borderStyle};
|
|
4057
4058
|
border-width: 1px;
|
|
4058
4059
|
border-radius: ${ve.borderRadius};
|
|
4059
|
-
${y(
|
|
4060
|
+
${y($.borderRadius,ve.borderRadius)};
|
|
4060
4061
|
box-shadow: ${ve.elevation02};
|
|
4061
4062
|
position: relative;
|
|
4062
4063
|
width: 100%;
|
|
@@ -4095,7 +4096,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4095
4096
|
outline-width: ${ve.selectedOutlineWidth};
|
|
4096
4097
|
outline-color: ${ve.selectedOutlineColor};
|
|
4097
4098
|
border-radius: ${ve.selectedBorderRadius};
|
|
4098
|
-
${y(
|
|
4099
|
+
${y($.borderRadius,ve.selectedBorderRadius)};
|
|
4099
4100
|
box-shadow: ${ve.elevation04};
|
|
4100
4101
|
}
|
|
4101
4102
|
|
|
@@ -4131,7 +4132,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4131
4132
|
#action {
|
|
4132
4133
|
grid-area: actions;
|
|
4133
4134
|
}
|
|
4134
|
-
`;
|
|
4135
|
+
`;vn();_a();_r();Ta();var rt={searchFieldBackgroundColor:o.extend("--ft-rsid-search-field-background-color","",E.colorSurface),searchFieldBorderColor:o.extend("--ft-rsid-search-field-border-color","",E.colorOutline),searchFieldTextColor:o.extend("--ft-rsid-search-field-text-color","",E.colorOnSurface),searchFieldBorderRadius:o.extend("--ft-rsid-search-field-border-radius","",E.borderRadiusS),searchButtonColor:o.extend("--ft-rsid-search-field-button-color","",E.colorPrimary),resultsNumberColor:o.extend("--ft-rsid-results-number-color","",E.colorOnSurfaceMedium),resultBackgroundColor:o.extend("--ft-rsid-result-background-color","",E.colorSurface),resultBorderColor:o.extend("--ft-rsid-result-border-color","",E.colorOutline),resultBorderRadius:o.extend("--ft-rsid-result-border-radius","",E.borderRadiusS),resultTitleTextColor:o.extend("--ft-rsid-result-title-text-color","",E.colorOnSurface),resultBreadcrumbTextColor:o.extend("--ft-rsid-result-breadcrumb-text-color","",E.colorOnSurfaceMedium),resultContentTextColor:o.extend("--ft-rsid-result-content-text-color","",E.colorOnSurface),resultHighlightBackgroundColor:o.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:o.extend("--ft-rsid-result-hover-background-color","",E.colorPrimary),resultHoverBorderColor:o.extend("--ft-rsid-result-hover-border-color","",E.colorPrimary)},Wg=A`
|
|
4135
4136
|
.ft-search-in-doc--container {
|
|
4136
4137
|
display: flex;
|
|
4137
4138
|
flex-direction: column;
|
|
@@ -4139,11 +4140,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4139
4140
|
}
|
|
4140
4141
|
|
|
4141
4142
|
ft-search-input {
|
|
4142
|
-
${y(Ce.colorSurface,
|
|
4143
|
-
${y(Ce.colorOutline,
|
|
4144
|
-
${y(Ce.colorOnSurface,
|
|
4145
|
-
${y(Ce.borderRadius,
|
|
4146
|
-
${y(Ce.buttonColor,
|
|
4143
|
+
${y(Ce.colorSurface,rt.searchFieldBackgroundColor)};
|
|
4144
|
+
${y(Ce.colorOutline,rt.searchFieldBorderColor)};
|
|
4145
|
+
${y(Ce.colorOnSurface,rt.searchFieldTextColor)};
|
|
4146
|
+
${y(Ce.borderRadius,rt.searchFieldBorderRadius)};
|
|
4147
|
+
${y(Ce.buttonColor,rt.searchButtonColor)};
|
|
4147
4148
|
}
|
|
4148
4149
|
|
|
4149
4150
|
ft-search-results-number {
|
|
@@ -4151,41 +4152,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4151
4152
|
}
|
|
4152
4153
|
|
|
4153
4154
|
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
4154
|
-
color: ${
|
|
4155
|
+
color: ${rt.resultsNumberColor};
|
|
4155
4156
|
}
|
|
4156
4157
|
|
|
4157
4158
|
ft-search-load-more-button {
|
|
4158
4159
|
margin: auto;
|
|
4159
4160
|
}
|
|
4160
|
-
`,
|
|
4161
|
+
`,Vg=A`
|
|
4161
4162
|
ft-card {
|
|
4162
4163
|
margin-bottom: 8px;
|
|
4163
4164
|
${y(ve.elevation04,"none")};
|
|
4164
4165
|
${y(ve.elevation02,"none")};
|
|
4165
4166
|
${y(ve.borderStyle,"solid")};
|
|
4166
4167
|
${y(ve.borderRadius,E.borderRadiusS)};
|
|
4167
|
-
${y(ve.colorSurface,
|
|
4168
|
-
${y(ve.borderColor,
|
|
4169
|
-
${y(ve.borderRadius,
|
|
4168
|
+
${y(ve.colorSurface,rt.resultBackgroundColor)};
|
|
4169
|
+
${y(ve.borderColor,rt.resultBorderColor)};
|
|
4170
|
+
${y(ve.borderRadius,rt.resultBorderRadius)};
|
|
4170
4171
|
}
|
|
4171
4172
|
|
|
4172
4173
|
ft-search-result-title {
|
|
4173
|
-
color: ${
|
|
4174
|
-
${y(
|
|
4174
|
+
color: ${rt.resultTitleTextColor};
|
|
4175
|
+
${y($a.highlightBackgroundColor,rt.resultHighlightBackgroundColor)};
|
|
4175
4176
|
}
|
|
4176
4177
|
|
|
4177
4178
|
.breadcrumb {
|
|
4178
|
-
color: ${
|
|
4179
|
+
color: ${rt.resultBreadcrumbTextColor};
|
|
4179
4180
|
}
|
|
4180
4181
|
|
|
4181
4182
|
ft-search-result-abstract {
|
|
4182
|
-
color: ${
|
|
4183
|
-
${y(
|
|
4183
|
+
color: ${rt.resultContentTextColor};
|
|
4184
|
+
${y(ka.highlightBackgroundColor,rt.resultHighlightBackgroundColor)};
|
|
4184
4185
|
}
|
|
4185
4186
|
|
|
4186
4187
|
ft-card:hover {
|
|
4187
|
-
${y(ve.hoverBorderColor,
|
|
4188
|
-
${y(
|
|
4188
|
+
${y(ve.hoverBorderColor,rt.resultHoverBorderColor)};
|
|
4189
|
+
${y($.color,rt.resultHoverBackgroundColor)};
|
|
4189
4190
|
}
|
|
4190
4191
|
|
|
4191
4192
|
.result-container {
|
|
@@ -4198,7 +4199,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4198
4199
|
text-decoration: none;
|
|
4199
4200
|
color: inherit;
|
|
4200
4201
|
}
|
|
4201
|
-
`;hr();
|
|
4202
|
+
`;hr();L();Y();var Oy;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change"})(Oy||(Oy={}));var Ey;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ey||(Ey={}));var Z0=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Qd=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Yd=Symbol("registerInterval");function Y0(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Yd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Yd]):this.dispatchEvent(new Qd)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yd,Z0([D()],t.prototype,"stateManager",void 0),t}var ja=class extends Y0(Kt){};Y();Xd();hr();var Jd=fr.build("designedReaderSearchInDocument");L();P();Y();L();at();De();nt();var Ii=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},bt=class extends H{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return S`
|
|
4202
4203
|
<div id="container" part="container" class=${be(e)}>
|
|
4203
4204
|
${this.clickable?S`
|
|
4204
4205
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
@@ -4216,9 +4217,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4216
4217
|
</ft-typography>
|
|
4217
4218
|
</div>
|
|
4218
4219
|
</div>
|
|
4219
|
-
`}};bt.elementDefinitions={"ft-ripple":re,"ft-typography":oe};bt.styles=
|
|
4220
|
-
<style> ${
|
|
4221
|
-
<a href="${
|
|
4220
|
+
`}};bt.elementDefinitions={"ft-ripple":re,"ft-typography":oe};bt.styles=pg;Ii([h()],bt.prototype,"title",void 0);Ii([h({type:Boolean})],bt.prototype,"clickable",void 0);Ii([h({type:Boolean})],bt.prototype,"selected",void 0);Ii([h({type:Boolean})],bt.prototype,"noHeader",void 0);Ii([h({type:Boolean})],bt.prototype,"noContent",void 0);Ii([h({type:Boolean})],bt.prototype,"oneLineHeader",void 0);M("ft-card")(bt);ep();var Dr=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ut=class r extends Bt(ja){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=Js(6,"search-in-document-"),this.addI18nContext(Jd)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var i;return S`
|
|
4221
|
+
<style> ${Vg}</style>
|
|
4222
|
+
<a href="${Ga(e)}" @click=${()=>this.onLinkClick(e,t)}
|
|
4222
4223
|
@auxclick=${n=>this.onAuxClick(n,e,t)}
|
|
4223
4224
|
@contextmenu=${()=>this.onContextMenu(e,t)}>
|
|
4224
4225
|
<ft-card clickable noheader>
|
|
@@ -4234,7 +4235,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4234
4235
|
</div>
|
|
4235
4236
|
</ft-card>
|
|
4236
4237
|
</a>
|
|
4237
|
-
`}onAuxClick(e,t,i){e.button==1&&this.onLinkClick(t,i)}onContextMenu(e,t){this.dispatchEvent(new
|
|
4238
|
+
`}onAuxClick(e,t,i){e.button==1&&this.onLinkClick(t,i)}onContextMenu(e,t){this.dispatchEvent(new _i(e,t))}render(){return this.map?S`
|
|
4238
4239
|
<ft-search-context id="${this.uniqueId}"
|
|
4239
4240
|
part="search-context"
|
|
4240
4241
|
contentLocale="${this.map.lang}"
|
|
@@ -4243,7 +4244,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4243
4244
|
scope="ALL_TOPICS"
|
|
4244
4245
|
ignoreEmptyQuery>
|
|
4245
4246
|
<div class="ft-search-in-doc--container">
|
|
4246
|
-
<ft-search-input placeholder="${
|
|
4247
|
+
<ft-search-input placeholder="${Jd.messages.placeholder()}"
|
|
4247
4248
|
?triggerSearchOnClear=${this.emptyResultOnClear}
|
|
4248
4249
|
@change=${e=>{var t;(t=this.stateManager)===null||t===void 0||t.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
|
|
4249
4250
|
${this.hideResultsNumber?T:S`
|
|
@@ -4258,7 +4259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4258
4259
|
</slot>
|
|
4259
4260
|
</div>
|
|
4260
4261
|
</ft-search-context>
|
|
4261
|
-
`:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){Xo(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new
|
|
4262
|
+
`:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){Xo(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new ki(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(My(),Dy)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(jb(),Vb)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(Yb(),Zb)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(su(),Xb)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(cu(),ev)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(lv(),sv)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(pv(),dv)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};ut.elementDefinitions={"ft-card":bt};ut.styles=Wg;Dr([Ee()],ut.prototype,"map",void 0);Dr([Ee()],ut.prototype,"searchInDocumentQuery",void 0);Dr([z("ft-search-results")],ut.prototype,"searchResults",void 0);Dr([h({type:Boolean})],ut.prototype,"hideResultTitle",void 0);Dr([h({type:Boolean})],ut.prototype,"hideResultBreadcrumb",void 0);Dr([h({type:Boolean})],ut.prototype,"hideResultAbstract",void 0);Dr([h({type:Boolean})],ut.prototype,"hideResultsNumber",void 0);Dr([h({type:Boolean})],ut.prototype,"emptyResultOnClear",void 0);Dr([z('[part="search-context"]')],ut.prototype,"searchContext",void 0);M("ft-reader-search-in-document")(ut);})();
|
|
4262
4263
|
/*! Bundled license information:
|
|
4263
4264
|
|
|
4264
4265
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|