@fluid-topics/ft-reader-feedback 1.2.5 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- "use strict";(()=>{var yp=Object.create;var yn=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var vp=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var Sp=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)yn(r,e,{get:t[e],enumerable:!0})},Op=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of bp(t))!xp.call(r,n)&&n!==e&&yn(r,n,{get:()=>t[n],enumerable:!(i=gp(t,n))||i.enumerable});return r};var Cp=(r,t,e)=>(e=r!=null?yp(vp(r)):{},Op(t||!r||!r.__esModule?yn(e,"default",{value:r,enumerable:!0}):e,r));var td=Sp((Ge,Qc)=>{var Di=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mi=function(){function r(){this.fetch=!1,this.DOMException=Di.DOMException}return r.prototype=Di,new r}();(function(r){var t=function(e){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(m){return m&&DataView.prototype.isPrototypeOf(m)}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(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function f(m){var O={next:function(){var D=m.shift();return{done:D===void 0,value:D}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(m){this.map={},m instanceof h?m.forEach(function(O,D){this.append(D,O)},this):Array.isArray(m)?m.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(O){this.append(O,m[O])},this)}h.prototype.append=function(m,O){m=d(m),O=p(O);var D=this.map[m];this.map[m]=D?D+", "+O:O},h.prototype.delete=function(m){delete this.map[d(m)]},h.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},h.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},h.prototype.set=function(m,O){this.map[d(m)]=p(O)},h.prototype.forEach=function(m,O){for(var D in this.map)this.map.hasOwnProperty(D)&&m.call(O,this.map[D],D,this)},h.prototype.keys=function(){var m=[];return this.forEach(function(O,D){m.push(D)}),f(m)},h.prototype.values=function(){var m=[];return this.forEach(function(O){m.push(O)}),f(m)},h.prototype.entries=function(){var m=[];return this.forEach(function(O,D){m.push([D,O])}),f(m)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function v(m){return new Promise(function(O,D){m.onload=function(){O(m.result)},m.onerror=function(){D(m.error)}})}function S(m){var O=new FileReader,D=v(O);return O.readAsArrayBuffer(m),D}function E(m){var O=new FileReader,D=v(O),G=/charset=([A-Za-z0-9_-]+)/.exec(m.type),J=G?G[1]:"utf-8";return O.readAsText(m,J),D}function N(m){for(var O=new Uint8Array(m),D=new Array(O.length),G=0;G<O.length;G++)D[G]=String.fromCharCode(O[G]);return D.join("")}function T(m){if(m.slice)return m.slice(0);var O=new Uint8Array(m.byteLength);return O.set(new Uint8Array(m)),O.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="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(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=y(this);if(m)return m;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 m=y(this);return m||(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(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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 w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(m){var O=m.toUpperCase();return w.indexOf(O)>-1?O:m}function A(m,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var D=O.body;if(m instanceof A){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,O.headers||(this.headers=new h(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!D&&m._bodyInit!=null&&(D=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=C(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var z=new AbortController;return z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function k(m){var O=new FormData;return m.trim().split("&").forEach(function(D){if(D){var G=D.split("="),J=G.shift().replace(/\+/g," "),z=G.join("=").replace(/\+/g," ");O.append(decodeURIComponent(J),decodeURIComponent(z))}}),O}function W(m){var O=new h,D=m.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(G){return G.indexOf(`
2
- `)===0?G.substr(1,G.length):G}).forEach(function(G){var J=G.split(":"),z=J.shift().trim();if(z){var ae=J.join(":").trim();try{O.append(z,ae)}catch(oo){console.warn("Response "+oo.message)}}}),O}P.call(A.prototype);function Y(m,O){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(m)}P.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Y.error=function(){var m=new Y(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var K=[301,302,303,307,308];Y.redirect=function(m,O){if(K.indexOf(O)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:O,headers:{location:m}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var G=Error(O);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(m,O){return new Promise(function(D,G){var J=new A(m,O);if(J.signal&&J.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function ae(){z.abort()}z.onload=function(){var Rt={statusText:z.statusText,headers:W(z.getAllResponseHeaders()||"")};J.url.indexOf("file://")===0&&(z.status<200||z.status>599)?Rt.status=200:Rt.status=z.status,Rt.url="responseURL"in z?z.responseURL:Rt.headers.get("X-Request-URL");var er="response"in z?z.response:z.responseText;setTimeout(function(){D(new Y(er,Rt))},0)},z.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},z.onabort=function(){setTimeout(function(){G(new e.DOMException("Aborted","AbortError"))},0)};function oo(Rt){try{return Rt===""&&i.location.href?i.location.href:Rt}catch{return Rt}}if(z.open(J.method,oo(J.url),!0),J.credentials==="include"?z.withCredentials=!0:J.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(n.blob?z.responseType="blob":n.arrayBuffer&&(z.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Qs=[];Object.getOwnPropertyNames(O.headers).forEach(function(Rt){Qs.push(d(Rt)),z.setRequestHeader(Rt,p(O.headers[Rt]))}),J.headers.forEach(function(Rt,er){Qs.indexOf(er)===-1&&z.setRequestHeader(er,Rt)})}else J.headers.forEach(function(Rt,er){z.setRequestHeader(er,Rt)});J.signal&&(J.signal.addEventListener("abort",ae),z.onreadystatechange=function(){z.readyState===4&&J.signal.removeEventListener("abort",ae)}),z.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=h,i.Request=A,i.Response=Y),e.Headers=h,e.Request=A,e.Response=Y,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Gr=Di.fetch?Di:Mi;Ge=Gr.fetch;Ge.default=Gr.fetch;Ge.fetch=Gr.fetch;Ge.Headers=Gr.Headers;Ge.Request=Gr.Request;Ge.Response=Gr.Response;Qc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=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(w,C){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);y(C,k,A);let W={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,W),this._definitionsByClass.set(C,W);let Y=e.call(i,w);Y||(Y=h(w),t.call(i,w,Y)),this===window.customElements&&(s.set(C,W),W.standInClass=Y);let K=this._awaitingUpgrade.get(w);if(K){this._awaitingUpgrade.delete(w);for(let m of K)a.delete(m),S(m,W,!0)}let F=this._whenDefinedPromises.get(w);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(w)),C}upgrade(){N.push(this),i.upgrade.apply(i,arguments),N.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let C=this._getDefinition(w);if(C!==void 0)return Promise.resolve(C.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;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 C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=w=>w===document||w instanceof ShadowRoot,f=w=>{let C=w.getRootNode();if(!p(C)){let A=N[N.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},h=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=f(A)||window.customElements,W=k._getDefinition(w);return W?S(A,W):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!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)}},y=(w,C,A)=>{if(C.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(K,F){let m=K.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);k.call(this,m,F),A.call(this,m,O,F)}else k.call(this,m,F)});let W=w.prototype.removeAttribute;W&&(w.prototype.removeAttribute=function(K){let F=K.toLowerCase();if(C.has(F)){let m=this.getAttribute(F);W.call(this,F),A.call(this,F,m,null)}else W.call(this,F)});let Y=w.prototype.toggleAttribute;Y&&(w.prototype.toggleAttribute=function(K,F){let m=K.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);Y.call(this,m,F);let D=this.getAttribute(m);A.call(this,m,O,D)}else Y.call(this,m,F)})},v=w=>{let C=Object.getPrototypeOf(w);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(w,window.HTMLElement):v(C)},S=(w,C,A=!1)=>{Object.setPrototypeOf(w,C.elementClass.prototype),n.set(w,C),d=w;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{w.hasAttribute(k)&&C.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&C.connectedCallback&&w.isConnected&&C.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let C=E.apply(this,arguments);return w.customElements&&(C.customElements=w.customElements),C};let N=[document],T=(w,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[C];w.prototype[C]=function(){N.push(this);let W=k.apply(A||this,arguments);return W!==void 0&&l.set(W,this),N.pop(),W}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let P=(w,C)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,C);Object.defineProperty(w.prototype,C,{...A,set(k){N.push(this),A.set.call(this,k),N.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...K){let F=C.call(this,...K);return w.set(F,this),F},A.forEach(K=>{let F=window.ElementInternals.prototype,m=F[K];F[K]=function(...O){let D=w.get(this);if(n.get(D).formAssociated===!0)return m?.call(this,...O);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class W{constructor(F){let m=new Map;F.forEach((O,D)=>{let G=O.getAttribute("name"),J=m.get(G)||[];this[+D]=O,J.push(O),m.set(G,J)}),this.length=F.length,m.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let Y=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let K=Y.get.call(this,[]),F=[];for(let m of K){let O=n.get(m);(!O||O.formAssociated===!0)&&F.push(m)}return new W(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var Nn={};rt(Nn,{CSSResult:()=>Pr,LitElement:()=>Se,ReactiveElement:()=>se,_$LE:()=>Kp,_$LH:()=>Vp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>uo,html:()=>$,isServer:()=>Ph,noChange:()=>ke,notEqual:()=>Cn,nothing:()=>V,render:()=>_n,supportsAdoptingStyleSheets:()=>po,svg:()=>zp,unsafeCSS:()=>ve});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,el=Symbol(),tl=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==el)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=tl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tl.set(e,t))}return t}toString(){return this.cssText}},rl=r=>new qo(typeof r=="string"?r:r+"",void 0,el);var gn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return rl(e)})(r):r;var{is:Ep,defineProperty:wp,getOwnPropertyDescriptor:Ap,getOwnPropertyNames:Rp,getOwnPropertySymbols:_p,getPrototypeOf:Np}=Object,Jo=globalThis,ol=Jo.trustedTypes,Ip=ol?ol.emptyScript:"",Tp=Jo.reactiveElementPolyfillSupport,io=(r,t)=>r,no={toAttribute(r,t){switch(t){case Boolean:r=r?Ip:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!Ep(r,t),il={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=il){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&wp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Ap(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??il}static _$Ei(){if(this.hasOwnProperty(io("elementProperties")))return;let t=Np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let e=this.properties,i=[...Rp(e),..._p(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return gn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:no).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);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:no;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[io("elementProperties")]=new Map,rr[io("finalized")]=new Map,Tp?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var vn=globalThis,ti=vn.trustedTypes,nl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,xn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Sn="?"+be,Pp=`<${Sn}>`,nr=document,ei=()=>nr.createComment(""),so=r=>r===null||typeof r!="object"&&typeof r!="function",pl=Array.isArray,ul=r=>pl(r)||typeof r?.[Symbol.iterator]=="function",bn=`[
3
- \f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,al=/-->/g,sl=/>/g,or=RegExp(`>|${bn}(?:([^\\s"'>=/]+)(${bn}*=${bn}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ll=/'/g,cl=/"/g,fl=/^(?:script|style|textarea|title)$/i,hl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ml=hl(1),yl=hl(2),jt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),dl=new WeakMap,ir=nr.createTreeWalker(nr,129);function gl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nl!==void 0?nl.createHTML(t):t}var bl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ao;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ao?f[1]==="!--"?s=al:f[1]!==void 0?s=sl:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??ao,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?cl:ll):s===cl||s===ll?s=or:s===al||s===sl?s=ao:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?d+Pp:h>=0?(i.push(p),d.slice(0,h)+xn+d.slice(h)+be+v):d+be+(h===-2?l:v)}return[gl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},lo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=bl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(xn)){let y=f[s++],v=n.getAttribute(h).split(be),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(h)}else h.startsWith(be)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(be),y=h.length-1;if(y>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[y],ei())}}}else if(n.nodeType===8)if(n.data===Sn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(be,h+1))!==-1;)d.push({type:7,index:a}),h+=be.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=so(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new co(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},co=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),so(t)?t===ht||t==null||t===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ul(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ht&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=dl.get(t.strings);return e===void 0&&dl.set(t.strings,e=new lo(t)),e}T(t){pl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,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=ht}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!so(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===ht?t=ht:t!==ht&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ht?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??ht)===jt)return;let i=this._$AH,n=t===ht&&i!==ht||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ht&&(i===ht||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},vl={j:xn,P:be,A:Sn,C:1,M:bl,L:ri,R:ul,V:ar,D:co,I:sr,H:ii,N:ni,U:oi,B:ai},$p=vn.litHtmlPolyfillSupport;$p?.(lo,co),(vn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,po=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,On=Symbol(),xl=new WeakMap,Pr=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==On)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(po&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=xl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xl.set(e,t))}return t}toString(){return this.cssText}},ve=r=>new Pr(typeof r=="string"?r:r+"",void 0,On),L=(r,...t)=>{let e=r.length===1?r[0]:t.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 Pr(e,r,On)},li=(r,t)=>{if(po)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},uo=po?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return ve(e)})(r):r;var{is:Lp,defineProperty:kp,getOwnPropertyDescriptor:Dp,getOwnPropertyNames:Mp,getOwnPropertySymbols:Fp,getPrototypeOf:Bp}=Object,di=globalThis,Sl=di.trustedTypes,Up=Sl?Sl.emptyScript:"",Wp=di.reactiveElementPolyfillSupport,fo=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?Up:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Cn=(r,t)=>!Lp(r,t),Ol={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:Cn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var se=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ol){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&kp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Dp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ol}static _$Ei(){if(this.hasOwnProperty(fo("elementProperties")))return;let t=Bp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fo("properties"))){let e=this.properties,i=[...Mp(e),...Fp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(uo(n))}else t!==void 0&&e.push(uo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);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:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Cn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[fo("elementProperties")]=new Map,se[fo("finalized")]=new Map,Wp?.({ReactiveElement:se}),(di.reactiveElementVersions??=[]).push("2.0.2");var wn=globalThis,pi=wn.trustedTypes,Cl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,An="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,Rn="?"+xe,Hp=`<${Rn}>`,dr=document,mo=()=>dr.createComment(""),yo=r=>r===null||typeof r!="object"&&typeof r!="function",Nl=Array.isArray,Il=r=>Nl(r)||typeof r?.[Symbol.iterator]=="function",En=`[
5
- \f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,wl=/>/g,lr=RegExp(`>|${En}(?:([^\\s"'>=/]+)(${En}*=${En}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Tl=/^(?:script|style|textarea|title)$/i,Pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=Pl(1),zp=Pl(2),ke=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),_l=new WeakMap,cr=dr.createTreeWalker(dr,129);function $l(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(t):t}var Ll=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ho;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ho?f[1]==="!--"?s=El:f[1]!==void 0?s=wl:f[2]!==void 0?(Tl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??ho,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?Rl:Al):s===Rl||s===Al?s=lr:s===El||s===wl?s=ho:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===ho?d+Hp:h>=0?(i.push(p),d.slice(0,h)+An+d.slice(h)+xe+v):d+xe+(h===-2?l:v)}return[$l(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},go=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=Ll(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(An)){let y=f[s++],v=n.getAttribute(h).split(xe),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(h)}else h.startsWith(xe)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Tl.test(n.tagName)){let h=n.textContent.split(xe),y=h.length-1;if(y>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],mo()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[y],mo())}}}else if(n.nodeType===8)if(n.data===Rn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(xe,h+1))!==-1;)d.push({type:7,index:a}),h+=xe.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=yo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new $r(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},$r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),yo(t)?t===V||t==null||t===""?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Il(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&yo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=go.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=_l.get(t.strings);return e===void 0&&_l.set(t.strings,e=new go(t)),e}T(t){Nl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(mo()),this.k(mo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,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=V}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!yo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!yo(p)||p!==this._$AH[d],p===V?t=V:t!==V&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===V?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??V)===ke)return;let i=this._$AH,n=t===V&&i!==V||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==V&&(i===V||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},Vp={j:An,P:xe,A:Rn,C:1,M:Ll,L:ui,R:Il,V:pr,D:$r,I:ur,H:hi,N:mi,U:fi,B:yi},jp=wn.litHtmlPolyfillSupport;jp?.(go,$r),(wn.litHtmlVersions??=[]).push("3.1.0");var _n=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new $r(t.insertBefore(mo(),a),a,void 0,e??{})}return n._$AI(r),n};var Se=class extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_n(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Se._$litElement$=!0,Se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Se});var Gp=globalThis.litElementPolyfillSupport;Gp?.({LitElement:Se});var Kp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Ph=!1;var Tn={};rt(Tn,{customElement:()=>Zp,eventOptions:()=>Oe,property:()=>g,query:()=>Q,queryAll:()=>Xp,queryAssignedElements:()=>In,queryAssignedNodes:()=>bo,queryAsync:()=>Jp,standardProperty:()=>kl,state:()=>U});var Zp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var qp={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo},kl=(r=qp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?kl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function U(r){return g({...r,state:!0,attribute:!1})}function Oe(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Jt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Q(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Jt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Jt(e,i,{get(){return a(this)}})}}var Yp;function Xp(r){return(t,e)=>Jt(t,e,{get(){return(this.renderRoot??(Yp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Jp(r){return(t,e)=>Jt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function In(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function bo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var $n={};rt($n,{repeat:()=>Pn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),le=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Qp}=vl;var Dl=()=>document.createComment(""),Lr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Dl(),n),s=i.insertBefore(Dl(),n);e=new Qp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),tu={},Ml=(r,t=tu)=>r._$AH=t,Fl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Bl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Pn=Me(class extends le{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Fl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,y=n.length-1,v=0,S=a.length-1;for(;h<=y&&v<=S;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[v])d[v]=Fe(n[h],a[v]),h++,v++;else if(l[y]===s[S])d[S]=Fe(n[y],a[S]),y--,S--;else if(l[h]===s[S])d[S]=Fe(n[h],a[S]),Lr(r,d[S+1],n[h]),h++,S--;else if(l[y]===s[v])d[v]=Fe(n[y],a[v]),Lr(r,n[h],n[y]),y--,v++;else if(p===void 0&&(p=Bl(s,v,S),f=Bl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let E=f.get(s[v]),N=E!==void 0?n[E]:null;if(N===null){let T=Lr(r,n[h]);Fe(T,a[v]),d[v]=T}else d[v]=Fe(N,a[v]),Lr(r,n[h],N),n[E]=null;v++}else gi(n[y]),y--;else gi(n[h]),h++;for(;v<=S;){let E=Lr(r,d[S+1]);Fe(E,a[v]),d[v++]=E}for(;h<=y;){let E=n[h++];E!==null&&gi(E)}return this.dt=s,Ml(r,d),jt}});var Ln={};rt(Ln,{classMap:()=>Tt});var Tt=Me(class extends le{constructor(r){if(super(r),r.type!==De.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(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var kn={};rt(kn,{styleMap:()=>ru});var Ul="important",eu=" !"+Ul,ru=Me(class extends le{constructor(r){if(super(r),r.type!==De.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((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(eu);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Ul:""):e[i]=n}}return jt}});var Mn={};rt(Mn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>Dn});var kr=class extends le{constructor(t){if(super(t),this.et=ht,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ht||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var Dn=Me(kr);var zn={};rt(zn,{CacheRegistry:()=>ce,ClearCacheEvent:()=>vo});var Bn={};rt(Bn,{CancelablePromise:()=>Dr,CanceledPromiseError:()=>fr,cancelable:()=>Fn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Dr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Fn=r=>new Dr((t,e)=>r.then(t).catch(e));var Hn={};rt(Hn,{FtNotificationEvent:()=>Mt,PostResizeEvent:()=>Wn,PreResizeEvent:()=>Un,WithEventBus:()=>hr,withEventBus:()=>Wl});var Mt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Un=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Wn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Wl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends Wl(Object){};var vo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},ce=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new vo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new vo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Dr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Fn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Vn={};rt(Vn,{ClusteringHelper:()=>xo});var xo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(y=>y.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var jn={};rt(jn,{Debouncer:()=>st});var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>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 Zn={};rt(Zn,{customElement:()=>Z,isNumber:()=>zl,jsonProperty:()=>de,optionalNumberProperty:()=>su});var Kn={};rt(Kn,{dateReviver:()=>ou,deepEqual:()=>Qt,delay:()=>bi,eventPathContainsMatchingElement:()=>nu,flatDeep:()=>Hl,hasChanged:()=>Oo,last:()=>au,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>So,waitUntil:()=>Gn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Gn(r,t=10,e=2e4){await So(async()=>await r()||void 0,t,e)}async function So(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Hl(r,t){return r.flatMap(e=>[e,...Hl(t(e),t)])}function ou(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function iu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!Qt(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!Qt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Qt(r,t){try{return iu(r,t)}catch{return!1}}function Oo(r,t){return!Qt(r,t)}function nu(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function au(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}var Z=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function de(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Oo,...t??{}})}function su(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return zl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function zl(r){return!isNaN(parseFloat(r))}var Ca={};rt(Ca,{designSystemVariables:()=>_});var Oa={};rt(Oa,{DesignSystemFamily:()=>mr,DesignSystemSize:()=>Ee,FtCssVariableFactory:()=>o,badge:()=>fu,banner:()=>uu,button:()=>b,chart:()=>Nu,checkbox:()=>Pu,chip:()=>du,chipChoice:()=>cu,collapsible:()=>Ru,comboboxMultiSelect:()=>wu,comboboxSingleSelect:()=>Eu,drawer:()=>vu,floatingMenu:()=>Cu,foundation:()=>c,link:()=>pu,modal:()=>bu,notice:()=>Tu,notification:()=>ku,pageDesigner:()=>Iu,pageFooter:()=>yu,pageHeader:()=>mu,pageLayout:()=>gu,popover:()=>Au,radio:()=>Lu,resolveFamilyClass:()=>xa,resolveSizeClass:()=>Sa,semantic:()=>u,setVariable:()=>x,switch_:()=>_u,tabs:()=>xu,textArea:()=>Ou,textInput:()=>Su,titleBreadcrumb:()=>hu,toggle:()=>$u,tooltip:()=>Du,typographies:()=>Eo,typographyBody1Medium:()=>ta,typographyBody1Regular:()=>Qn,typographyBody1Semibold:()=>ea,typographyBody2Medium:()=>oa,typographyBody2MediumUnderline:()=>Vl,typographyBody2Regular:()=>ra,typographyBody2Semibold:()=>ia,typographyCaption1Bold:()=>fa,typographyCaption1Medium:()=>pa,typographyCaption1Semibold:()=>ua,typographyCaption2Bold:()=>ya,typographyCaption2Medium:()=>ha,typographyCaption2Semibold:()=>ma,typographyCaption3Bold:()=>va,typographyCaption3Medium:()=>ga,typographyCaption3Semibold:()=>ba,typographyDisplay:()=>qn,typographyLabel1Bold:()=>sa,typographyLabel1Medium:()=>na,typographyLabel1Semibold:()=>aa,typographyLabel2Bold:()=>da,typographyLabel2Medium:()=>la,typographyLabel2Semibold:()=>ca,typographyTitle1:()=>Yn,typographyTitle2:()=>Xn,typographyTitle3:()=>Jn,typographyVariants:()=>lu});var Ce=r=>typeof r=="string"?ve(r):r,o=class{static create(t,e,i,n){let a=l=>Ce(l??n),s=L`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ce(a??t.lastResortDefaultValue()),n=L`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${Ce(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return Ce(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 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"),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)")},qn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Vl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ia={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Eo={display:qn,"title-1":Yn,"title-2":Xn,"title-3":Jn,"body-1-regular":Qn,"body-1-medium":ta,"body-1-semibold":ea,"body-2-regular":ra,"body-2-medium":oa,"body-2-medium-underline":Vl,"body-2-semibold":ia,"label-1-medium":na,"label-1-semibold":aa,"label-1-bold":sa,"label-2-medium":la,"label-2-semibold":ca,"label-2-bold":da,"caption-1-medium":pa,"caption-1-semibold":ua,"caption-1-bold":fa,"caption-2-medium":ha,"caption-2-semibold":ma,"caption-2-bold":ya,"caption-3-medium":ga,"caption-3-semibold":ba,"caption-3-bold":va},lu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
- 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 b={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 cu={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 du={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 pu={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 uu={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 fu={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 hu={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 mu={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 yu={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 gu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var bu={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 vu={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 xu={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 Su={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),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.borderRadiusM),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),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 Ou={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.borderRadiusM)};var Cu={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 Eu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),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.borderRadiusM),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 wu={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.borderRadiusM)};var Au={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),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),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")};var Ru={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 _u={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 Nu={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.colorCyan10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorRed10),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 Iu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Tu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Pu={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"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var $u={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 Lu={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"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ku={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 Du={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 mr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(mr||(mr={}));var Ee;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ee||(Ee={}));function xa(r){return`ftds--family-${r}`}function Sa(r){return`ftds--size-${r}`}var _={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 Ma={};rt(Ma,{computeFlipOffsetPosition:()=>of,computeOffsetPosition:()=>$o});var Gl=["top","right","bottom","left"],jl=["start","end"],Ea=Gl.reduce((r,t)=>r.concat(t,t+"-"+jl[0],t+"-"+jl[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var we=r=>({x:r,y:r}),Mu={left:"right",right:"left",bottom:"top",top:"bottom"},Fu={start:"end",end:"start"};function wa(r,t,e){return Be(r,Ro(t,e))}function Mr(r,t){return typeof r=="function"?r(t):r}function pe(r){return r.split("-")[0]}function ue(r){return r.split("-")[1]}function Aa(r){return r==="x"?"y":"x"}function Ra(r){return r==="y"?"height":"width"}function No(r){return["top","bottom"].includes(pe(r))?"y":"x"}function _a(r){return Aa(No(r))}function Na(r,t,e){e===void 0&&(e=!1);let i=ue(r),n=_a(r),a=Ra(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Kl(r){let t=Ao(r);return[wo(r),t,wo(t)]}function wo(r){return r.replace(/start|end/g,t=>Fu[t])}function Bu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Zl(r,t,e,i){let n=ue(r),a=Bu(pe(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(wo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>Mu[t])}function Uu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ql(r){return typeof r!="number"?Uu(r):{top:r,right:r,bottom:r,left:r}}function yr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Yl(r,t,e){let{reference:i,floating:n}=r,a=No(t),s=_a(t),l=Ra(s),d=pe(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(ue(t)){case"start":v[s]-=y*(e&&p?-1:1);break;case"end":v[s]+=y*(e&&p?-1:1);break}return v}var Xl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Yl(p,i,d),y=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:N,fn:T}=l[E],{x:P,y:w,data:C,reset:A}=await T({x:f,y:h,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=P??f,h=w??h,v={...v,[N]:{...v[N],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Yl(p,y,d)),E=-1;continue}}return{x:f,y:h,placement:y,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=Mr(t,r),S=ql(v),N=l[y?h==="floating"?"reference":"floating":h],T=yr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),P=h==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:w,strategy:d}):P);return{top:(T.top-A.top+S.top)/C.y,bottom:(A.bottom-T.bottom+S.bottom)/C.y,left:(T.left-A.left+S.left)/C.x,right:(A.right-T.right+S.right)/C.x}}function Wu(r,t,e){return(r?[...e.filter(n=>ue(n)===r),...e.filter(n=>ue(n)!==r)]:e.filter(n=>pe(n)===n)).filter(n=>r?ue(n)===r||(t?wo(n)!==n:!1):!0)}var Ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=Ea,autoAlignment:v=!0,...S}=Mr(r,t),E=h!==void 0||y===Ea?Wu(h||null,v,y):y,N=await Si(t,S),T=((e=s.autoPlacement)==null?void 0:e.index)||0,P=E[T];if(P==null)return{};let w=Na(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:E[0]}};let C=[N[pe(P)],N[w[0]],N[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:C}],k=E[T+1];if(k)return{data:{index:T+1,overflows:A},reset:{placement:k}};let W=A.map(F=>{let m=ue(F.placement);return[F.placement,m&&f?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,m)=>F[1]-m[1]),K=((n=W.filter(F=>F[2].slice(0,ue(F[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||W[0][0];return K!==l?{data:{index:T+1,overflows:A},reset:{placement:K}}:{}}}},Ta=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...N}=Mr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let T=pe(n),P=pe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=y||(P||!E?[Ao(l)]:Kl(l));!y&&S!=="none"&&C.push(...Zl(l,E,S,w));let A=[l,...C],k=await Si(t,N),W=[],Y=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&W.push(k[T]),h){let O=Na(n,s,w);W.push(k[O[0]],k[O[1]])}if(Y=[...Y,{placement:n,overflows:W}],!W.every(O=>O<=0)){var K,F;let O=(((K=a.flip)==null?void 0:K.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:Y},reset:{placement:D}};let G=(F=Y.filter(J=>J.overflows[0]<=0).sort((J,z)=>J.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!G)switch(v){case"bestFit":{var m;let J=(m=Y.map(z=>[z.placement,z.overflows.filter(ae=>ae>0).reduce((ae,oo)=>ae+oo,0)]).sort((z,ae)=>z[1]-ae[1])[0])==null?void 0:m[0];J&&(G=J);break}case"initialPlacement":G=l;break}if(n!==G)return{reset:{placement:G}}}return{}}}};async function Hu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=pe(e),l=ue(e),d=No(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Mr(t,r),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:y*p}:{x:y*p,y:v*f}}var Pa=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Hu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},$a=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:P}=N;return{x:T,y:P}}},...d}=Mr(r,t),p={x:e,y:i},f=await Si(t,d),h=No(pe(n)),y=Aa(h),v=p[y],S=p[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=v+f[N],w=v-f[T];v=wa(P,v,w)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",P=S+f[N],w=S-f[T];S=wa(P,S,w)}let E=l.fn({...t,[y]:v,[h]:S});return{...E,data:{x:E.x-e,y:E.y-i}}}}};function Ae(r){return Ql(r)?(r.nodeName||"").toLowerCase():"#document"}function Wt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Re(r){var t;return(t=(Ql(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ql(r){return r instanceof Node||r instanceof Wt(r).Node}function fe(r){return r instanceof Element||r instanceof Wt(r).Element}function te(r){return r instanceof HTMLElement||r instanceof Wt(r).HTMLElement}function Jl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Wt(r).ShadowRoot}function Fr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function tc(r){return["table","td","th"].includes(Ae(r))}function Ci(r){let t=Ei(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ec(r){let t=gr(r);for(;te(t)&&!Io(t);){if(Ci(t))return t;t=gr(t)}return null}function Ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(r){return["html","body","#document"].includes(Ae(r))}function Gt(r){return Wt(r).getComputedStyle(r)}function To(r){return fe(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(Ae(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Jl(r)&&r.host||Re(r);return Jl(t)?t.host:t}function rc(r){let t=gr(r);return Io(t)?r.ownerDocument?r.ownerDocument.body:r.body:te(t)&&Fr(t)?t:rc(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=rc(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Wt(n);return a?t.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function nc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=te(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function ac(r){return fe(r)?r:r.contextElement}function Br(r){let t=ac(r);if(!te(t))return we(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=nc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var zu=we(0);function sc(r){let t=Wt(r);return!Ei()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Wt(r)?!1:t}function Po(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=ac(r),s=we(1);t&&(i?fe(i)&&(s=Br(i)):s=Br(r));let l=Vu(a,e,i)?sc(a):we(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let y=Wt(a),v=i&&fe(i)?Wt(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let E=Br(S),N=S.getBoundingClientRect(),T=Gt(S),P=N.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,w=N.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=P,p+=w,S=Wt(S).frameElement}}return yr({width:f,height:h,x:d,y:p})}function ju(r){let{rect:t,offsetParent:e,strategy:i}=r,n=te(e),a=Re(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=we(1),d=we(0);if((n||!n&&i!=="fixed")&&((Ae(e)!=="body"||Fr(a))&&(s=To(e)),te(e))){let p=Po(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Gu(r){return Array.from(r.getClientRects())}function lc(r){return Po(Re(r)).left+To(r).scrollLeft}function Ku(r){let t=Re(r),e=To(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+lc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Zu(r,t){let e=Wt(r),i=Re(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ei();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function qu(r,t){let e=Po(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=te(r)?Br(r):we(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function oc(r,t,e){let i;if(t==="viewport")i=Zu(r,e);else if(t==="document")i=Ku(Re(r));else if(fe(t))i=qu(t,e);else{let n=sc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function cc(r,t){let e=gr(r);return e===t||!fe(e)||Io(e)?!1:Gt(e).position==="fixed"||cc(e,t)}function Yu(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>fe(l)&&Ae(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?gr(r):r;for(;fe(s)&&!Io(s);){let l=Gt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!d&&cc(r,s))?i=i.filter(f=>f!==s):n=l,s=gr(s)}return t.set(r,i),i}function Xu(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Yu(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=oc(t,f,n);return p.top=Be(h.top,p.top),p.right=Ro(h.right,p.right),p.bottom=Ro(h.bottom,p.bottom),p.left=Be(h.left,p.left),p},oc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ju(r){return nc(r)}function Qu(r,t,e){let i=te(t),n=Re(t),a=e==="fixed",s=Po(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=we(0);if(i||!i&&!a)if((Ae(t)!=="body"||Fr(n))&&(l=To(t)),i){let p=Po(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=lc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ic(r,t){return!te(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function dc(r,t){let e=Wt(r);if(!te(r))return e;let i=ic(r,t);for(;i&&tc(i)&&Gt(i).position==="static";)i=ic(i,t);return i&&(Ae(i)==="html"||Ae(i)==="body"&&Gt(i).position==="static"&&!Ci(i))?e:i||ec(r)||e}var tf=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||dc,a=this.getDimensions;return{reference:Qu(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function ef(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:ju,getDocumentElement:Re,getClippingRect:Xu,getOffsetParent:dc,getElementRects:tf,getClientRects:Gu,getDimensions:Ju,getScale:Br,isElement:fe,isRTL:ef};var La=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return Xl(r,t,{...n,platform:a})};function Da(r){return rf(r)}function ka(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function rf(r){for(let t=r;t;t=ka(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ka(r);t;t=ka(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $o(r,t,e){return La(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,Da)},middleware:[$a({crossAxis:!0}),Ia({allowedPlacements:[e]})]})}async function of(r,t,e,i,n){return La(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,Da)},middleware:[Pa(4),Ta({fallbackPlacements:i})]})}var Wa={};rt(Wa,{FtdsBase:()=>Ua,toFtdsBase:()=>Ri});var Ba={};rt(Ba,{FtLitElement:()=>j});var Fa={};rt(Fa,{ScopedRegistryLitElement:()=>Lo});var wi=window,nf=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tv=Symbol();var pc=(r,t)=>{nf?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Lo=class extends Se{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return pc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mc,uc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),hc=Symbol("dynamicDependenciesLoaded"),j=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[mc]=new st(5),this[fc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&Object.setPrototypeOf(this,this[uc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[hc]||(t[hc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[yc].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(t){var e,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=t.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(d).map(E=>E.trim()).forEach(E=>f.add(E))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};mc=yc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([de([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([U()],j.prototype,"useAdoptedStyleSheets",void 0);var gc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=Ee.medium,this.family=mr.neutral}getDesignSystemBaseClasses(){return{[xa(this.family)]:!0,[Sa(this.size)]:!0}}}return gc([g()],t.prototype,"size",void 0),gc([g()],t.prototype,"family",void 0),t}var Ua=class extends Ri(j){};var bc={};var Va={};rt(Va,{highlightHtml:()=>za,highlightHtmlColorCssVariable:()=>vc,highlightHtmlStyles:()=>sf});var br=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,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(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(p,f,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new br(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=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 t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.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,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.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(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return br.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),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(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+y,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,y=>e(y,l,a.value.substring(p,f),d),y=>{i(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(y,v)=>this.opt.filter(v,p,i,h),y=>{h++,i++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);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(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=br.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ha(r){let t=new ko(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var af=Ha,vc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),sf=L`
1
+ "use strict";(()=>{var yp=Object.create;var gn=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var vp=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var Sp=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)gn(r,e,{get:t[e],enumerable:!0})},Op=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of bp(t))!xp.call(r,n)&&n!==e&&gn(r,n,{get:()=>t[n],enumerable:!(i=gp(t,n))||i.enumerable});return r};var Cp=(r,t,e)=>(e=r!=null?yp(vp(r)):{},Op(t||!r||!r.__esModule?gn(e,"default",{value:r,enumerable:!0}):e,r));var td=Sp((Ge,Qc)=>{var Di=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mi=function(){function r(){this.fetch=!1,this.DOMException=Di.DOMException}return r.prototype=Di,new r}();(function(r){var t=function(e){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(m){return m&&DataView.prototype.isPrototypeOf(m)}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(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function f(m){var O={next:function(){var D=m.shift();return{done:D===void 0,value:D}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(m){this.map={},m instanceof h?m.forEach(function(O,D){this.append(D,O)},this):Array.isArray(m)?m.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(O){this.append(O,m[O])},this)}h.prototype.append=function(m,O){m=d(m),O=p(O);var D=this.map[m];this.map[m]=D?D+", "+O:O},h.prototype.delete=function(m){delete this.map[d(m)]},h.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},h.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},h.prototype.set=function(m,O){this.map[d(m)]=p(O)},h.prototype.forEach=function(m,O){for(var D in this.map)this.map.hasOwnProperty(D)&&m.call(O,this.map[D],D,this)},h.prototype.keys=function(){var m=[];return this.forEach(function(O,D){m.push(D)}),f(m)},h.prototype.values=function(){var m=[];return this.forEach(function(O){m.push(O)}),f(m)},h.prototype.entries=function(){var m=[];return this.forEach(function(O,D){m.push([D,O])}),f(m)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function v(m){return new Promise(function(O,D){m.onload=function(){O(m.result)},m.onerror=function(){D(m.error)}})}function S(m){var O=new FileReader,D=v(O);return O.readAsArrayBuffer(m),D}function w(m){var O=new FileReader,D=v(O),G=/charset=([A-Za-z0-9_-]+)/.exec(m.type),Q=G?G[1]:"utf-8";return O.readAsText(m,Q),D}function N(m){for(var O=new Uint8Array(m),D=new Array(O.length),G=0;G<O.length;G++)D[G]=String.fromCharCode(O[G]);return D.join("")}function T(m){if(m.slice)return m.slice(0);var O=new Uint8Array(m.byteLength);return O.set(new Uint8Array(m)),O.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="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(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=y(this);if(m)return m;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 m=y(this);return m||(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(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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 E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(m){var O=m.toUpperCase();return E.indexOf(O)>-1?O:m}function A(m,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var D=O.body;if(m instanceof A){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,O.headers||(this.headers=new h(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!D&&m._bodyInit!=null&&(D=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=C(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function k(m){var O=new FormData;return m.trim().split("&").forEach(function(D){if(D){var G=D.split("="),Q=G.shift().replace(/\+/g," "),V=G.join("=").replace(/\+/g," ");O.append(decodeURIComponent(Q),decodeURIComponent(V))}}),O}function H(m){var O=new h,D=m.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(G){return G.indexOf(`
2
+ `)===0?G.substr(1,G.length):G}).forEach(function(G){var Q=G.split(":"),V=Q.shift().trim();if(V){var se=Q.join(":").trim();try{O.append(V,se)}catch(oo){console.warn("Response "+oo.message)}}}),O}P.call(A.prototype);function X(m,O){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(m)}P.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},X.error=function(){var m=new X(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var q=[301,302,303,307,308];X.redirect=function(m,O){if(q.indexOf(O)===-1)throw new RangeError("Invalid status code");return new X(null,{status:O,headers:{location:m}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var G=Error(O);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(m,O){return new Promise(function(D,G){var Q=new A(m,O);if(Q.signal&&Q.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function se(){V.abort()}V.onload=function(){var _t={statusText:V.statusText,headers:H(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?_t.status=200:_t.status=V.status,_t.url="responseURL"in V?V.responseURL:_t.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new X(er,_t))},0)},V.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){G(new e.DOMException("Aborted","AbortError"))},0)};function oo(_t){try{return _t===""&&i.location.href?i.location.href:_t}catch{return _t}}if(V.open(Q.method,oo(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Qs=[];Object.getOwnPropertyNames(O.headers).forEach(function(_t){Qs.push(d(_t)),V.setRequestHeader(_t,p(O.headers[_t]))}),Q.headers.forEach(function(_t,er){Qs.indexOf(er)===-1&&V.setRequestHeader(er,_t)})}else Q.headers.forEach(function(_t,er){V.setRequestHeader(er,_t)});Q.signal&&(Q.signal.addEventListener("abort",se),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",se)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=h,i.Request=A,i.Response=X),e.Headers=h,e.Request=A,e.Response=X,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Gr=Di.fetch?Di:Mi;Ge=Gr.fetch;Ge.default=Gr.fetch;Ge.fetch=Gr.fetch;Ge.Headers=Gr.Headers;Ge.Request=Gr.Request;Ge.Response=Gr.Response;Qc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=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(E,C){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);y(C,k,A);let H={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(E,H),this._definitionsByClass.set(C,H);let X=e.call(i,E);X||(X=h(E),t.call(i,E,X)),this===window.customElements&&(s.set(C,H),H.standInClass=X);let q=this._awaitingUpgrade.get(E);if(q){this._awaitingUpgrade.delete(E);for(let m of q)a.delete(m),S(m,H,!0)}let F=this._whenDefinedPromises.get(E);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){N.push(this),i.upgrade.apply(i,arguments),N.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let A=this._whenDefinedPromises.get(E);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(E,A)),A.promise}_upgradeWhenDefined(E,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(E):k.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;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 C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=E=>E===document||E instanceof ShadowRoot,f=E=>{let C=E.getRootNode();if(!p(C)){let A=N[N.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},h=E=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=f(A)||window.customElements,H=k._getDefinition(E);return H?S(A,H):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!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)}},y=(E,C,A)=>{if(C.size===0||A===void 0)return;let k=E.prototype.setAttribute;k&&(E.prototype.setAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);k.call(this,m,F),A.call(this,m,O,F)}else k.call(this,m,F)});let H=E.prototype.removeAttribute;H&&(E.prototype.removeAttribute=function(q){let F=q.toLowerCase();if(C.has(F)){let m=this.getAttribute(F);H.call(this,F),A.call(this,F,m,null)}else H.call(this,F)});let X=E.prototype.toggleAttribute;X&&(E.prototype.toggleAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);X.call(this,m,F);let D=this.getAttribute(m);A.call(this,m,O,D)}else X.call(this,m,F)})},v=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):v(C)},S=(E,C,A=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{E.hasAttribute(k)&&C.attributeChangedCallback.call(E,k,null,E.getAttribute(k))}),A&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let N=[document],T=(E,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):E.prototype)[C];E.prototype[C]=function(){N.push(this);let H=k.apply(A||this,arguments);return H!==void 0&&l.set(H,this),N.pop(),H}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let P=(E,C)=>{let A=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...A,set(k){N.push(this),A.set.call(this,k),N.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...q){let F=C.call(this,...q);return E.set(F,this),F},A.forEach(q=>{let F=window.ElementInternals.prototype,m=F[q];F[q]=function(...O){let D=E.get(this);if(n.get(D).formAssociated===!0)return m?.call(this,...O);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class H{constructor(F){let m=new Map;F.forEach((O,D)=>{let G=O.getAttribute("name"),Q=m.get(G)||[];this[+D]=O,Q.push(O),m.set(G,Q)}),this.length=F.length,m.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let X=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let q=X.get.call(this,[]),F=[];for(let m of q){let O=n.get(m);(!O||O.formAssociated===!0)&&F.push(m)}return new H(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var In={};rt(In,{CSSResult:()=>$r,LitElement:()=>Oe,ReactiveElement:()=>le,_$LE:()=>Kp,_$LH:()=>Vp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>uo,html:()=>$,isServer:()=>$h,noChange:()=>ke,notEqual:()=>wn,nothing:()=>U,render:()=>Nn,supportsAdoptingStyleSheets:()=>po,svg:()=>zp,unsafeCSS:()=>xe});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,el=Symbol(),tl=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==el)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=tl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tl.set(e,t))}return t}toString(){return this.cssText}},rl=r=>new qo(typeof r=="string"?r:r+"",void 0,el);var bn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return rl(e)})(r):r;var{is:wp,defineProperty:Ep,getOwnPropertyDescriptor:Ap,getOwnPropertyNames:Rp,getOwnPropertySymbols:_p,getPrototypeOf:Np}=Object,Jo=globalThis,ol=Jo.trustedTypes,Ip=ol?ol.emptyScript:"",Tp=Jo.reactiveElementPolyfillSupport,io=(r,t)=>r,no={toAttribute(r,t){switch(t){case Boolean:r=r?Ip:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!wp(r,t),il={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=il){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Ep(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Ap(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??il}static _$Ei(){if(this.hasOwnProperty(io("elementProperties")))return;let t=Np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let e=this.properties,i=[...Rp(e),..._p(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:no).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);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:no;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[io("elementProperties")]=new Map,rr[io("finalized")]=new Map,Tp?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var xn=globalThis,ti=xn.trustedTypes,nl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,On="?"+ve,$p=`<${On}>`,nr=document,ei=()=>nr.createComment(""),so=r=>r===null||typeof r!="object"&&typeof r!="function",pl=Array.isArray,ul=r=>pl(r)||typeof r?.[Symbol.iterator]=="function",vn=`[
3
+ \f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,al=/-->/g,sl=/>/g,or=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ll=/'/g,cl=/"/g,fl=/^(?:script|style|textarea|title)$/i,hl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ml=hl(1),yl=hl(2),jt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),dl=new WeakMap,ir=nr.createTreeWalker(nr,129);function gl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nl!==void 0?nl.createHTML(t):t}var bl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ao;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ao?f[1]==="!--"?s=al:f[1]!==void 0?s=sl:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??ao,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?cl:ll):s===cl||s===ll?s=or:s===al||s===sl?s=ao:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?d+$p:h>=0?(i.push(p),d.slice(0,h)+Sn+d.slice(h)+ve+v):d+ve+(h===-2?l:v)}return[gl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},lo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=bl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Sn)){let y=f[s++],v=n.getAttribute(h).split(ve),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(h)}else h.startsWith(ve)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(ve),y=h.length-1;if(y>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[y],ei())}}}else if(n.nodeType===8)if(n.data===On)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ve,h+1))!==-1;)d.push({type:7,index:a}),h+=ve.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=so(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new co(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},co=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),so(t)?t===ht||t==null||t===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ul(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ht&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=dl.get(t.strings);return e===void 0&&dl.set(t.strings,e=new lo(t)),e}T(t){pl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,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=ht}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!so(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===ht?t=ht:t!==ht&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ht?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??ht)===jt)return;let i=this._$AH,n=t===ht&&i!==ht||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ht&&(i===ht||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},vl={j:Sn,P:ve,A:On,C:1,M:bl,L:ri,R:ul,V:ar,D:co,I:sr,H:ii,N:ni,U:oi,B:ai},Pp=xn.litHtmlPolyfillSupport;Pp?.(lo,co),(xn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,po=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cn=Symbol(),xl=new WeakMap,$r=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Cn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(po&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=xl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xl.set(e,t))}return t}toString(){return this.cssText}},xe=r=>new $r(typeof r=="string"?r:r+"",void 0,Cn),L=(r,...t)=>{let e=r.length===1?r[0]:t.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 $r(e,r,Cn)},li=(r,t)=>{if(po)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},uo=po?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return xe(e)})(r):r;var{is:Lp,defineProperty:kp,getOwnPropertyDescriptor:Dp,getOwnPropertyNames:Mp,getOwnPropertySymbols:Fp,getPrototypeOf:Bp}=Object,di=globalThis,Sl=di.trustedTypes,Up=Sl?Sl.emptyScript:"",Wp=di.reactiveElementPolyfillSupport,fo=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?Up:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},wn=(r,t)=>!Lp(r,t),Ol={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:wn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var le=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ol){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&kp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Dp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ol}static _$Ei(){if(this.hasOwnProperty(fo("elementProperties")))return;let t=Bp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fo("properties"))){let e=this.properties,i=[...Mp(e),...Fp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(uo(n))}else t!==void 0&&e.push(uo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);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:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??wn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[fo("elementProperties")]=new Map,le[fo("finalized")]=new Map,Wp?.({ReactiveElement:le}),(di.reactiveElementVersions??=[]).push("2.0.2");var An=globalThis,pi=An.trustedTypes,Cl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,Rn="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,_n="?"+Se,Hp=`<${_n}>`,dr=document,mo=()=>dr.createComment(""),yo=r=>r===null||typeof r!="object"&&typeof r!="function",Nl=Array.isArray,Il=r=>Nl(r)||typeof r?.[Symbol.iterator]=="function",En=`[
5
+ \f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wl=/-->/g,El=/>/g,lr=RegExp(`>|${En}(?:([^\\s"'>=/]+)(${En}*=${En}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Tl=/^(?:script|style|textarea|title)$/i,$l=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=$l(1),zp=$l(2),ke=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),_l=new WeakMap,cr=dr.createTreeWalker(dr,129);function Pl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(t):t}var Ll=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ho;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ho?f[1]==="!--"?s=wl:f[1]!==void 0?s=El:f[2]!==void 0?(Tl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??ho,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?Rl:Al):s===Rl||s===Al?s=lr:s===wl||s===El?s=ho:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===ho?d+Hp:h>=0?(i.push(p),d.slice(0,h)+Rn+d.slice(h)+Se+v):d+Se+(h===-2?l:v)}return[Pl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},go=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=Ll(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Rn)){let y=f[s++],v=n.getAttribute(h).split(Se),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(h)}else h.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Tl.test(n.tagName)){let h=n.textContent.split(Se),y=h.length-1;if(y>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],mo()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[y],mo())}}}else if(n.nodeType===8)if(n.data===_n)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Se,h+1))!==-1;)d.push({type:7,index:a}),h+=Se.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=yo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Pr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Pr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),yo(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Il(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&yo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=go.createElement(Pl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=_l.get(t.strings);return e===void 0&&_l.set(t.strings,e=new go(t)),e}T(t){Nl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(mo()),this.k(mo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,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=U}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!yo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!yo(p)||p!==this._$AH[d],p===U?t=U:t!==U&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===U?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??U)===ke)return;let i=this._$AH,n=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==U&&(i===U||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},Vp={j:Rn,P:Se,A:_n,C:1,M:Ll,L:ui,R:Il,V:pr,D:Pr,I:ur,H:hi,N:mi,U:fi,B:yi},jp=An.litHtmlPolyfillSupport;jp?.(go,Pr),(An.litHtmlVersions??=[]).push("3.1.0");var Nn=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new Pr(t.insertBefore(mo(),a),a,void 0,e??{})}return n._$AI(r),n};var Oe=class extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Nn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Oe._$litElement$=!0,Oe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Oe});var Gp=globalThis.litElementPolyfillSupport;Gp?.({LitElement:Oe});var Kp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var $h=!1;var $n={};rt($n,{customElement:()=>Zp,eventOptions:()=>Ce,property:()=>g,query:()=>J,queryAll:()=>Xp,queryAssignedElements:()=>Tn,queryAssignedNodes:()=>bo,queryAsync:()=>Jp,standardProperty:()=>kl,state:()=>W});var Zp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var qp={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo},kl=(r=qp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?kl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function W(r){return g({...r,state:!0,attribute:!1})}function Ce(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function J(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Qt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Qt(e,i,{get(){return a(this)}})}}var Yp;function Xp(r){return(t,e)=>Qt(t,e,{get(){return(this.renderRoot??(Yp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Jp(r){return(t,e)=>Qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Tn(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function bo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Ln={};rt(Ln,{repeat:()=>Pn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),ce=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Qp}=vl;var Dl=()=>document.createComment(""),Lr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Dl(),n),s=i.insertBefore(Dl(),n);e=new Qp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),tu={},Ml=(r,t=tu)=>r._$AH=t,Fl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Bl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Pn=Me(class extends ce{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Fl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,y=n.length-1,v=0,S=a.length-1;for(;h<=y&&v<=S;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[v])d[v]=Fe(n[h],a[v]),h++,v++;else if(l[y]===s[S])d[S]=Fe(n[y],a[S]),y--,S--;else if(l[h]===s[S])d[S]=Fe(n[h],a[S]),Lr(r,d[S+1],n[h]),h++,S--;else if(l[y]===s[v])d[v]=Fe(n[y],a[v]),Lr(r,n[h],n[y]),y--,v++;else if(p===void 0&&(p=Bl(s,v,S),f=Bl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let w=f.get(s[v]),N=w!==void 0?n[w]:null;if(N===null){let T=Lr(r,n[h]);Fe(T,a[v]),d[v]=T}else d[v]=Fe(N,a[v]),Lr(r,n[h],N),n[w]=null;v++}else gi(n[y]),y--;else gi(n[h]),h++;for(;v<=S;){let w=Lr(r,d[S+1]);Fe(w,a[v]),d[v++]=w}for(;h<=y;){let w=n[h++];w!==null&&gi(w)}return this.dt=s,Ml(r,d),jt}});var kn={};rt(kn,{classMap:()=>Rt});var Rt=Me(class extends ce{constructor(r){if(super(r),r.type!==De.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(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var Dn={};rt(Dn,{styleMap:()=>ru});var Ul="important",eu=" !"+Ul,ru=Me(class extends ce{constructor(r){if(super(r),r.type!==De.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((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(eu);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Ul:""):e[i]=n}}return jt}});var Fn={};rt(Fn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>Mn});var kr=class extends ce{constructor(t){if(super(t),this.et=ht,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ht||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var Mn=Me(kr);var Vn={};rt(Vn,{CacheRegistry:()=>de,ClearCacheEvent:()=>vo});var Un={};rt(Un,{CancelablePromise:()=>Dr,CanceledPromiseError:()=>fr,cancelable:()=>Bn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Dr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Bn=r=>new Dr((t,e)=>r.then(t).catch(e));var zn={};rt(zn,{FtNotificationEvent:()=>Mt,PostResizeEvent:()=>Hn,PreResizeEvent:()=>Wn,WithEventBus:()=>hr,withEventBus:()=>Wl});var Mt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Wn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Hn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Wl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends Wl(Object){};var vo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},de=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new vo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new vo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Dr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Bn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var jn={};rt(jn,{ClusteringHelper:()=>xo});var xo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(y=>y.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Gn={};rt(Gn,{Debouncer:()=>st});var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>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 qn={};rt(qn,{customElement:()=>Y,isNumber:()=>zl,jsonProperty:()=>pe,optionalNumberProperty:()=>su});var Zn={};rt(Zn,{dateReviver:()=>ou,deepEqual:()=>te,delay:()=>bi,eventPathContainsMatchingElement:()=>nu,flatDeep:()=>Hl,hasChanged:()=>Oo,last:()=>au,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>So,waitUntil:()=>Kn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Kn(r,t=10,e=2e4){await So(async()=>await r()||void 0,t,e)}async function So(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Hl(r,t){return r.flatMap(e=>[e,...Hl(t(e),t)])}function ou(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function iu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!te(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!te(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!te(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function te(r,t){try{return iu(r,t)}catch{return!1}}function Oo(r,t){return!te(r,t)}function nu(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function au(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}var Y=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function pe(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Oo,...t??{}})}function su(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return zl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function zl(r){return!isNaN(parseFloat(r))}var wa={};rt(wa,{designSystemVariables:()=>_});var Ca={};rt(Ca,{DesignSystemFamily:()=>mr,DesignSystemSize:()=>Ee,FtCssVariableFactory:()=>o,badge:()=>fu,banner:()=>uu,button:()=>b,chart:()=>Nu,checkbox:()=>$u,chip:()=>du,chipChoice:()=>cu,collapsible:()=>Ru,comboboxMultiSelect:()=>Eu,comboboxSingleSelect:()=>wu,drawer:()=>vu,floatingMenu:()=>Cu,foundation:()=>c,link:()=>pu,modal:()=>bu,notice:()=>Tu,notification:()=>ku,pageDesigner:()=>Iu,pageFooter:()=>yu,pageHeader:()=>mu,pageLayout:()=>gu,popover:()=>Au,radio:()=>Lu,resolveFamilyClass:()=>Sa,resolveSizeClass:()=>Oa,semantic:()=>u,setVariable:()=>x,switch_:()=>_u,tabs:()=>xu,textArea:()=>Ou,textInput:()=>Su,titleBreadcrumb:()=>hu,toggle:()=>Pu,tooltip:()=>Du,typographies:()=>wo,typographyBody1Medium:()=>ea,typographyBody1Regular:()=>ta,typographyBody1Semibold:()=>ra,typographyBody2Medium:()=>ia,typographyBody2MediumUnderline:()=>Vl,typographyBody2Regular:()=>oa,typographyBody2Semibold:()=>na,typographyCaption1Bold:()=>ha,typographyCaption1Medium:()=>ua,typographyCaption1Semibold:()=>fa,typographyCaption2Bold:()=>ga,typographyCaption2Medium:()=>ma,typographyCaption2Semibold:()=>ya,typographyCaption3Bold:()=>xa,typographyCaption3Medium:()=>ba,typographyCaption3Semibold:()=>va,typographyDisplay:()=>Yn,typographyLabel1Bold:()=>la,typographyLabel1Medium:()=>aa,typographyLabel1Semibold:()=>sa,typographyLabel2Bold:()=>pa,typographyLabel2Medium:()=>ca,typographyLabel2Semibold:()=>da,typographyTitle1:()=>Xn,typographyTitle2:()=>Jn,typographyTitle3:()=>Qn,typographyVariants:()=>lu});var we=r=>typeof r=="string"?xe(r):r,o=class{static create(t,e,i,n){let a=l=>we(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):we(a??t.lastResortDefaultValue()),n=L`var(${we(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${we(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return we(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 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"),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)")},Yn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Vl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},na={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},wo={display:Yn,"title-1":Xn,"title-2":Jn,"title-3":Qn,"body-1-regular":ta,"body-1-medium":ea,"body-1-semibold":ra,"body-2-regular":oa,"body-2-medium":ia,"body-2-medium-underline":Vl,"body-2-semibold":na,"label-1-medium":aa,"label-1-semibold":sa,"label-1-bold":la,"label-2-medium":ca,"label-2-semibold":da,"label-2-bold":pa,"caption-1-medium":ua,"caption-1-semibold":fa,"caption-1-bold":ha,"caption-2-medium":ma,"caption-2-semibold":ya,"caption-2-bold":ga,"caption-3-medium":ba,"caption-3-semibold":va,"caption-3-bold":xa},lu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ 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 b={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 cu={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 du={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 pu={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 uu={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 fu={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 hu={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 mu={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 yu={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 gu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var bu={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 vu={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 xu={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 Su={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),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.borderRadiusM),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),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 Ou={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.borderRadiusM)};var Cu={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 wu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),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.borderRadiusM),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 Eu={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.borderRadiusM)};var Au={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),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),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")};var Ru={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 _u={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 Nu={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.colorCyan10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorRed10),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 Iu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Tu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var $u={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"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Pu={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 Lu={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"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ku={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 Du={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 mr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(mr||(mr={}));var Ee;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ee||(Ee={}));function Sa(r){return`ftds--family-${r}`}function Oa(r){return`ftds--size-${r}`}var _={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 Fa={};rt(Fa,{computeFlipOffsetPosition:()=>of,computeOffsetPosition:()=>Po});var Gl=["top","right","bottom","left"],jl=["start","end"],Ea=Gl.reduce((r,t)=>r.concat(t,t+"-"+jl[0],t+"-"+jl[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var Ae=r=>({x:r,y:r}),Mu={left:"right",right:"left",bottom:"top",top:"bottom"},Fu={start:"end",end:"start"};function Aa(r,t,e){return Be(r,Ro(t,e))}function Mr(r,t){return typeof r=="function"?r(t):r}function ue(r){return r.split("-")[0]}function fe(r){return r.split("-")[1]}function Ra(r){return r==="x"?"y":"x"}function _a(r){return r==="y"?"height":"width"}function No(r){return["top","bottom"].includes(ue(r))?"y":"x"}function Na(r){return Ra(No(r))}function Ia(r,t,e){e===void 0&&(e=!1);let i=fe(r),n=Na(r),a=_a(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Kl(r){let t=Ao(r);return[Eo(r),t,Eo(t)]}function Eo(r){return r.replace(/start|end/g,t=>Fu[t])}function Bu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Zl(r,t,e,i){let n=fe(r),a=Bu(ue(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Eo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>Mu[t])}function Uu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ql(r){return typeof r!="number"?Uu(r):{top:r,right:r,bottom:r,left:r}}function yr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Yl(r,t,e){let{reference:i,floating:n}=r,a=No(t),s=Na(t),l=_a(s),d=ue(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(fe(t)){case"start":v[s]-=y*(e&&p?-1:1);break;case"end":v[s]+=y*(e&&p?-1:1);break}return v}var Xl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Yl(p,i,d),y=i,v={},S=0;for(let w=0;w<l.length;w++){let{name:N,fn:T}=l[w],{x:P,y:E,data:C,reset:A}=await T({x:f,y:h,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=P??f,h=E??h,v={...v,[N]:{...v[N],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Yl(p,y,d)),w=-1;continue}}return{x:f,y:h,placement:y,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=Mr(t,r),S=ql(v),N=l[y?h==="floating"?"reference":"floating":h],T=yr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),P=h==="floating"?{...s.floating,x:i,y:n}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},A=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:E,strategy:d}):P);return{top:(T.top-A.top+S.top)/C.y,bottom:(A.bottom-T.bottom+S.bottom)/C.y,left:(T.left-A.left+S.left)/C.x,right:(A.right-T.right+S.right)/C.x}}function Wu(r,t,e){return(r?[...e.filter(n=>fe(n)===r),...e.filter(n=>fe(n)!==r)]:e.filter(n=>ue(n)===n)).filter(n=>r?fe(n)===r||(t?Eo(n)!==n:!1):!0)}var Ta=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=Ea,autoAlignment:v=!0,...S}=Mr(r,t),w=h!==void 0||y===Ea?Wu(h||null,v,y):y,N=await Si(t,S),T=((e=s.autoPlacement)==null?void 0:e.index)||0,P=w[T];if(P==null)return{};let E=Ia(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:w[0]}};let C=[N[ue(P)],N[E[0]],N[E[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:C}],k=w[T+1];if(k)return{data:{index:T+1,overflows:A},reset:{placement:k}};let H=A.map(F=>{let m=fe(F.placement);return[F.placement,m&&f?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,m)=>F[1]-m[1]),q=((n=H.filter(F=>F[2].slice(0,fe(F[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||H[0][0];return q!==l?{data:{index:T+1,overflows:A},reset:{placement:q}}:{}}}},$a=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,...N}=Mr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let T=ue(n),P=ue(l)===l,E=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=y||(P||!w?[Ao(l)]:Kl(l));!y&&S!=="none"&&C.push(...Zl(l,w,S,E));let A=[l,...C],k=await Si(t,N),H=[],X=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&H.push(k[T]),h){let O=Ia(n,s,E);H.push(k[O[0]],k[O[1]])}if(X=[...X,{placement:n,overflows:H}],!H.every(O=>O<=0)){var q,F;let O=(((q=a.flip)==null?void 0:q.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:X},reset:{placement:D}};let G=(F=X.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!G)switch(v){case"bestFit":{var m;let Q=(m=X.map(V=>[V.placement,V.overflows.filter(se=>se>0).reduce((se,oo)=>se+oo,0)]).sort((V,se)=>V[1]-se[1])[0])==null?void 0:m[0];Q&&(G=Q);break}case"initialPlacement":G=l;break}if(n!==G)return{reset:{placement:G}}}return{}}}};async function Hu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ue(e),l=fe(e),d=No(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Mr(t,r),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:y*p}:{x:y*p,y:v*f}}var Pa=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Hu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},La=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:P}=N;return{x:T,y:P}}},...d}=Mr(r,t),p={x:e,y:i},f=await Si(t,d),h=No(ue(n)),y=Ra(h),v=p[y],S=p[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=v+f[N],E=v-f[T];v=Aa(P,v,E)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",P=S+f[N],E=S-f[T];S=Aa(P,S,E)}let w=l.fn({...t,[y]:v,[h]:S});return{...w,data:{x:w.x-e,y:w.y-i}}}}};function Re(r){return Ql(r)?(r.nodeName||"").toLowerCase():"#document"}function Wt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function _e(r){var t;return(t=(Ql(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ql(r){return r instanceof Node||r instanceof Wt(r).Node}function he(r){return r instanceof Element||r instanceof Wt(r).Element}function ee(r){return r instanceof HTMLElement||r instanceof Wt(r).HTMLElement}function Jl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Wt(r).ShadowRoot}function Fr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function tc(r){return["table","td","th"].includes(Re(r))}function Ci(r){let t=wi(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ec(r){let t=gr(r);for(;ee(t)&&!Io(t);){if(Ci(t))return t;t=gr(t)}return null}function wi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(r){return["html","body","#document"].includes(Re(r))}function Gt(r){return Wt(r).getComputedStyle(r)}function To(r){return he(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(Re(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Jl(r)&&r.host||_e(r);return Jl(t)?t.host:t}function rc(r){let t=gr(r);return Io(t)?r.ownerDocument?r.ownerDocument.body:r.body:ee(t)&&Fr(t)?t:rc(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=rc(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Wt(n);return a?t.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function nc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ee(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function ac(r){return he(r)?r:r.contextElement}function Br(r){let t=ac(r);if(!ee(t))return Ae(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=nc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var zu=Ae(0);function sc(r){let t=Wt(r);return!wi()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Wt(r)?!1:t}function $o(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=ac(r),s=Ae(1);t&&(i?he(i)&&(s=Br(i)):s=Br(r));let l=Vu(a,e,i)?sc(a):Ae(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let y=Wt(a),v=i&&he(i)?Wt(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let w=Br(S),N=S.getBoundingClientRect(),T=Gt(S),P=N.left+(S.clientLeft+parseFloat(T.paddingLeft))*w.x,E=N.top+(S.clientTop+parseFloat(T.paddingTop))*w.y;d*=w.x,p*=w.y,f*=w.x,h*=w.y,d+=P,p+=E,S=Wt(S).frameElement}}return yr({width:f,height:h,x:d,y:p})}function ju(r){let{rect:t,offsetParent:e,strategy:i}=r,n=ee(e),a=_e(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=Ae(1),d=Ae(0);if((n||!n&&i!=="fixed")&&((Re(e)!=="body"||Fr(a))&&(s=To(e)),ee(e))){let p=$o(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Gu(r){return Array.from(r.getClientRects())}function lc(r){return $o(_e(r)).left+To(r).scrollLeft}function Ku(r){let t=_e(r),e=To(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+lc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Zu(r,t){let e=Wt(r),i=_e(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=wi();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function qu(r,t){let e=$o(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=ee(r)?Br(r):Ae(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function oc(r,t,e){let i;if(t==="viewport")i=Zu(r,e);else if(t==="document")i=Ku(_e(r));else if(he(t))i=qu(t,e);else{let n=sc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function cc(r,t){let e=gr(r);return e===t||!he(e)||Io(e)?!1:Gt(e).position==="fixed"||cc(e,t)}function Yu(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>he(l)&&Re(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?gr(r):r;for(;he(s)&&!Io(s);){let l=Gt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!d&&cc(r,s))?i=i.filter(f=>f!==s):n=l,s=gr(s)}return t.set(r,i),i}function Xu(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Yu(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=oc(t,f,n);return p.top=Be(h.top,p.top),p.right=Ro(h.right,p.right),p.bottom=Ro(h.bottom,p.bottom),p.left=Be(h.left,p.left),p},oc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ju(r){return nc(r)}function Qu(r,t,e){let i=ee(t),n=_e(t),a=e==="fixed",s=$o(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Ae(0);if(i||!i&&!a)if((Re(t)!=="body"||Fr(n))&&(l=To(t)),i){let p=$o(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=lc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ic(r,t){return!ee(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function dc(r,t){let e=Wt(r);if(!ee(r))return e;let i=ic(r,t);for(;i&&tc(i)&&Gt(i).position==="static";)i=ic(i,t);return i&&(Re(i)==="html"||Re(i)==="body"&&Gt(i).position==="static"&&!Ci(i))?e:i||ec(r)||e}var tf=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||dc,a=this.getDimensions;return{reference:Qu(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function ef(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:ju,getDocumentElement:_e,getClippingRect:Xu,getOffsetParent:dc,getElementRects:tf,getClientRects:Gu,getDimensions:Ju,getScale:Br,isElement:he,isRTL:ef};var ka=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return Xl(r,t,{...n,platform:a})};function Ma(r){return rf(r)}function Da(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function rf(r){for(let t=r;t;t=Da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Da(r);t;t=Da(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Po(r,t,e){return ka(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,Ma)},middleware:[La({crossAxis:!0}),Ta({allowedPlacements:[e]})]})}async function of(r,t,e,i,n){return ka(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,Ma)},middleware:[Pa(4),$a({fallbackPlacements:i})]})}var Ha={};rt(Ha,{FtdsBase:()=>Wa,toFtdsBase:()=>Ri});var Ua={};rt(Ua,{FtLitElement:()=>j});var Ba={};rt(Ba,{ScopedRegistryLitElement:()=>Lo});var Ei=window,nf=Ei.ShadowRoot&&(Ei.ShadyCSS===void 0||Ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tv=Symbol();var pc=(r,t)=>{nf?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=Ei.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Lo=class extends Oe{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return pc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mc,uc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),hc=Symbol("dynamicDependenciesLoaded"),j=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[mc]=new st(5),this[fc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&Object.setPrototypeOf(this,this[uc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[hc]||(t[hc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[yc].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(t){var e,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=t.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(d).map(w=>w.trim()).forEach(w=>f.add(w))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};mc=yc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([pe([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([W()],j.prototype,"useAdoptedStyleSheets",void 0);var gc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=Ee.medium,this.family=mr.neutral}getDesignSystemBaseClasses(){return{[Sa(this.family)]:!0,[Oa(this.size)]:!0}}}return gc([g()],t.prototype,"size",void 0),gc([g()],t.prototype,"family",void 0),t}var Wa=class extends Ri(j){};var bc={};var ja={};rt(ja,{highlightHtml:()=>Va,highlightHtmlColorCssVariable:()=>vc,highlightHtmlStyles:()=>sf});var br=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,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(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(p,f,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new br(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=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 t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.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,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.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(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return br.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),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(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+y,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,y=>e(y,l,a.value.substring(p,f),d),y=>{i(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(y,v)=>this.opt.filter(v,p,i,h),y=>{h++,i++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);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(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=br.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function za(r){let t=new ko(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var af=za,vc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),sf=L`
8
8
  .highlight-html-match {
9
9
  background: ${vc};
10
10
  }
11
- `;function za(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new af(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let f in e.attributes)p.setAttribute(f,e.attributes[f])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Ga={};rt(Ga,{noTextInputDefaultClearButton:()=>ja,noTextSelect:()=>vr,safariEllipsisFix:()=>xr,wordWrap:()=>lf});var vr=L`
11
+ `;function Va(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new af(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let f in e.attributes)p.setAttribute(f,e.attributes[f])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Ka={};rt(Ka,{noTextInputDefaultClearButton:()=>Ga,noTextSelect:()=>vr,safariEllipsisFix:()=>xr,wordWrap:()=>lf});var vr=L`
12
12
  .ft-no-text-select {
13
13
  -webkit-touch-callout: none;
14
14
  -webkit-user-select: none;
@@ -40,14 +40,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
40
40
  display: inline-block;
41
41
  width: 0;
42
42
  }
43
- `,ja=L`
43
+ `,Ga=L`
44
44
  input::-webkit-search-cancel-button,
45
45
  input::-webkit-search-decoration,
46
46
  input::-webkit-search-results-button,
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var xc={};var Ka={};rt(Ka,{ParametrizedLabelResolver:()=>Do});var Do=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var vs={};rt(vs,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ne,clearAllStores:()=>Gf,isFtReduxStore:()=>Sr,redux:()=>ct,reduxEventListener:()=>Mo,reduxReactive:()=>cf});var cf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:Oo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Mo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Fo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Sr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sc,Oc,Cc,_i=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Or=Symbol("internalStores"),Zt=class extends j{constructor(){super(...arguments),this[Sc]=new Map,this[Oc]=new Map,this[Cc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Or].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Or].get(t)}addStore(t,e){var i;e=(i=e??(Sr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Or].delete(e)}setupStore(t,e){this[Or].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Or].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),Sr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[_i].push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[_i].forEach(t=>t()),this[_i]=[]}unsubscribeFromStore(t){this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Sc=Ue,Oc=Or,Cc=_i;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(r){return!!r&&!!r[dt]}function ee(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===gf}(r)||Array.isArray(r)||!!r[Ic]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ic])||rs(r)||os(r))}function Cr(r,t,e){e===void 0&&(e=!1),zr(r)===0?(e?Object.keys:Hr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function zr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:rs(r)?2:os(r)?3:0}function Wr(r,t){return zr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function df(r,t){return zr(r)===2?r.get(t):r[t]}function Tc(r,t,e){var i=zr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Pc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function rs(r){return mf&&r instanceof Map}function os(r){return yf&&r instanceof Set}function We(r){return r.o||r.t}function is(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=kc(r);delete t[dt];for(var e=Hr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function ns(r,t){return t===void 0&&(t=!1),as(r)||_e(r)||!ee(r)||(zr(r)>1&&(r.set=r.add=r.clear=r.delete=pf),Object.freeze(r),t&&Cr(r,function(e,i){return ns(i,!0)},!0)),r}function pf(){qt(2)}function as(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function he(r){var t=es[r];return t||qt(18,r),t}function uf(r,t){es[r]||(es[r]=t)}function Ja(){return Uo}function Za(r,t){t&&(he("Patches"),r.u=[],r.s=[],r.v=t)}function Ni(r){Qa(r),r.p.forEach(ff),r.p=null}function Qa(r){r===Uo&&(Uo=r.l)}function Ec(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function ff(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function qa(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||he("ES5").S(t,r,i),i?(e[dt].P&&(Ni(t),qt(4)),ee(r)&&(r=Ii(t,r),t.l||Ti(t,r)),t.u&&he("Patches").M(e[dt].t,r,t.u,t.s)):r=Ii(t,e,[]),Ni(t),t.u&&t.v(t.u,t.s),r!==Lc?r:void 0}function Ii(r,t,e){if(as(t))return t;var i=t[dt];if(!i)return Cr(t,function(l,d){return wc(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ti(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=is(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Cr(a,function(l,d){return wc(r,i,n,l,d,e,s)}),Ti(r,n,!1),e&&r.u&&he("Patches").N(i,e,r.u,r.s)}return i.o}function wc(r,t,e,i,n,a,s){if(_e(n)){var l=Ii(r,n,a&&t&&t.i!==3&&!Wr(t.R,i)?a.concat(i):void 0);if(Tc(e,i,l),!_e(l))return;r.m=!1}else s&&e.add(n);if(ee(n)&&!as(n)){if(!r.h.D&&r._<1)return;Ii(r,n),t&&t.A.l||Ti(r,n)}}function Ti(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&ns(t,e)}function Ya(r,t){var e=r[dt];return(e?We(e):r)[t]}function Ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Xa(r){r.o||(r.o=is(r.t))}function ts(r,t,e){var i=rs(t)?he("MapSet").F(t,e):os(t)?he("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ja(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var f=Proxy.revocable(d,p),h=f.revoke,y=f.proxy;return l.k=y,l.j=h,y}(t,e):he("ES5").J(t,e);return(e?e.A:Ja()).p.push(i),i}function hf(r){return _e(r)||qt(22,r),function t(e){if(!ee(e))return e;var i,n=e[dt],a=zr(e);if(n){if(!n.P&&(n.i<4||!he("ES5").K(n)))return n.t;n.I=!0,i=Rc(e,a),n.I=!1}else i=Rc(e,a);return Cr(i,function(s,l){n&&df(n.t,s)===l||Tc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Rc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return is(r)}function $c(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Wo.get(p,s)},set:function(p){var f=this[dt];Wo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Hr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var y=l[h];if(y===void 0&&!Wr(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==y:!Pc(v,y))return!0}}var E=!!l[dt];return p.length!==Hr(l).length+(E?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};uf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,y){if(h){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var E=kc(y);delete E[dt];for(var N=Hr(E),T=0;T<N.length;T++){var P=N[T];E[P]=r(P,h||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),f={i:d?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?_e(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var y=h.t,v=h.k,S=h.R,E=h.i;if(E===4)Cr(v,function(C){C!==dt&&(y[C]!==void 0||Wr(y,C)?S[C]||p(v[C]):(S[C]=!0,He(h)))}),Cr(y,function(C){v[C]!==void 0||Wr(v,C)||(S[C]=!1,He(h))});else if(E===5){if(i(h)&&(He(h),S.length=!0),v.length<y.length)for(var N=v.length;N<y.length;N++)S[N]=!1;else for(var T=y.length;T<v.length;T++)S[T]=!0;for(var P=Math.min(v.length,y.length),w=0;w<P;w++)v.hasOwnProperty(w)||(S[w]=!0),S[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var _c,Uo,ss=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mf=typeof Map<"u",yf=typeof Set<"u",Nc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Lc=ss?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Ic=ss?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ss?Symbol.for("immer-state"):"__$immer_state";var gf=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,kc=Object.getOwnPropertyDescriptors||function(r){var t={};return Hr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},es={},Wo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Wr(e,t))return function(n,a,s){var l,d=Ac(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,e,t);var i=e[t];return r.I||!ee(i)?i:i===Ya(r.t,t)?(Xa(r),r.o[t]=ts(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ac(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Ya(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Pc(e,n)&&(e!==void 0||Wr(r.t,t)))return!0;Xa(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ya(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Xa(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Bo={};Cr(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var bf=function(){function r(e){var i=this;this.O=Nc,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(E){var N=this;E===void 0&&(E=l);for(var T=arguments.length,P=Array(T>1?T-1:0),w=1;w<T;w++)P[w-1]=arguments[w];return d.produce(E,function(C){var A;return(A=a).call.apply(A,[N,C].concat(P))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),ee(n)){var f=Ec(i),h=ts(i,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?Ni(f):Qa(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Za(f,s),qa(E,f)},function(E){throw Ni(f),E}):(Za(f,s),qa(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Lc&&(p=void 0),i.D&&ns(p,!0),s){var v=[],S=[];he("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){ee(e)||qt(8),_e(e)&&(e=hf(e));var i=Ec(this),n=ts(this,e,void 0);return n[dt].C=!0,Qa(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return Za(a,i),qa(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Nc&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=he("Patches").$;return _e(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new bf,vf=Kt.produce,_v=Kt.produceWithPatches.bind(Kt),Nv=Kt.setAutoFreeze.bind(Kt),Iv=Kt.setUseProxies.bind(Kt),Tv=Kt.applyPatches.bind(Kt),Pv=Kt.createDraft.bind(Kt),$v=Kt.finishDraft.bind(Kt),Pi=vf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function ls(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function cs(r){var t=ls(r,"string");return ze(t)==="symbol"?t:String(t)}function ds(r,t,e){return t=cs(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Dc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function $i(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(e),!0).forEach(function(i){ds(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Dc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Pt(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. "}var Mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ps=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+ps(),REPLACE:"@@redux/REPLACE"+ps(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ps()}};function xf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function us(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Pt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Pt(1));return e(us)(r,t)}if(typeof r!="function")throw new Error(Pt(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Pt(3));return a}function h(E){if(typeof E!="function")throw new Error(Pt(4));if(d)throw new Error(Pt(5));var N=!0;return p(),l.push(E),function(){if(N){if(d)throw new Error(Pt(6));N=!1,p();var P=l.indexOf(E);l.splice(P,1),s=null}}}function y(E){if(!xf(E))throw new Error(Pt(7));if(typeof E.type>"u")throw new Error(Pt(8));if(d)throw new Error(Pt(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var N=s=l,T=0;T<N.length;T++){var P=N[T];P()}return E}function v(E){if(typeof E!="function")throw new Error(Pt(10));n=E,y({type:Li.REPLACE})}function S(){var E,N=h;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Pt(11));function w(){P.next&&P.next(f())}w();var C=N(w);return{unsubscribe:C}}},E[Mc]=function(){return this},E}return y({type:Li.INIT}),i={dispatch:y,subscribe:h,getState:f,replaceReducer:v},i[Mc]=S,i}function Sf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error(Pt(12));if(typeof e(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pt(13))})}function Fc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Sf(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,v={},S=0;S<a.length;S++){var E=a[S],N=e[E],T=p[E],P=N(T,f);if(typeof P>"u"){var w=f&&f.type;throw new Error(Pt(14))}v[E]=P,y=y||P!==T}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Vr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Bc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Pt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Vr.apply(void 0,l)(n.dispatch),$i($i({},n),{},{dispatch:a})}}}function Uc(r){var t=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 t}var Wc=Uc();Wc.withExtraArgument=Uc;var fs=Wc;var Gc=function(){var r=function(t,e){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(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Of=function(r,t){var e={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(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},Cf=Object.defineProperty,Ef=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Rf=Object.prototype.propertyIsEnumerable,zc=function(r,t,e){return t in r?Cf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Af.call(t,e)&&zc(r,e,t[e]);if(Hc)for(var i=0,n=Hc(t);i<n.length;i++){var e=n[i];Rf.call(t,e)&&zc(r,e,t[e])}return r},hs=function(r,t){return Ef(r,wf(t))},_f=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vr:Vr.apply(null,arguments)},Xv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function If(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Tf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),Pf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function gs(r){return ee(r)?Pi(r,function(){}):r}function $f(r){return typeof r=="boolean"}function Lf(){return function(t){return kf(t)}}function kf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Tf;if(e&&($f(e)?l.push(fs):l.push(fs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var ms=!0;function Kc(r){var t=Lf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,y=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(If(n))v=Fc(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 S=s;if(typeof S=="function"&&(S=S(t),!ms&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ms&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Bc.apply(void 0,S),N=Vr;d&&(N=Nf(Ve({trace:!ms},typeof d=="object"&&d)));var T=new Pf(E),P=T;Array.isArray(y)?P=jr([E],y):typeof y=="function"&&(P=y(T));var w=N.apply(void 0,P);return us(v,f,w)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Zc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Df(r){return typeof r=="function"}function Mf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Zc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Df(r))d=function(){return gs(r())};else{var p=gs(r);d=function(){return p}}function f(h,y){h===void 0&&(h=d());var v=jr([a[y.type]],s.filter(function(S){var E=S.matcher;return E(y)}).map(function(S){var E=S.reducer;return E}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,E){if(E)if(_e(S)){var N=S,T=E(N,y);return T===void 0?S:T}else{if(ee(S))return Pi(S,function(P){return E(P,y)});var T=E(S,y);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},h)}return f.getInitialState=d,f}function Ff(r,t){return r+"/"+t}function qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:gs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],y=Ff(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[y]=v,l[f]=S?je(y,S):je(y)});function d(){var f=typeof r.extraReducers=="function"?Zc(r.extraReducers):[r.extraReducers],h=f[0],y=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,E=f[2],N=E===void 0?void 0:E,T=Ve(Ve({},y),s);return Mf(e,function(P){for(var w in T)P.addCase(w,T[w]);for(var C=0,A=S;C<A.length;C++){var k=A[C];P.addMatcher(k.matcher,k.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Bf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Uf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Bf[Math.random()*64|0];return t},Wf=["name","message","stack","code"],ys=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Hf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Wf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},ex=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,y,v){return{payload:f,meta:hs(Ve({},v||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,y){return{payload:void 0,meta:hs(Ve({},y||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,y,v,S){return{payload:v,error:(i&&i.serializeError||Hf)(f||"Rejected"),meta:hs(Ve({},S||{}),{arg:y,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,y,v){var S=i?.idGenerator?i.idGenerator(f):Uf(),E=new d,N,T=!1;function P(C){N=C,E.abort()}var w=function(){return _f(this,null,function(){var C,A,k,W,Y,K,F;return Of(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),W=(C=i?.condition)==null?void 0:C.call(i,f,{getState:y,extra:v}),Vf(W)?[4,W]:[3,2];case 1:W=m.sent(),m.label=2;case 2:if(W===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Y=new Promise(function(O,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:y,extra:v}))),[4,Promise.race([Y,Promise.resolve(e(f,{dispatch:h,getState:y,extra:v,requestId:S,signal:E.signal,abort:P,rejectWithValue:function(O,D){return new ys(O,D)},fulfillWithValue:function(O,D){return new Vc(O,D)}})).then(function(O){if(O instanceof ys)throw O;return O instanceof Vc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return k=m.sent(),[3,5];case 4:return K=m.sent(),k=K instanceof ys?s(null,S,f,K.payload,K.meta):s(K,S,f),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||h(k),[2,k]}})})}();return Object.assign(w,{abort:P,requestId:S,arg:f,unwrap:function(){return w.then(zf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function zf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Vf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Yc="listener",Xc="completed",Jc="cancelled",rx="task-"+Jc,ox="task-"+Xc,ix=Yc+"-"+Jc,nx=Yc+"-"+Xc;var bs="listenerMiddleware";var ax=je(bs+"/add"),sx=je(bs+"/removeAll"),lx=je(bs+"/remove");var jc,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(jc||(jc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},jf=function(r){return function(t){setTimeout(t,r)}},dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jf(10);$c();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Sr(a))return a;if(n==null)return;let s=qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Gf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Sr(t)&&t.clear()}var Os={};rt(Os,{scrollHelper:()=>Kf});var xs,ki=new Map,Ss=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(xs=window.FluidTopicsScrollHelper)!==null&&xs!==void 0?xs:new Ss;var Kf=window.FluidTopicsScrollHelper;var Cs={};rt(Cs,{shadowQuerySelector:()=>Zf,shadowQuerySelectorAll:()=>qf});function Zf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function qf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)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 Es={};rt(Es,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>ot,isSearchPlaceQueryParams:()=>Od,serializeRequest:()=>Qf});var Xf=Cp(td(),1);var ed;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ed||(ed={}));var rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(rd||(rd={}));var od;(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"})(od||(od={}));var id;(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"})(id||(id={}));var nd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(nd||(nd={}));var ad;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ad||(ad={}));var sd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(sd||(sd={}));var Ie;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ie||(Ie={}));var ld;(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"})(ld||(ld={}));var cd;(function(r){r.ASC="ASC",r.DESC="DESC"})(cd||(cd={}));var dd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(dd||(dd={}));var pd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(pd||(pd={}));var gd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ud;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var fd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fd||(fd={}));var hd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(hd||(hd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var bd=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var md;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(md||(md={}));var yd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(yd||(yd={}));var pt;(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.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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var vd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(vd||(vd={}));var Yf={[pt.PERSONAL_BOOK_SHARE_USER]:[pt.PERSONAL_BOOK_USER],[pt.HTML_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.PDF_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.KHUB_ADMIN]:[pt.CONTENT_PUBLISHER],[pt.ADMIN]:[pt.KHUB_ADMIN,pt.USERS_ADMIN,pt.PORTAL_ADMIN],[pt.DEVELOPER]:[pt.BETA_USER,pt.DEBUG_USER]};function xd(r,t){return r===t||(Yf[r]??[]).some(e=>xd(e,t))}function Er(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>xd(i,t))}function Jf(r){return`"${r}"`}function Sd(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Qf(r,t){return new zo(r).serialize(t)}var ot;(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"})(ot||(ot={}));var th=new Set(Object.values(ot));function Od(r){return th.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,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(t,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,f,h,y,v,S;let E=new URLSearchParams;t.contentLocale?(!e||t.contentLocale!==this.defaultContentLocale)&&E.append(ot.LOCALE,t.contentLocale):E.append(ot.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(ot.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(ot.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(ot.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&E.append(ot.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let C=N.map(A=>{var k,W;let Y=((W=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&W!==void 0?W:[]).map(K=>this.escapeFilters(K)).map(K=>encodeURIComponent(Jf(Sd(K)))).join("_");return`${A.key}~${Y}`}).join("*");E.append(ot.VALUE_FILTERS,C)}let T=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let C=T.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(ot.DATE_FILTERS,C)}let P=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(A=>{var k,W;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(W=A.rangeFilter)===null||W===void 0?void 0:W.to}`}).join("*");E.append(ot.RANGE_FILTERS,C)}let w=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let C in w)E.append(C,w[C]);return!((y=t.paging)===null||y===void 0)&&y.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(ot.PER_PAGE,String(t.paging.perPage)),E}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=t.get(ot.LOCALE)==="all"?void 0:t.get(ot.LOCALE),h=((e=t.get(ot.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),y=((i=t.get(ot.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(ot.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=t.get(ot.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let N of t.keys())Od(N)||(E[N]=t.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(ot.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:gd(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Co(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:E}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(ot.FILTERS)&&(d=this.parseValueFilters((e=t.get(ot.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(ot.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(ot.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(ot.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(ot.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(ot.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Sd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(bd(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ws={};rt(ws,{toFtFormComponent:()=>wr});var Fi=Symbol("elementInternals");function wr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var As={};rt(As,{DateFormatter:()=>Kr});var Kr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var Rs,_s,Ns,Is,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ns=(_s=(Rs=window.safari)===null||Rs===void 0?void 0:Rs.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Ns!==void 0?Ns:"")==="[object SafariRemoteNotification]",eh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Is=window.ftGlobals)!==null&&Is!==void 0?Is:{lit:Nn,litDecorators:Tn,litRepeat:$n,litClassMap:Ln,litStyleMap:kn,litUnsafeHTML:Mn,wcUtils:{...zn,...Bn,...Vn,...As,...jn,...Zn,...Ca,...Hn,...Ma,...Oa,...Wa,...Ba,...bc,...Kn,...Va,...Ga,...xc,...Ka,...vs,...Fa,...Os,...Cs,...Es,...ws,isSafari:Vo,isTouchScreen:eh,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var rh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ps=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ts=Symbol("registerInterval");function oh(r){var t;class e extends r{constructor(){super(...arguments),this[t]=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[Ts]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ts]):this.dispatchEvent(new Ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ts,rh([U()],e.prototype,"stateManager",void 0),e}var Ke=class extends oh(Zt){};var Cd=o.extend("--ft-ripple-color","",_.colorContent),R={color:Cd,backgroundColor:o.extend("--ft-ripple-background-color","",Cd),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Ed=o.extend("--ft-ripple-color","",_.colorPrimary),wd={color:Ed,backgroundColor:o.extend("--ft-ripple-background-color","",Ed)},Ad=o.extend("--ft-ripple-color","",_.colorSecondary),Rd={color:Ad,backgroundColor:o.extend("--ft-ripple-background-color","",Ad)},_d=L`
50
+ `;var xc={};var Za={};rt(Za,{ParametrizedLabelResolver:()=>Do});var Do=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var xs={};rt(xs,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ie,clearAllStores:()=>Gf,isFtReduxStore:()=>Sr,redux:()=>ct,reduxEventListener:()=>Mo,reduxReactive:()=>cf});var cf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:Oo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Mo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Fo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Sr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sc,Oc,Cc,_i=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Or=Symbol("internalStores"),Zt=class extends j{constructor(){super(...arguments),this[Sc]=new Map,this[Oc]=new Map,this[Cc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Or].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Or].get(t)}addStore(t,e){var i;e=(i=e??(Sr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Or].delete(e)}setupStore(t,e){this[Or].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Or].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),Sr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[_i].push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[_i].forEach(t=>t()),this[_i]=[]}unsubscribeFromStore(t){this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Sc=Ue,Oc=Or,Cc=_i;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(r){return!!r&&!!r[dt]}function re(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===gf}(r)||Array.isArray(r)||!!r[Ic]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ic])||os(r)||is(r))}function Cr(r,t,e){e===void 0&&(e=!1),zr(r)===0?(e?Object.keys:Hr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function zr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:os(r)?2:is(r)?3:0}function Wr(r,t){return zr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function df(r,t){return zr(r)===2?r.get(t):r[t]}function Tc(r,t,e){var i=zr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function $c(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function os(r){return mf&&r instanceof Map}function is(r){return yf&&r instanceof Set}function We(r){return r.o||r.t}function ns(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=kc(r);delete t[dt];for(var e=Hr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function as(r,t){return t===void 0&&(t=!1),ss(r)||Ne(r)||!re(r)||(zr(r)>1&&(r.set=r.add=r.clear=r.delete=pf),Object.freeze(r),t&&Cr(r,function(e,i){return as(i,!0)},!0)),r}function pf(){qt(2)}function ss(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function me(r){var t=rs[r];return t||qt(18,r),t}function uf(r,t){rs[r]||(rs[r]=t)}function Qa(){return Uo}function qa(r,t){t&&(me("Patches"),r.u=[],r.s=[],r.v=t)}function Ni(r){ts(r),r.p.forEach(ff),r.p=null}function ts(r){r===Uo&&(Uo=r.l)}function wc(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function ff(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function Ya(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||me("ES5").S(t,r,i),i?(e[dt].P&&(Ni(t),qt(4)),re(r)&&(r=Ii(t,r),t.l||Ti(t,r)),t.u&&me("Patches").M(e[dt].t,r,t.u,t.s)):r=Ii(t,e,[]),Ni(t),t.u&&t.v(t.u,t.s),r!==Lc?r:void 0}function Ii(r,t,e){if(ss(t))return t;var i=t[dt];if(!i)return Cr(t,function(l,d){return Ec(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ti(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ns(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Cr(a,function(l,d){return Ec(r,i,n,l,d,e,s)}),Ti(r,n,!1),e&&r.u&&me("Patches").N(i,e,r.u,r.s)}return i.o}function Ec(r,t,e,i,n,a,s){if(Ne(n)){var l=Ii(r,n,a&&t&&t.i!==3&&!Wr(t.R,i)?a.concat(i):void 0);if(Tc(e,i,l),!Ne(l))return;r.m=!1}else s&&e.add(n);if(re(n)&&!ss(n)){if(!r.h.D&&r._<1)return;Ii(r,n),t&&t.A.l||Ti(r,n)}}function Ti(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&as(t,e)}function Xa(r,t){var e=r[dt];return(e?We(e):r)[t]}function Ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Ja(r){r.o||(r.o=ns(r.t))}function es(r,t,e){var i=os(t)?me("MapSet").F(t,e):is(t)?me("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Qa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var f=Proxy.revocable(d,p),h=f.revoke,y=f.proxy;return l.k=y,l.j=h,y}(t,e):me("ES5").J(t,e);return(e?e.A:Qa()).p.push(i),i}function hf(r){return Ne(r)||qt(22,r),function t(e){if(!re(e))return e;var i,n=e[dt],a=zr(e);if(n){if(!n.P&&(n.i<4||!me("ES5").K(n)))return n.t;n.I=!0,i=Rc(e,a),n.I=!1}else i=Rc(e,a);return Cr(i,function(s,l){n&&df(n.t,s)===l||Tc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Rc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ns(r)}function Pc(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Wo.get(p,s)},set:function(p){var f=this[dt];Wo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Hr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var y=l[h];if(y===void 0&&!Wr(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==y:!$c(v,y))return!0}}var w=!!l[dt];return p.length!==Hr(l).length+(w?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};uf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,y){if(h){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var w=kc(y);delete w[dt];for(var N=Hr(w),T=0;T<N.length;T++){var P=N[T];w[P]=r(P,h||!!w[P].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),f={i:d?5:4,A:l?l.A:Qa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var y=h.t,v=h.k,S=h.R,w=h.i;if(w===4)Cr(v,function(C){C!==dt&&(y[C]!==void 0||Wr(y,C)?S[C]||p(v[C]):(S[C]=!0,He(h)))}),Cr(y,function(C){v[C]!==void 0||Wr(v,C)||(S[C]=!1,He(h))});else if(w===5){if(i(h)&&(He(h),S.length=!0),v.length<y.length)for(var N=v.length;N<y.length;N++)S[N]=!1;else for(var T=y.length;T<v.length;T++)S[T]=!0;for(var P=Math.min(v.length,y.length),E=0;E<P;E++)v.hasOwnProperty(E)||(S[E]=!0),S[E]===void 0&&p(v[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var _c,Uo,ls=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mf=typeof Map<"u",yf=typeof Set<"u",Nc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Lc=ls?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Ic=ls?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ls?Symbol.for("immer-state"):"__$immer_state";var gf=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,kc=Object.getOwnPropertyDescriptors||function(r){var t={};return Hr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},rs={},Wo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Wr(e,t))return function(n,a,s){var l,d=Ac(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,e,t);var i=e[t];return r.I||!re(i)?i:i===Xa(r.t,t)?(Ja(r),r.o[t]=es(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ac(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Xa(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if($c(e,n)&&(e!==void 0||Wr(r.t,t)))return!0;Ja(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Xa(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Ja(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Bo={};Cr(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var bf=function(){function r(e){var i=this;this.O=Nc,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(w){var N=this;w===void 0&&(w=l);for(var T=arguments.length,P=Array(T>1?T-1:0),E=1;E<T;E++)P[E-1]=arguments[E];return d.produce(w,function(C){var A;return(A=a).call.apply(A,[N,C].concat(P))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),re(n)){var f=wc(i),h=es(i,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?Ni(f):ts(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return qa(f,s),Ya(w,f)},function(w){throw Ni(f),w}):(qa(f,s),Ya(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Lc&&(p=void 0),i.D&&as(p,!0),s){var v=[],S=[];me("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){re(e)||qt(8),Ne(e)&&(e=hf(e));var i=wc(this),n=es(this,e,void 0);return n[dt].C=!0,ts(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return qa(a,i),Ya(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Nc&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=me("Patches").$;return Ne(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new bf,vf=Kt.produce,_v=Kt.produceWithPatches.bind(Kt),Nv=Kt.setAutoFreeze.bind(Kt),Iv=Kt.setUseProxies.bind(Kt),Tv=Kt.applyPatches.bind(Kt),$v=Kt.createDraft.bind(Kt),Pv=Kt.finishDraft.bind(Kt),$i=vf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function cs(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ds(r){var t=cs(r,"string");return ze(t)==="symbol"?t:String(t)}function ps(r,t,e){return t=ds(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Dc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function Pi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(e),!0).forEach(function(i){ps(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Dc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function $t(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. "}var Mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),us=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+us(),REPLACE:"@@redux/REPLACE"+us(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+us()}};function xf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function fs(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error($t(1));return e(fs)(r,t)}if(typeof r!="function")throw new Error($t(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error($t(3));return a}function h(w){if(typeof w!="function")throw new Error($t(4));if(d)throw new Error($t(5));var N=!0;return p(),l.push(w),function(){if(N){if(d)throw new Error($t(6));N=!1,p();var P=l.indexOf(w);l.splice(P,1),s=null}}}function y(w){if(!xf(w))throw new Error($t(7));if(typeof w.type>"u")throw new Error($t(8));if(d)throw new Error($t(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var N=s=l,T=0;T<N.length;T++){var P=N[T];P()}return w}function v(w){if(typeof w!="function")throw new Error($t(10));n=w,y({type:Li.REPLACE})}function S(){var w,N=h;return w={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error($t(11));function E(){P.next&&P.next(f())}E();var C=N(E);return{unsubscribe:C}}},w[Mc]=function(){return this},w}return y({type:Li.INIT}),i={dispatch:y,subscribe:h,getState:f,replaceReducer:v},i[Mc]=S,i}function Sf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error($t(12));if(typeof e(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function Fc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Sf(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,v={},S=0;S<a.length;S++){var w=a[S],N=e[w],T=p[w],P=N(T,f);if(typeof P>"u"){var E=f&&f.type;throw new Error($t(14))}v[w]=P,y=y||P!==T}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Vr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Bc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error($t(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Vr.apply(void 0,l)(n.dispatch),Pi(Pi({},n),{},{dispatch:a})}}}function Uc(r){var t=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 t}var Wc=Uc();Wc.withExtraArgument=Uc;var hs=Wc;var Gc=function(){var r=function(t,e){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(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Of=function(r,t){var e={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(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},Cf=Object.defineProperty,wf=Object.defineProperties,Ef=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Rf=Object.prototype.propertyIsEnumerable,zc=function(r,t,e){return t in r?Cf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Af.call(t,e)&&zc(r,e,t[e]);if(Hc)for(var i=0,n=Hc(t);i<n.length;i++){var e=n[i];Rf.call(t,e)&&zc(r,e,t[e])}return r},ms=function(r,t){return wf(r,Ef(t))},_f=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vr:Vr.apply(null,arguments)},Xv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function If(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Tf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),$f=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function bs(r){return re(r)?$i(r,function(){}):r}function Pf(r){return typeof r=="boolean"}function Lf(){return function(t){return kf(t)}}function kf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Tf;if(e&&(Pf(e)?l.push(hs):l.push(hs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var ys=!0;function Kc(r){var t=Lf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,y=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(If(n))v=Fc(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 S=s;if(typeof S=="function"&&(S=S(t),!ys&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ys&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Bc.apply(void 0,S),N=Vr;d&&(N=Nf(Ve({trace:!ys},typeof d=="object"&&d)));var T=new $f(w),P=T;Array.isArray(y)?P=jr([w],y):typeof y=="function"&&(P=y(T));var E=N.apply(void 0,P);return fs(v,f,E)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Zc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Df(r){return typeof r=="function"}function Mf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Zc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Df(r))d=function(){return bs(r())};else{var p=bs(r);d=function(){return p}}function f(h,y){h===void 0&&(h=d());var v=jr([a[y.type]],s.filter(function(S){var w=S.matcher;return w(y)}).map(function(S){var w=S.reducer;return w}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,w){if(w)if(Ne(S)){var N=S,T=w(N,y);return T===void 0?S:T}else{if(re(S))return $i(S,function(P){return w(P,y)});var T=w(S,y);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},h)}return f.getInitialState=d,f}function Ff(r,t){return r+"/"+t}function qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:bs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],y=Ff(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[y]=v,l[f]=S?je(y,S):je(y)});function d(){var f=typeof r.extraReducers=="function"?Zc(r.extraReducers):[r.extraReducers],h=f[0],y=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,w=f[2],N=w===void 0?void 0:w,T=Ve(Ve({},y),s);return Mf(e,function(P){for(var E in T)P.addCase(E,T[E]);for(var C=0,A=S;C<A.length;C++){var k=A[C];P.addMatcher(k.matcher,k.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Bf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Uf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Bf[Math.random()*64|0];return t},Wf=["name","message","stack","code"],gs=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Hf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Wf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},ex=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,y,v){return{payload:f,meta:ms(Ve({},v||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,y){return{payload:void 0,meta:ms(Ve({},y||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,y,v,S){return{payload:v,error:(i&&i.serializeError||Hf)(f||"Rejected"),meta:ms(Ve({},S||{}),{arg:y,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,y,v){var S=i?.idGenerator?i.idGenerator(f):Uf(),w=new d,N,T=!1;function P(C){N=C,w.abort()}var E=function(){return _f(this,null,function(){var C,A,k,H,X,q,F;return Of(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),H=(C=i?.condition)==null?void 0:C.call(i,f,{getState:y,extra:v}),Vf(H)?[4,H]:[3,2];case 1:H=m.sent(),m.label=2;case 2:if(H===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,X=new Promise(function(O,D){return w.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:y,extra:v}))),[4,Promise.race([X,Promise.resolve(e(f,{dispatch:h,getState:y,extra:v,requestId:S,signal:w.signal,abort:P,rejectWithValue:function(O,D){return new gs(O,D)},fulfillWithValue:function(O,D){return new Vc(O,D)}})).then(function(O){if(O instanceof gs)throw O;return O instanceof Vc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return k=m.sent(),[3,5];case 4:return q=m.sent(),k=q instanceof gs?s(null,S,f,q.payload,q.meta):s(q,S,f),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||h(k),[2,k]}})})}();return Object.assign(E,{abort:P,requestId:S,arg:f,unwrap:function(){return E.then(zf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function zf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Vf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Yc="listener",Xc="completed",Jc="cancelled",rx="task-"+Jc,ox="task-"+Xc,ix=Yc+"-"+Jc,nx=Yc+"-"+Xc;var vs="listenerMiddleware";var ax=je(vs+"/add"),sx=je(vs+"/removeAll"),lx=je(vs+"/remove");var jc,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(jc||(jc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},jf=function(r){return function(t){setTimeout(t,r)}},dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jf(10);Pc();window.ftReduxStores||(window.ftReduxStores={});var Ie=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Sr(a))return a;if(n==null)return;let s=qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Gf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Sr(t)&&t.clear()}var Cs={};rt(Cs,{scrollHelper:()=>Kf});var Ss,ki=new Map,Os=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Ss=window.FluidTopicsScrollHelper)!==null&&Ss!==void 0?Ss:new Os;var Kf=window.FluidTopicsScrollHelper;var ws={};rt(ws,{shadowQuerySelector:()=>Zf,shadowQuerySelectorAll:()=>qf});function Zf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function qf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)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 Es={};rt(Es,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>ot,isSearchPlaceQueryParams:()=>Od,serializeRequest:()=>Qf});var Xf=Cp(td(),1);var ed;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ed||(ed={}));var rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(rd||(rd={}));var od;(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"})(od||(od={}));var id;(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"})(id||(id={}));var nd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(nd||(nd={}));var ad;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ad||(ad={}));var sd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(sd||(sd={}));var Te;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Te||(Te={}));var ld;(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"})(ld||(ld={}));var cd;(function(r){r.ASC="ASC",r.DESC="DESC"})(cd||(cd={}));var dd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(dd||(dd={}));var pd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(pd||(pd={}));var gd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ud;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var fd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fd||(fd={}));var hd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(hd||(hd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var bd=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var md;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(md||(md={}));var yd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(yd||(yd={}));var pt;(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.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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var vd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(vd||(vd={}));var Yf={[pt.PERSONAL_BOOK_SHARE_USER]:[pt.PERSONAL_BOOK_USER],[pt.HTML_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.PDF_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.KHUB_ADMIN]:[pt.CONTENT_PUBLISHER],[pt.ADMIN]:[pt.KHUB_ADMIN,pt.USERS_ADMIN,pt.PORTAL_ADMIN],[pt.DEVELOPER]:[pt.BETA_USER,pt.DEBUG_USER]};function xd(r,t){return r===t||(Yf[r]??[]).some(e=>xd(e,t))}function wr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>xd(i,t))}function Jf(r){return`"${r}"`}function Sd(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Qf(r,t){return new zo(r).serialize(t)}var ot;(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"})(ot||(ot={}));var th=new Set(Object.values(ot));function Od(r){return th.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,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(t,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,f,h,y,v,S;let w=new URLSearchParams;t.contentLocale?(!e||t.contentLocale!==this.defaultContentLocale)&&w.append(ot.LOCALE,t.contentLocale):w.append(ot.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&w.append(ot.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&w.append(ot.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&w.append(ot.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&w.append(ot.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let C=N.map(A=>{var k,H;let X=((H=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&H!==void 0?H:[]).map(q=>this.escapeFilters(q)).map(q=>encodeURIComponent(Jf(Sd(q)))).join("_");return`${A.key}~${X}`}).join("*");w.append(ot.VALUE_FILTERS,C)}let T=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let C=T.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");w.append(ot.DATE_FILTERS,C)}let P=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(A=>{var k,H;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(H=A.rangeFilter)===null||H===void 0?void 0:H.to}`}).join("*");w.append(ot.RANGE_FILTERS,C)}let E=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let C in E)w.append(C,E[C]);return!((y=t.paging)===null||y===void 0)&&y.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&w.append(ot.PER_PAGE,String(t.paging.perPage)),w}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=t.get(ot.LOCALE)==="all"?void 0:t.get(ot.LOCALE),h=((e=t.get(ot.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),y=((i=t.get(ot.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(ot.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=t.get(ot.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),w={};for(let N of t.keys())Od(N)||(w[N]=t.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(ot.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:gd(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Co(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:w}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(ot.FILTERS)&&(d=this.parseValueFilters((e=t.get(ot.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(ot.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(ot.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(ot.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(ot.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(ot.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Sd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(bd(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var As={};rt(As,{toFtFormComponent:()=>Er});var Fi=Symbol("elementInternals");function Er(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var Rs={};rt(Rs,{DateFormatter:()=>Kr});var Kr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var _s,Ns,Is,Ts,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Is=(Ns=(_s=window.safari)===null||_s===void 0?void 0:_s.pushNotification)===null||Ns===void 0?void 0:Ns.toString())!==null&&Is!==void 0?Is:"")==="[object SafariRemoteNotification]",eh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ts=window.ftGlobals)!==null&&Ts!==void 0?Ts:{lit:In,litDecorators:$n,litRepeat:Ln,litClassMap:kn,litStyleMap:Dn,litUnsafeHTML:Fn,wcUtils:{...Vn,...Un,...jn,...Rs,...Gn,...qn,...wa,...zn,...Fa,...Ca,...Ha,...Ua,...bc,...Zn,...ja,...Ka,...xc,...Za,...xs,...Ba,...Cs,...ws,...Es,...As,isSafari:Vo,isTouchScreen:eh,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var rh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ps=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},$s=Symbol("registerInterval");function oh(r){var t;class e extends r{constructor(){super(...arguments),this[t]=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[$s]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[$s]):this.dispatchEvent(new Ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=$s,rh([W()],e.prototype,"stateManager",void 0),e}var Ke=class extends oh(Zt){};var Cd=o.extend("--ft-ripple-color","",_.colorContent),R={color:Cd,backgroundColor:o.extend("--ft-ripple-background-color","",Cd),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},wd=o.extend("--ft-ripple-color","",_.colorPrimary),Ed={color:wd,backgroundColor:o.extend("--ft-ripple-background-color","",wd)},Ad=o.extend("--ft-ripple-color","",_.colorSecondary),Rd={color:Ad,backgroundColor:o.extend("--ft-ripple-background-color","",Ad)},_d=L`
51
51
  :host {
52
52
  display: contents;
53
53
  }
@@ -110,11 +110,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
110
110
  }
111
111
 
112
112
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
113
- background-color: ${wd.backgroundColor};
113
+ background-color: ${Ed.backgroundColor};
114
114
  }
115
115
 
116
116
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
117
- background-color: ${wd.color};
117
+ background-color: ${Ed.color};
118
118
  }
119
119
 
120
120
  .ft-ripple .ft-ripple--background {
@@ -159,8 +159,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
159
159
  opacity: ${R.opacityContentOnSurfacePressed};
160
160
  transform: translate(-50%, -50%) scale(1);
161
161
  }
162
- `;function Nd(r){let t=Eo[r];return L`
163
- .ft-typography--${ve(r)} {
162
+ `;function Nd(r){let t=wo[r];return L`
163
+ .ft-typography--${xe(r)} {
164
164
  font-family: ${t.fontFamily};
165
165
  font-size: ${t.fontSize};
166
166
  font-weight: ${t.fontWeight};
@@ -168,7 +168,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
168
168
  line-height: ${t.lineHeight};
169
169
  text-transform: ${t.textCase};
170
170
  }
171
- `}var Id=o.extend("--ft-typography-font-family","",_.titleFont),Te=o.extend("--ft-typography-font-family","",_.contentFont),B={fontFamily:Te,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")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Id),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Id),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",Te),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-body2-font-family","",Te),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},re={fontFamily:o.extend("--ft-typography-caption-font-family","",Te),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Te),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-overline-font-family","",Te),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Ft={fontFamily:o.extend("--ft-typography-button-font-family","",Te),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Td=L`
171
+ `}var Id=o.extend("--ft-typography-font-family","",_.titleFont),$e=o.extend("--ft-typography-font-family","",_.contentFont),B={fontFamily:$e,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")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Id),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Id),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",$e),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",$e),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",$e),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-body2-font-family","",$e),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},oe={fontFamily:o.extend("--ft-typography-caption-font-family","",$e),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",$e),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-overline-font-family","",$e),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Ft={fontFamily:o.extend("--ft-typography-button-font-family","",$e),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Td=L`
172
172
  .ft-typography--title {
173
173
  font-family: ${Ze.fontFamily};
174
174
  font-size: ${Ze.fontSize};
@@ -177,7 +177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
177
177
  line-height: ${Ze.lineHeight};
178
178
  text-transform: ${Ze.textTransform};
179
179
  }
180
- `,Pd=L`
180
+ `,$d=L`
181
181
  .ft-typography--title-dense {
182
182
  font-family: ${qe.fontFamily};
183
183
  font-size: ${qe.fontSize};
@@ -186,7 +186,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
186
186
  line-height: ${qe.lineHeight};
187
187
  text-transform: ${qe.textTransform};
188
188
  }
189
- `,$d=L`
189
+ `,Pd=L`
190
190
  .ft-typography--subtitle1 {
191
191
  font-family: ${Zr.fontFamily};
192
192
  font-size: ${Zr.fontSize};
@@ -225,12 +225,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
225
225
  }
226
226
  `,Bi=L`
227
227
  .ft-typography--caption {
228
- font-family: ${re.fontFamily};
229
- font-size: ${re.fontSize};
230
- font-weight: ${re.fontWeight};
231
- letter-spacing: ${re.letterSpacing};
232
- line-height: ${re.lineHeight};
233
- text-transform: ${re.textTransform};
228
+ font-family: ${oe.fontFamily};
229
+ font-size: ${oe.fontSize};
230
+ font-weight: ${oe.fontWeight};
231
+ letter-spacing: ${oe.letterSpacing};
232
+ line-height: ${oe.lineHeight};
233
+ text-transform: ${oe.textTransform};
234
234
  }
235
235
  `,Dd=L`
236
236
  .ft-typography--breadcrumb {
@@ -263,7 +263,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
263
263
  .ft-typography {
264
264
  vertical-align: inherit;
265
265
  }
266
- `,Ud=[Object.keys(Eo).map(r=>Nd(r))];var ut={color:o.extend("--ft-loader-color","",_.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Wd=L`
266
+ `,Ud=[Object.keys(wo).map(r=>Nd(r))];var ut={color:o.extend("--ft-loader-color","",_.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Wd=L`
267
267
  :host {
268
268
  line-height: 0;
269
269
  }
@@ -380,7 +380,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
380
380
  .ft-icon--material {
381
381
  font-family: ${Ct.materialFontFamily}, "Material Icons", sans-serif;
382
382
  }
383
- `;var zd=o.extend("--ft-button-color","",_.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",_.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",_.borderRadiusL),color:zd,fontSize:o.extend("--ft-button-font-size","",Ft.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",zd),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(_.colorOpacityDisabled,"Design system")},Vd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",_.colorOnPrimary)),$s={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",_.colorPrimary)),color:Vd,rippleColor:o.extend("--ft-button-primary-ripple-color","",Vd)},me={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",_.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")},jd=[L`
383
+ `;var zd=o.extend("--ft-button-color","",_.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",_.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",_.borderRadiusL),color:zd,fontSize:o.extend("--ft-button-font-size","",Ft.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",zd),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(_.colorOpacityDisabled,"Design system")},Vd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",_.colorOnPrimary)),Ls={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",_.colorPrimary)),color:Vd,rippleColor:o.extend("--ft-button-primary-ripple-color","",Vd)},ye={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",_.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")},jd=[L`
384
384
  :host {
385
385
  display: inline-block;
386
386
  max-width: 100%;
@@ -439,13 +439,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
439
439
  }
440
440
 
441
441
  .ft-button.ft-button--dense {
442
- padding: ${me.verticalPadding} ${me.horizontalPadding};
443
- border-radius: ${me.borderRadius};
444
- gap: ${me.iconPadding};
442
+ padding: ${ye.verticalPadding} ${ye.horizontalPadding};
443
+ border-radius: ${ye.borderRadius};
444
+ gap: ${ye.iconPadding};
445
445
  }
446
446
 
447
447
  .ft-button.ft-button--dense.ft-button--outlined {
448
- padding: calc(${me.verticalPadding} - 1px) calc(${me.horizontalPadding} - 1px);
448
+ padding: calc(${ye.verticalPadding} - 1px) calc(${ye.horizontalPadding} - 1px);
449
449
  }
450
450
 
451
451
  .ft-button:not([disabled]):hover {
@@ -457,7 +457,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
457
457
  }
458
458
 
459
459
  .ft-button--round.ft-button--dense {
460
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${me.verticalPadding});
460
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ye.verticalPadding});
461
461
  }
462
462
 
463
463
  .ft-button[disabled] {
@@ -466,9 +466,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
466
466
  }
467
467
 
468
468
  .ft-button.ft-button--primary {
469
- background-color: ${$s.backgroundColor};
470
- --ft-button-internal-color: ${$s.color};
471
- ${x(R.color,$s.rippleColor)};
469
+ background-color: ${Ls.backgroundColor};
470
+ --ft-button-internal-color: ${Ls.color};
471
+ ${x(R.color,Ls.rippleColor)};
472
472
  }
473
473
 
474
474
  .ft-button:focus {
@@ -487,7 +487,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
487
487
  }
488
488
 
489
489
  .ft-button--dense .ft-button--label {
490
- margin: 0 ${me.iconPadding};
490
+ margin: 0 ${ye.iconPadding};
491
491
  }
492
492
 
493
493
  .ft-button--label[hidden] {
@@ -505,8 +505,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
505
505
  }
506
506
 
507
507
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
508
- margin: 0 calc(${me.horizontalPadding} * -1);
509
- padding: 0 ${me.verticalPadding};
508
+ margin: 0 calc(${ye.horizontalPadding} * -1);
509
+ padding: 0 ${ye.verticalPadding};
510
510
  }
511
511
 
512
512
  .ft-button:not(.ft-button--trailing-icon) [part="label"]{
@@ -517,7 +517,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
517
517
  ${x(ut.size,lt.iconSize)};
518
518
  ${x(ut.color,"var(--ft-button-internal-color)")};
519
519
  }
520
- `,vr];var yt={textColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",_.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",_.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",_.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",_.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",_.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Ft.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",_.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",_.colorPrimary)};var ye={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(_.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",_.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",_.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",_.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",_.colorOnSurfaceMedium),mainTitleFontSize:o.external(Ze.fontSize,"Typography"),sectionTitleFontSize:o.external(qe.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",_.colorSurface)},Gd=L`
520
+ `,vr];var yt={textColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",_.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",_.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",_.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",_.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",_.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Ft.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",_.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",_.colorPrimary)};var ge={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(_.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",_.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",_.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",_.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",_.colorOnSurfaceMedium),mainTitleFontSize:o.external(Ze.fontSize,"Typography"),sectionTitleFontSize:o.external(qe.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",_.colorSurface)},Gd=L`
521
521
  .ft-reader-feedback {
522
522
  box-sizing: border-box;
523
523
  display: flex;
@@ -530,7 +530,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
530
530
  flex-direction: row;
531
531
  align-items: center;
532
532
  margin-left: -6px;
533
- ${x(lt.backgroundColor,ye.starsBackgroundColor)}
533
+ ${x(lt.backgroundColor,ge.starsBackgroundColor)}
534
534
  }
535
535
 
536
536
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -543,14 +543,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
543
543
  }
544
544
 
545
545
  .ft-reader-feedback--rating {
546
- ${x(lt.color,ye.emptyRatingColor)};
547
- ${x(lt.rippleColor,ye.filledRatingColor)};
548
- ${x(yt.textColor,ye.emptyRatingColor)};
549
- ${x(yt.selectedTextColor,ye.filledRatingColor)};
546
+ ${x(lt.color,ge.emptyRatingColor)};
547
+ ${x(lt.rippleColor,ge.filledRatingColor)};
548
+ ${x(yt.textColor,ge.emptyRatingColor)};
549
+ ${x(yt.selectedTextColor,ge.filledRatingColor)};
550
550
  }
551
551
 
552
552
  .ft-reader-feedback--rating .ft-reader-feedback--active {
553
- ${x(lt.color,ye.filledRatingColor)};
553
+ ${x(lt.color,ge.filledRatingColor)};
554
554
  }
555
555
 
556
556
  .ft-reader-feedback--feedback {
@@ -558,41 +558,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
558
558
  }
559
559
 
560
560
  .ft-reader-feedback--rating-date {
561
- color: ${ye.ratedDateColor};
561
+ color: ${ge.ratedDateColor};
562
562
  }
563
563
 
564
564
  .ft-reader-feedback--feedback ft-text-area {
565
- min-width: ${ye.feedbackInputMinWidth};
565
+ min-width: ${ge.feedbackInputMinWidth};
566
566
  }
567
567
 
568
568
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
569
- ${x(lt.color,ye.sendFeedbackColor)};
570
- ${x(lt.backgroundColor,ye.sendFeedbackBackgroundColor)};
569
+ ${x(lt.color,ge.sendFeedbackColor)};
570
+ ${x(lt.backgroundColor,ge.sendFeedbackBackgroundColor)};
571
571
  }
572
572
 
573
573
  [part="buttons-container"] {
574
574
  align-self: flex-end;
575
575
  }
576
- `;var Zd=Symbol.for(""),ih=r=>{if(r?.r===Zd)return r?._$litStatic$},Ls=r=>({_$litStatic$:r,r:Zd});var Kd=new Map,qd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],d,p=0,f=!1;for(;p<i;){for(d=t[p];p<i&&(a=e[p],(n=ih(a))!==void 0);)d+=n+t[++p],f=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),f){let h=s.join("$$lit$$");(t=Kd.get(h))===void 0&&(s.raw=s,Kd.set(h,t=s)),e=l}return r(t,...e)},ks=qd(ml),CS=qd(yl);var Ye;(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"})(Ye||(Ye={}));var Yd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?ks`
577
- <${Ls(this.element)}
576
+ `;var Zd=Symbol.for(""),ih=r=>{if(r?.r===Zd)return r?._$litStatic$},ks=r=>({_$litStatic$:r,r:Zd});var Kd=new Map,qd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],d,p=0,f=!1;for(;p<i;){for(d=t[p];p<i&&(a=e[p],(n=ih(a))!==void 0);)d+=n+t[++p],f=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),f){let h=s.join("$$lit$$");(t=Kd.get(h))===void 0&&(s.raw=s,Kd.set(h,t=s)),e=l}return r(t,...e)},Ds=qd(ml),CS=qd(yl);var Ye;(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"})(Ye||(Ye={}));var Yd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Ds`
577
+ <${ks(this.element)}
578
578
  part="text"
579
579
  class="ft-typography ft-typography--${this.variant}">
580
580
  <slot></slot>
581
- </${Ls(this.element)}>
582
- `:ks`
581
+ </${ks(this.element)}>
582
+ `:Ds`
583
583
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
584
- `}};xt.styles=[Td,Pd,$d,Ld,Qr,kd,Bi,Dd,Md,Fd,Bd,...Ud];Yd([g()],xt.prototype,"element",void 0);Yd([g()],xt.prototype,"variant",void 0);Z("ft-typography")(xt);var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends j{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 st(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new st(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.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=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 $`
584
+ `}};xt.styles=[Td,$d,Pd,Ld,Qr,kd,Bi,Dd,Md,Fd,Bd,...Ud];Yd([g()],xt.prototype,"element",void 0);Yd([g()],xt.prototype,"variant",void 0);Y("ft-typography")(xt);var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends j{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 st(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new st(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.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=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 $`
585
585
  <style>
586
586
  .ft-ripple .ft-ripple--effect {
587
587
  left: ${this.originX}px;
588
588
  top: ${this.originY}px;
589
589
  }
590
590
  </style>
591
- <div class="${Tt(t)}">
591
+ <div class="${Rt(t)}">
592
592
  <div class="ft-ripple--background"></div>
593
593
  <div class="ft-ripple--effect"></div>
594
594
  </div>
595
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.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 t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=_d;Ht([g({type:Boolean})],et.prototype,"primary",void 0);Ht([g({type:Boolean})],et.prototype,"secondary",void 0);Ht([g({type:Boolean})],et.prototype,"unbounded",void 0);Ht([g({type:Boolean})],et.prototype,"activated",void 0);Ht([g({type:Boolean})],et.prototype,"selected",void 0);Ht([g({type:Boolean})],et.prototype,"disabled",void 0);Ht([U()],et.prototype,"hovered",void 0);Ht([U()],et.prototype,"focused",void 0);Ht([U()],et.prototype,"pressed",void 0);Ht([U()],et.prototype,"rippling",void 0);Ht([U()],et.prototype,"originX",void 0);Ht([U()],et.prototype,"originY",void 0);Ht([Q(".ft-ripple")],et.prototype,"ripple",void 0);Ht([Q(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);Z("ft-ripple")(et);var to={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(_.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Xd=L`
595
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.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 t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=_d;Ht([g({type:Boolean})],et.prototype,"primary",void 0);Ht([g({type:Boolean})],et.prototype,"secondary",void 0);Ht([g({type:Boolean})],et.prototype,"unbounded",void 0);Ht([g({type:Boolean})],et.prototype,"activated",void 0);Ht([g({type:Boolean})],et.prototype,"selected",void 0);Ht([g({type:Boolean})],et.prototype,"disabled",void 0);Ht([W()],et.prototype,"hovered",void 0);Ht([W()],et.prototype,"focused",void 0);Ht([W()],et.prototype,"pressed",void 0);Ht([W()],et.prototype,"rippling",void 0);Ht([W()],et.prototype,"originX",void 0);Ht([W()],et.prototype,"originY",void 0);Ht([J(".ft-ripple")],et.prototype,"ripple",void 0);Ht([J(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);Y("ft-ripple")(et);var to={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(_.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Xd=L`
596
596
  .ft-tooltip--container {
597
597
  display: block;
598
598
  }
@@ -639,12 +639,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
639
639
  </div>
640
640
  </div>
641
641
  </div>
642
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",$o(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=Xd;zt([g()],ft.prototype,"text",void 0);zt([g({type:Boolean})],ft.prototype,"manual",void 0);zt([g({type:Boolean})],ft.prototype,"inline",void 0);zt([g({type:Number})],ft.prototype,"delay",void 0);zt([g()],ft.prototype,"position",void 0);zt([bo()],ft.prototype,"slotNodes",void 0);zt([Q(".ft-tooltip--container")],ft.prototype,"container",void 0);zt([Q(".ft-tooltip")],ft.prototype,"tooltip",void 0);zt([Q(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);zt([U()],ft.prototype,"visible",void 0);zt([Oe({passive:!0})],ft.prototype,"onTouch",null);zt([Oe({passive:!0})],ft.prototype,"onHover",null);zt([Oe({passive:!0})],ft.prototype,"onOut",null);zt([Oe({passive:!0})],ft.prototype,"onClick",null);Z("ft-tooltip")(ft);var Ar;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;"})(Ar||(Ar={}));var I;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(I||(I={}));var hO=new Map([...["abw"].map(r=>[r,I.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,I.AUDIO]),...["avi"].map(r=>[r,I.AVI]),...["chm","xhs"].map(r=>[r,I.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,I.CODE]),...["csv"].map(r=>[r,I.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,I.DITA]),...["epub"].map(r=>[r,I.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,I.EXCEL]),...["flac"].map(r=>[r,I.FLAC]),...["gif"].map(r=>[r,I.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,I.GZIP]),...["html","htm","xhtml"].map(r=>[r,I.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,I.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,I.JPEG]),...["json"].map(r=>[r,I.JSON]),...["m4a","m4p"].map(r=>[r,I.M4A]),...["mov","qt"].map(r=>[r,I.MOV]),...["mp3"].map(r=>[r,I.MP3]),...["mp4","m4v"].map(r=>[r,I.MP4]),...["ogg","oga"].map(r=>[r,I.OGG]),...["pdf","ps"].map(r=>[r,I.PDF]),...["png"].map(r=>[r,I.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,I.POWERPOINT]),...["rar"].map(r=>[r,I.RAR]),...["stp"].map(r=>[r,I.STP]),...["txt","rtf","md","mdown"].map(r=>[r,I.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,I.VIDEO]),...["wav"].map(r=>[r,I.WAV]),...["wma"].map(r=>[r,I.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,I.WORD]),...["xml","xsl","rdf"].map(r=>[r,I.XML]),...["yaml","yml","x-yaml"].map(r=>[r,I.YAML]),...["zip"].map(r=>[r,I.ZIP])]);var mO={[I.ABW]:"#91ABC6",[I.AUDIO]:"#1795E3",[I.AVI]:"#E63324",[I.CHM]:"#71C3EB",[I.CODE]:"#71C3EB",[I.CSV]:"#1F7345",[I.DITA]:"#71C3EB",[I.EPUB]:"#85B926",[I.EXCEL]:"#1F7345",[I.FLAC]:"#1795E3",[I.GIF]:"#59B031",[I.GZIP]:"#F8AB36",[I.HTML]:"#71C3EB",[I.IMAGE]:"#59B031",[I.JPEG]:"#59B031",[I.JSON]:"#71C3EB",[I.M4A]:"#1795E3",[I.MOV]:"#E63324",[I.MP3]:"#1795E3",[I.MP4]:"#E63324",[I.OGG]:"#1795E3",[I.PDF]:"#E44948",[I.PNG]:"#59B031",[I.POWERPOINT]:"#B54A2B",[I.RAR]:"#F8AB36",[I.STP]:"#3764B1",[I.TEXT]:"#3162AB",[I.UNKNOWN]:"#999999",[I.VIDEO]:"#E63324",[I.WAV]:"#1795E3",[I.WMA]:"#1795E3",[I.WORD]:"#3162AB",[I.XML]:"#71C3EB",[I.YAML]:"#71C3EB",[I.ZIP]:"#F8AB36"};var $t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})($t||($t={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends j{constructor(){super(...arguments),this.resolvedIcon=V}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,e=t!==$t.material||!!this.value;return $`
642
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Po(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=Xd;zt([g()],ft.prototype,"text",void 0);zt([g({type:Boolean})],ft.prototype,"manual",void 0);zt([g({type:Boolean})],ft.prototype,"inline",void 0);zt([g({type:Number})],ft.prototype,"delay",void 0);zt([g()],ft.prototype,"position",void 0);zt([bo()],ft.prototype,"slotNodes",void 0);zt([J(".ft-tooltip--container")],ft.prototype,"container",void 0);zt([J(".ft-tooltip")],ft.prototype,"tooltip",void 0);zt([J(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);zt([W()],ft.prototype,"visible",void 0);zt([Ce({passive:!0})],ft.prototype,"onTouch",null);zt([Ce({passive:!0})],ft.prototype,"onHover",null);zt([Ce({passive:!0})],ft.prototype,"onOut",null);zt([Ce({passive:!0})],ft.prototype,"onClick",null);Y("ft-tooltip")(ft);var Ar;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;"})(Ar||(Ar={}));var I;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(I||(I={}));var hO=new Map([...["abw"].map(r=>[r,I.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,I.AUDIO]),...["avi"].map(r=>[r,I.AVI]),...["chm","xhs"].map(r=>[r,I.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,I.CODE]),...["csv"].map(r=>[r,I.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,I.DITA]),...["epub"].map(r=>[r,I.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,I.EXCEL]),...["flac"].map(r=>[r,I.FLAC]),...["gif"].map(r=>[r,I.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,I.GZIP]),...["html","htm","xhtml"].map(r=>[r,I.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,I.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,I.JPEG]),...["json"].map(r=>[r,I.JSON]),...["m4a","m4p"].map(r=>[r,I.M4A]),...["mov","qt"].map(r=>[r,I.MOV]),...["mp3"].map(r=>[r,I.MP3]),...["mp4","m4v"].map(r=>[r,I.MP4]),...["ogg","oga"].map(r=>[r,I.OGG]),...["pdf","ps"].map(r=>[r,I.PDF]),...["png"].map(r=>[r,I.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,I.POWERPOINT]),...["rar"].map(r=>[r,I.RAR]),...["stp"].map(r=>[r,I.STP]),...["txt","rtf","md","mdown"].map(r=>[r,I.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,I.VIDEO]),...["wav"].map(r=>[r,I.WAV]),...["wma"].map(r=>[r,I.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,I.WORD]),...["xml","xsl","rdf"].map(r=>[r,I.XML]),...["yaml","yml","x-yaml"].map(r=>[r,I.YAML]),...["zip"].map(r=>[r,I.ZIP])]);var mO={[I.ABW]:"#91ABC6",[I.AUDIO]:"#1795E3",[I.AVI]:"#E63324",[I.CHM]:"#71C3EB",[I.CODE]:"#71C3EB",[I.CSV]:"#1F7345",[I.DITA]:"#71C3EB",[I.EPUB]:"#85B926",[I.EXCEL]:"#1F7345",[I.FLAC]:"#1795E3",[I.GIF]:"#59B031",[I.GZIP]:"#F8AB36",[I.HTML]:"#71C3EB",[I.IMAGE]:"#59B031",[I.JPEG]:"#59B031",[I.JSON]:"#71C3EB",[I.M4A]:"#1795E3",[I.MOV]:"#E63324",[I.MP3]:"#1795E3",[I.MP4]:"#E63324",[I.OGG]:"#1795E3",[I.PDF]:"#E44948",[I.PNG]:"#59B031",[I.POWERPOINT]:"#B54A2B",[I.RAR]:"#F8AB36",[I.STP]:"#3764B1",[I.TEXT]:"#3162AB",[I.UNKNOWN]:"#999999",[I.VIDEO]:"#E63324",[I.WAV]:"#1795E3",[I.WMA]:"#1795E3",[I.WORD]:"#3162AB",[I.XML]:"#71C3EB",[I.YAML]:"#71C3EB",[I.ZIP]:"#F8AB36"};var Pt;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Pt||(Pt={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends j{constructor(){super(...arguments),this.resolvedIcon=U}render(){let t=this.variant&&Object.values(Pt).includes(this.variant)?this.variant:Pt.fluid_topics,e=t!==Pt.material||!!this.value;return $`
643
643
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
644
- ${Dn(this.resolvedIcon)}
644
+ ${Mn(this.resolvedIcon)}
645
645
  <slot ?hidden=${e}></slot>
646
646
  </i>
647
- `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=I[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||V;break;default:this.resolvedIcon=(e=Ar[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=Hd;Ui([g()],Ot.prototype,"variant",void 0);Ui([g()],Ot.prototype,"value",void 0);Ui([U()],Ot.prototype,"resolvedIcon",void 0);Ui([Q("slot")],Ot.prototype,"slottedContent",void 0);Z("ft-icon")(Ot);var Et={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",_.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Jd=L`
647
+ `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Pt.file_format:this.resolvedIcon=(t=I[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Pt.material:this.resolvedIcon=this.value||U;break;default:this.resolvedIcon=(e=Ar[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=Hd;Ui([g()],Ot.prototype,"variant",void 0);Ui([g()],Ot.prototype,"value",void 0);Ui([W()],Ot.prototype,"resolvedIcon",void 0);Ui([J("slot")],Ot.prototype,"slottedContent",void 0);Y("ft-icon")(Ot);var wt={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",_.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Jd=L`
648
648
  .ft-switch-option {
649
649
  position: relative;
650
650
  display: inline-block;
@@ -663,8 +663,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
663
663
 
664
664
  border-style: solid;
665
665
  border-color: ${yt.borderColor};
666
- border-width: ${Et.borderWidthVertical} ${Et.borderWidthRight} ${Et.borderWidthVertical} ${Et.borderWidthLeft};
667
- border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
666
+ border-width: ${wt.borderWidthVertical} ${wt.borderWidthRight} ${wt.borderWidthVertical} ${wt.borderWidthLeft};
667
+ border-radius: ${wt.borderRadiusLeft} ${wt.borderRadiusRight} ${wt.borderRadiusRight} ${wt.borderRadiusLeft};
668
668
  display: flex;
669
669
  align-items: center;
670
670
  justify-content: center;
@@ -681,7 +681,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
681
681
 
682
682
  .ft-switch-option--selected .ft-switch-option--content:before {
683
683
  background-color: ${yt.selectedBackgroundColor};
684
- border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
684
+ border-radius: ${wt.borderRadiusLeft} ${wt.borderRadiusRight} ${wt.borderRadiusRight} ${wt.borderRadiusLeft};
685
685
  position: absolute;
686
686
  inset: 0;
687
687
  content: "";
@@ -732,8 +732,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
732
732
  .ft-switch-option--selected ft-icon {
733
733
  color: ${yt.selectedTextColor};
734
734
  }
735
- `;var oe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ds=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Ms=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Ms(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($`
736
- <label part="label" for="input" class=${Tt(t)}
735
+ `;var ie=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ms=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Fs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Fs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($`
736
+ <label part="label" for="input" class=${Rt(t)}
737
737
  @click=${this.onChange}>
738
738
  <div class="ft-switch-option--content">
739
739
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
@@ -754,16 +754,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
754
754
  position="${this.tooltipPosition}">
755
755
  ${t}
756
756
  </ft-tooltip>
757
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ds(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
757
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ms(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
758
758
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
759
- `:V}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ot};St.styles=[xr,Jd];oe([g()],St.prototype,"value",void 0);oe([g()],St.prototype,"icon",void 0);oe([g()],St.prototype,"iconVariant",void 0);oe([g()],St.prototype,"label",void 0);oe([g()],St.prototype,"tooltipPosition",void 0);oe([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);oe([g({type:Boolean})],St.prototype,"trailingIcon",void 0);oe([g({type:Boolean})],St.prototype,"unselectable",void 0);oe([Q(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);oe([Q(".ft-switch-option--input")],St.prototype,"input",void 0);oe([U()],St.prototype,"isFocused",void 0);var Rr=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Fs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Bt=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
760
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${Tt(t)}" role="radiogroup" aria-label=${this.label}>
759
+ `:U}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ot};St.styles=[xr,Jd];ie([g()],St.prototype,"value",void 0);ie([g()],St.prototype,"icon",void 0);ie([g()],St.prototype,"iconVariant",void 0);ie([g()],St.prototype,"label",void 0);ie([g()],St.prototype,"tooltipPosition",void 0);ie([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);ie([g({type:Boolean})],St.prototype,"trailingIcon",void 0);ie([g({type:Boolean})],St.prototype,"unselectable",void 0);ie([J(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);ie([J(".ft-switch-option--input")],St.prototype,"input",void 0);ie([W()],St.prototype,"isFocused",void 0);var Rr=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Bt=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
760
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${Rt(t)}" role="radiogroup" aria-label=${this.label}>
761
761
  <slot @slotchange=${this.onSlotchange}
762
762
  @option-change=${this.onOptionChangeByScript}
763
763
  @option-change-by-user=${this.onOptionChangeByUser}
764
764
  ></slot>
765
765
  </div>
766
- `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(e=this.options.indexOf(t.target)),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof St&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){var e;(e=t.shadowRoot)===null||e===void 0||e.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Fs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Bt.elementDefinitions={};Bt.styles=L`
766
+ `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(e=this.options.indexOf(t.target)),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof St&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){var e;(e=t.shadowRoot)===null||e===void 0||e.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Bs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Bt.elementDefinitions={};Bt.styles=L`
767
767
  :host {
768
768
  display: inline-block;
769
769
  }
@@ -779,25 +779,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
779
779
  }
780
780
 
781
781
  .ft-switch slot::slotted(ft-switch-option) {
782
- ${x(Et.borderRadiusLeft,"0")};
783
- ${x(Et.borderRadiusRight,"0")};
784
- ${x(Et.borderWidthLeft,"0")};
782
+ ${x(wt.borderRadiusLeft,"0")};
783
+ ${x(wt.borderRadiusRight,"0")};
784
+ ${x(wt.borderWidthLeft,"0")};
785
785
  }
786
786
 
787
787
  .ft-switch slot::slotted(ft-switch-option:first-child) {
788
- ${x(Et.borderRadiusLeft,yt.borderRadius)};
789
- ${x(Et.borderWidthLeft,"1px")};
788
+ ${x(wt.borderRadiusLeft,yt.borderRadius)};
789
+ ${x(wt.borderWidthLeft,"1px")};
790
790
  }
791
791
 
792
792
  .ft-switch slot::slotted(ft-switch-option:last-child) {
793
- ${x(Et.borderRadiusRight,yt.borderRadius)};
793
+ ${x(wt.borderRadiusRight,yt.borderRadius)};
794
794
  }
795
795
 
796
796
  .ft-switch--dense slot::slotted(ft-switch-option) {
797
797
  --ft-switch-internal-vertical-padding: 2px;
798
798
  --ft-switch-internal-horizontal-padding: 4px;
799
799
  }
800
- `;Rr([g({type:Boolean})],Bt.prototype,"dense",void 0);Rr([g({type:Boolean})],Bt.prototype,"unselectable",void 0);Rr([g()],Bt.prototype,"label",void 0);Rr([Q(".ft-switch slot")],Bt.prototype,"slottedContent",void 0);Rr([U()],Bt.prototype,"selectedOption",void 0);Rr([U()],Bt.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([Q(".ft-switch")],Bt.prototype,"ftSwitchDiv",void 0);Z("ft-switch")(Bt);Z("ft-switch-option")(St);var Qd={colorOutline:o.external(_.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system")},tp=L`
800
+ `;Rr([g({type:Boolean})],Bt.prototype,"dense",void 0);Rr([g({type:Boolean})],Bt.prototype,"unselectable",void 0);Rr([g()],Bt.prototype,"label",void 0);Rr([J(".ft-switch slot")],Bt.prototype,"slottedContent",void 0);Rr([W()],Bt.prototype,"selectedOption",void 0);Rr([W()],Bt.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([J(".ft-switch")],Bt.prototype,"ftSwitchDiv",void 0);Y("ft-switch")(Bt);Y("ft-switch-option")(St);var Qd={colorOutline:o.external(_.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system")},tp=L`
801
801
  :host {
802
802
  display: block;
803
803
  }
@@ -815,10 +815,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
815
815
  .ft-resizer:hover ft-icon {
816
816
  color: ${Qd.colorOnSurfaceMedium};
817
817
  }
818
- `;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bs=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},Lt=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return $`
818
+ `;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Us=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},Lt=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Pt.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return $`
819
819
  <style>
820
820
  .ft-resizer {
821
- cursor: ${ve(this.cursor)}
821
+ cursor: ${xe(this.cursor)}
822
822
  }
823
823
  </style>
824
824
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -826,25 +826,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
826
826
  @touchstart=${this.initDragFromTouch}>
827
827
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
828
828
  </div>
829
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Bs(i,n))}};Lt.elementDefinitions={"ft-icon":Ot};Lt.styles=[vr,tp];Xe([g({type:Number})],Lt.prototype,"initialWidth",void 0);Xe([g({type:Number})],Lt.prototype,"initialHeight",void 0);Xe([g()],Lt.prototype,"icon",void 0);Xe([g()],Lt.prototype,"iconVariant",void 0);Xe([g()],Lt.prototype,"cursor",void 0);Xe([U()],Lt.prototype,"dragging",void 0);Xe([Oe({passive:!0})],Lt.prototype,"initDragFromMouse",null);Xe([Oe({passive:!0})],Lt.prototype,"initDragFromTouch",null);Z("ft-resizer")(Lt);var H={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","",_.colorOutline),textColor:o.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),colorSurface:o.external(_.colorSurface,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},ep=L`
829
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Us(i,n))}};Lt.elementDefinitions={"ft-icon":Ot};Lt.styles=[vr,tp];Xe([g({type:Number})],Lt.prototype,"initialWidth",void 0);Xe([g({type:Number})],Lt.prototype,"initialHeight",void 0);Xe([g()],Lt.prototype,"icon",void 0);Xe([g()],Lt.prototype,"iconVariant",void 0);Xe([g()],Lt.prototype,"cursor",void 0);Xe([W()],Lt.prototype,"dragging",void 0);Xe([Ce({passive:!0})],Lt.prototype,"initDragFromMouse",null);Xe([Ce({passive:!0})],Lt.prototype,"initDragFromTouch",null);Y("ft-resizer")(Lt);var z={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","",_.colorOutline),textColor:o.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),colorSurface:o.external(_.colorSurface,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},ep=L`
830
830
  .ft-input-label {
831
831
  position: absolute;
832
832
  inset: 0;
833
833
  display: flex;
834
- background-color: ${H.colorSurface};
835
- border-radius: ${H.borderRadiusS} ${H.borderRadiusS} 0 0;
834
+ background-color: ${z.colorSurface};
835
+ border-radius: ${z.borderRadiusS} ${z.borderRadiusS} 0 0;
836
836
  }
837
837
 
838
838
  .ft-input-label--outlined {
839
- border-radius: ${H.borderRadiusS};
839
+ border-radius: ${z.borderRadiusS};
840
840
  }
841
841
 
842
842
  .ft-input-label {
843
- border-color: ${H.borderColor};
843
+ border-color: ${z.borderColor};
844
844
  }
845
845
 
846
846
  .ft-input-label.ft-input-label--in-error {
847
- border-color: ${H.colorError}
847
+ border-color: ${z.colorError}
848
848
  }
849
849
 
850
850
  .ft-input-label:before,
@@ -857,7 +857,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
857
857
  }
858
858
 
859
859
  .ft-input-label:before {
860
- width: calc(${H.horizontalSpacing} - 4px);
860
+ width: calc(${z.horizontalSpacing} - 4px);
861
861
  flex-shrink: 0;
862
862
  }
863
863
 
@@ -873,20 +873,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
873
873
  border-bottom-width: 1px;
874
874
  border-bottom-style: solid;
875
875
  border-color: inherit;
876
- color: ${H.textColor};
876
+ color: ${z.textColor};
877
877
  transition: font-size 250ms, line-height 250ms, color 250ms;
878
- max-width: calc(${H.labelMaxWidth} - 2 * (${H.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
878
+ max-width: calc(${z.labelMaxWidth} - 2 * (${z.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
879
879
  text-overflow: ellipsis;
880
- ${x(re.fontSize,H.fontSize)};
881
- ${x(re.lineHeight,H.fontSize)};
880
+ ${x(oe.fontSize,z.fontSize)};
881
+ ${x(oe.lineHeight,z.fontSize)};
882
882
  }
883
883
 
884
884
  .ft-input-label--in-error .ft-input-label--text {
885
- color: ${H.colorError}
885
+ color: ${z.colorError}
886
886
  }
887
887
 
888
888
  .ft-input-label--disabled .ft-input-label--text {
889
- color: ${H.disabledTextColor};
889
+ color: ${z.disabledTextColor};
890
890
  }
891
891
 
892
892
  .ft-input-label--hidden-text {
@@ -903,19 +903,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
903
903
  overflow: hidden;
904
904
  white-space: nowrap;
905
905
  text-overflow: ellipsis;
906
- padding: ${H.verticalSpacing} 4px;
907
- margin: calc(${H.verticalSpacing} * -1) 0;
906
+ padding: ${z.verticalSpacing} 4px;
907
+ margin: calc(${z.verticalSpacing} * -1) 0;
908
908
  max-width: 100%;
909
909
  box-sizing: border-box;
910
910
  }
911
911
 
912
912
  .ft-input-label--raised .ft-input-label--text {
913
- ${x(re.fontSize,H.raisedFontSize)};
914
- ${x(re.lineHeight,H.raisedFontSize)};
913
+ ${x(oe.fontSize,z.raisedFontSize)};
914
+ ${x(oe.lineHeight,z.raisedFontSize)};
915
915
  }
916
916
 
917
917
  .ft-input-label--raised .ft-input-label--floating-text {
918
- top: ${H.verticalSpacing};
918
+ top: ${z.verticalSpacing};
919
919
  }
920
920
 
921
921
  .ft-input-label--outlined .ft-input-label--text,
@@ -928,20 +928,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
928
928
  .ft-input-label--outlined:before {
929
929
  border-left-width: 1px;
930
930
  border-left-style: solid;
931
- border-radius: ${H.borderRadiusS} 0 0 ${H.borderRadiusS};
931
+ border-radius: ${z.borderRadiusS} 0 0 ${z.borderRadiusS};
932
932
  }
933
933
 
934
934
  .ft-input-label--outlined:after {
935
935
  border-right-width: 1px;
936
936
  border-right-style: solid;
937
- border-radius: 0 ${H.borderRadiusS} ${H.borderRadiusS} 0;
937
+ border-radius: 0 ${z.borderRadiusS} ${z.borderRadiusS} 0;
938
938
  }
939
939
 
940
940
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
941
941
  padding: 2px 4px;
942
- z-index: ${H.raisedZIndex};
943
- background-color: ${H.colorSurface};
944
- border-radius: ${H.borderRadiusS};
942
+ z-index: ${z.raisedZIndex};
943
+ background-color: ${z.colorSurface};
944
+ border-radius: ${z.borderRadiusS};
945
945
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
946
946
  }
947
947
 
@@ -949,7 +949,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
949
949
  border-top: none;
950
950
  }
951
951
  `;var jo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ut=class extends j{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"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};return $`
952
- <div class="${Tt(t)}">
952
+ <div class="${Rt(t)}">
953
953
  ${this.text?$`
954
954
  <div class="ft-input-label--text ft-typography--caption">
955
955
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -957,7 +957,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
957
957
  </div>
958
958
  `:null}
959
959
  </div>
960
- `}};Ut.elementDefinitions={};Ut.styles=[Bi,ep];jo([g({type:String})],Ut.prototype,"text",void 0);jo([g({type:Boolean})],Ut.prototype,"raised",void 0);jo([g({type:Boolean})],Ut.prototype,"outlined",void 0);jo([g({type:Boolean})],Ut.prototype,"disabled",void 0);jo([g({type:Boolean})],Ut.prototype,"error",void 0);Z("ft-input-label")(Ut);var it={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},rp=L`
960
+ `}};Ut.elementDefinitions={};Ut.styles=[Bi,ep];jo([g({type:String})],Ut.prototype,"text",void 0);jo([g({type:Boolean})],Ut.prototype,"raised",void 0);jo([g({type:Boolean})],Ut.prototype,"outlined",void 0);jo([g({type:Boolean})],Ut.prototype,"disabled",void 0);jo([g({type:Boolean})],Ut.prototype,"error",void 0);Y("ft-input-label")(Ut);var nt={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},rp=L`
961
961
  *:focus {
962
962
  outline: none;
963
963
  }
@@ -969,10 +969,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
969
969
  }
970
970
 
971
971
  ft-input-label {
972
- ${x(H.fontSize,it.fontSize)};
973
- ${x(H.raisedFontSize,it.labelSize)};
974
- ${x(H.verticalSpacing,it.verticalSpacing)};
975
- ${x(H.horizontalSpacing,it.horizontalSpacing)};
972
+ ${x(z.fontSize,nt.fontSize)};
973
+ ${x(z.raisedFontSize,nt.labelSize)};
974
+ ${x(z.verticalSpacing,nt.verticalSpacing)};
975
+ ${x(z.horizontalSpacing,nt.horizontalSpacing)};
976
976
  }
977
977
 
978
978
  .ft-text-area--main-panel {
@@ -1003,12 +1003,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1003
1003
  align-self: stretch;
1004
1004
  resize: none;
1005
1005
 
1006
- ${x(Xt.fontSize,it.fontSize)};
1007
- ${x(Xt.lineHeight,it.fontSize)};
1008
- color: ${it.colorOnSurface};
1006
+ ${x(Xt.fontSize,nt.fontSize)};
1007
+ ${x(Xt.lineHeight,nt.fontSize)};
1008
+ color: ${nt.colorOnSurface};
1009
1009
 
1010
- padding: 0 ${it.horizontalSpacing};
1011
- margin: calc(${it.verticalSpacing} + ${it.labelSize} / 2) 0 ${it.verticalSpacing} 0;
1010
+ padding: 0 ${nt.horizontalSpacing};
1011
+ margin: calc(${nt.verticalSpacing} + ${nt.labelSize} / 2) 0 ${nt.verticalSpacing} 0;
1012
1012
 
1013
1013
  border: none;
1014
1014
  background: none;
@@ -1017,7 +1017,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1017
1017
  }
1018
1018
 
1019
1019
  .ft-text-area--disabled .ft-text-area--input {
1020
- color: ${it.colorOnSurfaceDisabled};
1020
+ color: ${nt.colorOnSurfaceDisabled};
1021
1021
  }
1022
1022
 
1023
1023
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1025,49 +1025,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1025
1025
  }
1026
1026
 
1027
1027
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1028
- ${x(H.borderColor,it.colorPrimary)};
1029
- ${x(H.textColor,it.colorPrimary)};
1028
+ ${x(z.borderColor,nt.colorPrimary)};
1029
+ ${x(z.textColor,nt.colorPrimary)};
1030
1030
  }
1031
1031
 
1032
1032
  .ft-text-area--filled .ft-text-area--input-panel {
1033
- border-radius: ${it.borderRadiusS} ${it.borderRadiusS} 0 0;
1033
+ border-radius: ${nt.borderRadiusS} ${nt.borderRadiusS} 0 0;
1034
1034
  }
1035
1035
 
1036
1036
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1037
1037
  align-self: stretch;
1038
- margin-bottom: ${it.verticalSpacing};
1039
- margin-top: calc(${it.labelSize} + 2 * ${it.verticalSpacing});
1038
+ margin-bottom: ${nt.verticalSpacing};
1039
+ margin-top: calc(${nt.labelSize} + 2 * ${nt.verticalSpacing});
1040
1040
  }
1041
1041
 
1042
1042
  .ft-text-area--outlined .ft-text-area--input-panel {
1043
- border-radius: ${it.borderRadiusS};
1043
+ border-radius: ${nt.borderRadiusS};
1044
1044
  }
1045
1045
 
1046
1046
  .ft-text-area--helper-text {
1047
- padding: 0 12px 0 ${it.horizontalSpacing};
1048
- color: ${it.helperColor};
1047
+ padding: 0 12px 0 ${nt.horizontalSpacing};
1048
+ color: ${nt.helperColor};
1049
1049
  }
1050
1050
 
1051
1051
  .ft-text-area--in-error .ft-text-area--input,
1052
1052
  .ft-text-area--in-error .ft-text-area--helper-text {
1053
- color: ${it.colorError};
1053
+ color: ${nt.colorError};
1054
1054
  }
1055
1055
 
1056
1056
  ft-resizer {
1057
1057
  position: absolute;
1058
1058
  bottom: 0;
1059
1059
  }
1060
- `;var Pe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_t=class extends wr(j,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1060
+ `;var Pe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Nt=class extends Er(j,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1061
1061
  <style>
1062
1062
  .ft-text-area--main-panel {
1063
- height: calc(4 * ${it.verticalSpacing} + ${it.labelSize} + ${it.fontSize} + ${this.height}px);
1063
+ height: calc(4 * ${nt.verticalSpacing} + ${nt.labelSize} + ${nt.fontSize} + ${this.height}px);
1064
1064
  }
1065
1065
 
1066
1066
  ft-resizer {
1067
1067
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1068
1068
  }
1069
1069
  </style>
1070
- <div class="${Tt(t)}">
1070
+ <div class="${Rt(t)}">
1071
1071
  <div class="ft-text-area--main-panel">
1072
1072
  <ft-input-label text="${this.label}"
1073
1073
  ?disabled=${this.disabled}
@@ -1099,14 +1099,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1099
1099
  ${this.helper}
1100
1100
  </ft-typography>`:void 0}
1101
1101
  </div>
1102
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};_t.elementDefinitions={"ft-input-label":Ut,"ft-resizer":Lt,"ft-ripple":et,"ft-typography":xt};_t.styles=[Qr,rp];Pe([g({type:String})],_t.prototype,"label",void 0);Pe([g({reflect:!0})],_t.prototype,"value",void 0);Pe([g({type:String})],_t.prototype,"helper",void 0);Pe([g({type:Boolean})],_t.prototype,"outlined",void 0);Pe([g({type:Boolean})],_t.prototype,"disabled",void 0);Pe([g({type:Boolean})],_t.prototype,"error",void 0);Pe([g({type:Number,reflect:!0})],_t.prototype,"height",void 0);Pe([Q("textarea")],_t.prototype,"textarea",void 0);Pe([U()],_t.prototype,"focused",void 0);Z("ft-text-area")(_t);var _r=class extends j{render(){return $`
1102
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Nt.elementDefinitions={"ft-input-label":Ut,"ft-resizer":Lt,"ft-ripple":et,"ft-typography":xt};Nt.styles=[Qr,rp];Pe([g({type:String})],Nt.prototype,"label",void 0);Pe([g({reflect:!0})],Nt.prototype,"value",void 0);Pe([g({type:String})],Nt.prototype,"helper",void 0);Pe([g({type:Boolean})],Nt.prototype,"outlined",void 0);Pe([g({type:Boolean})],Nt.prototype,"disabled",void 0);Pe([g({type:Boolean})],Nt.prototype,"error",void 0);Pe([g({type:Number,reflect:!0})],Nt.prototype,"height",void 0);Pe([J("textarea")],Nt.prototype,"textarea",void 0);Pe([W()],Nt.prototype,"focused",void 0);Y("ft-text-area")(Nt);var _r=class extends j{render(){return $`
1103
1103
  <div class="ft-loader">
1104
1104
  <div></div>
1105
1105
  <div></div>
1106
1106
  <div></div>
1107
1107
  <div></div>
1108
1108
  </div>
1109
- `}};_r.styles=Wd;Z("ft-loader")(_r);var kt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends wr(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",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.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t,e,i;let n=$`
1109
+ `}};_r.styles=Wd;Y("ft-loader")(_r);var kt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends Er(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",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.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t,e,i;let n=$`
1110
1110
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1111
1111
  <ft-typography part="label"
1112
1112
  variant=${this.typographyVariant}
@@ -1120,14 +1120,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1120
1120
  <a href="${a}"
1121
1121
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1122
1122
  part="button"
1123
- class="${Tt(this.buttonClasses)}"
1123
+ class="${Rt(this.buttonClasses)}"
1124
1124
  aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
1125
1125
  ?disabled=${this.isDisabled()}>
1126
1126
  ${n}
1127
1127
  </a>
1128
1128
  `:$`
1129
1129
  <button part="button"
1130
- class="${Tt(this.buttonClasses)}"
1130
+ class="${Rt(this.buttonClasses)}"
1131
1131
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1132
1132
  ?disabled=${this.isDisabled()}>
1133
1133
  ${n}
@@ -1143,7 +1143,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1143
1143
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1144
1144
  `:$`
1145
1145
  <slot part="icon" name="icon"></slot>
1146
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return xi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};mt.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ot,"ft-loader":_r};kt([g()],mt.prototype,"href",void 0);kt([g()],mt.prototype,"target",void 0);kt([g({type:String,reflect:!0})],mt.prototype,"role",void 0);kt([g()],mt.prototype,"type",void 0);kt([g({type:Boolean})],mt.prototype,"disabled",void 0);kt([g()],mt.prototype,"label",void 0);kt([g()],mt.prototype,"icon",void 0);kt([g()],mt.prototype,"iconVariant",void 0);kt([g({type:Boolean})],mt.prototype,"trailingIcon",void 0);kt([g({type:Boolean})],mt.prototype,"loading",void 0);kt([g({attribute:"aria-label"})],mt.prototype,"ariaLabel",void 0);kt([g()],mt.prototype,"tooltipPosition",void 0);kt([g({type:Boolean})],mt.prototype,"hideTooltip",void 0);kt([g({type:Boolean})],mt.prototype,"forceTooltip",void 0);kt([Q(".ft-button")],mt.prototype,"button",void 0);kt([Q(".ft-button--label slot")],mt.prototype,"slottedContent",void 0);var Wi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ie=class extends mt{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"}};ie.styles=[xr,jd];Wi([g({type:Boolean})],ie.prototype,"primary",void 0);Wi([g({type:Boolean})],ie.prototype,"outlined",void 0);Wi([g({type:Boolean})],ie.prototype,"dense",void 0);Wi([g({type:Boolean})],ie.prototype,"round",void 0);var op=[L`
1146
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return xi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};mt.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ot,"ft-loader":_r};kt([g()],mt.prototype,"href",void 0);kt([g()],mt.prototype,"target",void 0);kt([g({type:String,reflect:!0})],mt.prototype,"role",void 0);kt([g()],mt.prototype,"type",void 0);kt([g({type:Boolean})],mt.prototype,"disabled",void 0);kt([g()],mt.prototype,"label",void 0);kt([g()],mt.prototype,"icon",void 0);kt([g()],mt.prototype,"iconVariant",void 0);kt([g({type:Boolean})],mt.prototype,"trailingIcon",void 0);kt([g({type:Boolean})],mt.prototype,"loading",void 0);kt([g({attribute:"aria-label"})],mt.prototype,"ariaLabel",void 0);kt([g()],mt.prototype,"tooltipPosition",void 0);kt([g({type:Boolean})],mt.prototype,"hideTooltip",void 0);kt([g({type:Boolean})],mt.prototype,"forceTooltip",void 0);kt([J(".ft-button")],mt.prototype,"button",void 0);kt([J(".ft-button--label slot")],mt.prototype,"slottedContent",void 0);var Wi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ne=class extends mt{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"}};ne.styles=[xr,jd];Wi([g({type:Boolean})],ne.prototype,"primary",void 0);Wi([g({type:Boolean})],ne.prototype,"outlined",void 0);Wi([g({type:Boolean})],ne.prototype,"dense",void 0);Wi([g({type:Boolean})],ne.prototype,"round",void 0);var op=[L`
1147
1147
  :host {
1148
1148
  display: inline-block;
1149
1149
  max-width: 100%;
@@ -1609,15 +1609,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1609
1609
  .ftds--size-small.ft-button--icon-only {
1610
1610
  width: ${b.smallIconOnlyWidth};
1611
1611
  }
1612
- `,vr];var Hi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},$e=class extends Ri(mt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mr.brand,this.iconVariant=$t.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 Ee.large:return Ye.body2medium;case Ee.medium:return Ye.caption1medium;case Ee.small:return Ye.caption2medium}}};$e.styles=[xr,op];Hi([g({type:Boolean})],$e.prototype,"primary",void 0);Hi([g({type:Boolean})],$e.prototype,"secondary",void 0);Hi([g({type:Boolean})],$e.prototype,"tertiary",void 0);Hi([g({type:Boolean})],$e.prototype,"round",void 0);Z("ft-button")(ie);Z("ftds-button")($e);var ip=L`
1612
+ `,vr];var Hi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Le=class extends Ri(mt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mr.brand,this.iconVariant=Pt.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 Ee.large:return Ye.body2medium;case Ee.medium:return Ye.caption1medium;case Ee.small:return Ye.caption2medium}}};Le.styles=[xr,op];Hi([g({type:Boolean})],Le.prototype,"primary",void 0);Hi([g({type:Boolean})],Le.prototype,"secondary",void 0);Hi([g({type:Boolean})],Le.prototype,"tertiary",void 0);Hi([g({type:Boolean})],Le.prototype,"round",void 0);Y("ft-button")(ne);Y("ftds-button")(Le);var ip=L`
1613
1613
  `;var np=L`
1614
- `;var nh="ft-app-info",Us=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ah={session:(r,t)=>{Qt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.dispatchEvent(new Us(t.payload)),0))}},M=Ne.get({name:nh,reducers:ah,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Nr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var ge=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ce,this.cache=t?n.commonCache:new ce}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nr.await()}clearCache(){this.cache.clearAll()}};var ap,sh=Symbol("clearAfterUnitTest"),zi=class extends ge{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ap]=()=>{this.defaultMessages={},this.cache=new ce,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};Qt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Do((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>bi(0).then(()=>e()).catch(()=>null)))}};ap=sh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Ir=window.FluidTopicsI18nService,sp=window.FluidTopicsCustomI18nService;var Dt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>Nr.get(),this.messageContexts=[],this.cache=new ce,this.cleanSessionDebouncer=new st}render(){return $`
1614
+ `;var nh="ft-app-info",Ws=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ah={session:(r,t)=>{te(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.dispatchEvent(new Ws(t.payload)),0))}},M=Ie.get({name:nh,reducers:ah,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Nr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var be=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new de,this.cache=t?n.commonCache:new de}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nr.await()}clearCache(){this.cache.clearAll()}};var ap,sh=Symbol("clearAfterUnitTest"),zi=class extends be{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ap]=()=>{this.defaultMessages={},this.cache=new de,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};te(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Do((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>bi(0).then(()=>e()).catch(()=>null)))}};ap=sh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Ir=window.FluidTopicsI18nService,sp=window.FluidTopicsCustomI18nService;var Dt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>Nr.get(),this.messageContexts=[],this.cache=new de,this.cleanSessionDebouncer=new st}render(){return $`
1615
1615
  <slot></slot>
1616
- `}update(t){var e,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ir.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((e=this.localesConfiguration)===null||e===void 0?void 0:e.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=np;Dt([g()],gt.prototype,"baseUrl",void 0);Dt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Dt([g()],gt.prototype,"uiLocale",void 0);Dt([de(null)],gt.prototype,"availableUiLocales",void 0);Dt([de(null)],gt.prototype,"metadataConfiguration",void 0);Dt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Dt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Dt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Dt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],gt.prototype,"noCustomComponent",void 0);Dt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Dt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Dt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Dt([g({type:Object})],gt.prototype,"apiProvider",void 0);Dt([de([])],gt.prototype,"messageContexts",void 0);Dt([de(void 0)],gt.prototype,"session",void 0);Dt([U()],gt.prototype,"localesConfiguration",void 0);var Vi=class extends ge{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ji=class extends ge{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var lh="ft-user-assets",Gi=Ne.get({name:lh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ws=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,this.savedSearchesService=new Vi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();Qt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Gi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Gi.actions.bookmarks(e)}}},lp=new Ws;var Hs=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Hs;var zs=class{highlightHtml(t,e,i){za(t,e,i)}};window.FluidTopicsHighlightHtmlService=new zs;var Vs=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Kr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Vs;Z("ft-app-context")(gt);var ch=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},js=Symbol("i18nAttributes"),Gs=Symbol("i18nListAttributes"),Tr=Symbol("i18nProperties"),Go=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?sp:Ir}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s,l;(a=this[js])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f&&(this[p]=this.getI18nAttributeMessage(f,d,n))}),(s=this[Gs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);this[p]=f?.map(h=>this.getI18nAttributeMessage(h,d,n))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(d))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(n,a){return{...n,message:this.i18n({context:n.context,key:n.key,...a})}}getI18nAttributeMessage(n,a,s){var l;let d=!s||((l=n.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return n.context&&n.key&&d?this.buildI18nAttributeMessage(n,a):n}update(n){var a,s,l;super.update(n),(a=this[js])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||d.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,n,p),this[p]=this.getI18nAttributeMessage(f,d))}),(s=this[Gs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);(n.has(p)||d.argsProvider!=null)&&(this[p]=f?.map(h=>(this.addI18nContextIfNeeded(h,n,p),this.getI18nAttributeMessage(h,d))))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.argsProvider!=null&&(this[p]=this.i18n(d))})}getI18nAttributeValue(n){return this[n]}getI18nListAttributeValues(n){return this[n]}addI18nContextIfNeeded(n,a,s){n.context&&n.key&&a.has(s)&&this.addI18nContext(n.context)}connectedCallback(){var n,a,s,l,d,p;super.connectedCallback(),new Set([...(a=(n=this[Tr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[js])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(p=(d=this[Gs])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f))}addI18nMessages(n,a){n=n.toLowerCase(),this[Go].has(n)||this[Go].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Go].forEach(n=>n()),this[Go].clear()}}return t=Go,ch([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var cp=class extends Je(j){},Ki=class extends Je(Zt){};var Ko=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ne=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":V:$`
1616
+ `}update(t){var e,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ir.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((e=this.localesConfiguration)===null||e===void 0?void 0:e.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=np;Dt([g()],gt.prototype,"baseUrl",void 0);Dt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Dt([g()],gt.prototype,"uiLocale",void 0);Dt([pe(null)],gt.prototype,"availableUiLocales",void 0);Dt([pe(null)],gt.prototype,"metadataConfiguration",void 0);Dt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Dt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Dt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Dt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],gt.prototype,"noCustomComponent",void 0);Dt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Dt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Dt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Dt([g({type:Object})],gt.prototype,"apiProvider",void 0);Dt([pe([])],gt.prototype,"messageContexts",void 0);Dt([pe(void 0)],gt.prototype,"session",void 0);Dt([W()],gt.prototype,"localesConfiguration",void 0);var Vi=class extends be{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ji=class extends be{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var lh="ft-user-assets",Gi=Ie.get({name:lh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Hs=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,this.savedSearchesService=new Vi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();te((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Gi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Gi.actions.bookmarks(e)}}},lp=new Hs;var zs=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new zs;var Vs=class{highlightHtml(t,e,i){Va(t,e,i)}};window.FluidTopicsHighlightHtmlService=new Vs;var js=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Kr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new js;Y("ft-app-context")(gt);var ch=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Gs=Symbol("i18nAttributes"),Ks=Symbol("i18nListAttributes"),Tr=Symbol("i18nProperties"),Go=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?sp:Ir}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s,l;(a=this[Gs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f&&(this[p]=this.getI18nAttributeMessage(f,d,n))}),(s=this[Ks])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);this[p]=f?.map(h=>this.getI18nAttributeMessage(h,d,n))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(d))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(n,a){return{...n,message:this.i18n({context:n.context,key:n.key,...a})}}getI18nAttributeMessage(n,a,s){var l;let d=!s||((l=n.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return n.context&&n.key&&d?this.buildI18nAttributeMessage(n,a):n}update(n){var a,s,l;super.update(n),(a=this[Gs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||d.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,n,p),this[p]=this.getI18nAttributeMessage(f,d))}),(s=this[Ks])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);(n.has(p)||d.argsProvider!=null)&&(this[p]=f?.map(h=>(this.addI18nContextIfNeeded(h,n,p),this.getI18nAttributeMessage(h,d))))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.argsProvider!=null&&(this[p]=this.i18n(d))})}getI18nAttributeValue(n){return this[n]}getI18nListAttributeValues(n){return this[n]}addI18nContextIfNeeded(n,a,s){n.context&&n.key&&a.has(s)&&this.addI18nContext(n.context)}connectedCallback(){var n,a,s,l,d,p;super.connectedCallback(),new Set([...(a=(n=this[Tr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Gs])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(p=(d=this[Ks])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f))}addI18nMessages(n,a){n=n.toLowerCase(),this[Go].has(n)||this[Go].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Go].forEach(n=>n()),this[Go].clear()}}return t=Go,ch([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var cp=class extends Je(j){},Ki=class extends Je(Zt){};var Ko=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ae=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":U:$`
1617
1617
  <span class="ft-i18n">
1618
1618
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1619
1619
  </span>
1620
- `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ne.elementDefinitions={};ne.styles=ip;Ko([ct()],ne.prototype,"editorMode",void 0);Ko([g()],ne.prototype,"context",void 0);Ko([g()],ne.prototype,"key",void 0);Ko([de([])],ne.prototype,"args",void 0);Ko([g()],ne.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>Ir.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Ir.resolveRawMessage(this.name,i)})}};var Zi=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Tr]=(a=e[Tr])!==null&&a!==void 0?a:new Map,e[Tr].set(i,s)};Z("ft-i18n")(ne);var tt=Qe.build("integratedFeedbackComponent"),dp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Ks=r=>r??ht;var q={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(_.colorSurface,"Design system"),colorOutline:o.external(_.colorOutline,"Design system"),elevation02:o.external(_.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},pp=L`
1620
+ `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ae.elementDefinitions={};ae.styles=ip;Ko([ct()],ae.prototype,"editorMode",void 0);Ko([g()],ae.prototype,"context",void 0);Ko([g()],ae.prototype,"key",void 0);Ko([pe([])],ae.prototype,"args",void 0);Ko([g()],ae.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>Ir.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Ir.resolveRawMessage(this.name,i)})}};var Zi=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Tr]=(a=e[Tr])!==null&&a!==void 0?a:new Map,e[Tr].set(i,s)};Y("ft-i18n")(ae);var tt=Qe.build("integratedFeedbackComponent"),dp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Zs=r=>r??ht;var K={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(_.colorSurface,"Design system"),colorOutline:o.external(_.colorOutline,"Design system"),elevation02:o.external(_.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},pp=L`
1621
1621
  *:focus {
1622
1622
  outline: none;
1623
1623
  }
@@ -1630,16 +1630,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1630
1630
  }
1631
1631
 
1632
1632
  ft-input-label {
1633
- ${x(H.fontSize,q.fontSize)};
1634
- ${x(H.raisedFontSize,q.labelSize)};
1635
- ${x(H.verticalSpacing,q.verticalSpacing)};
1636
- ${x(H.horizontalSpacing,q.horizontalSpacing)};
1633
+ ${x(z.fontSize,K.fontSize)};
1634
+ ${x(z.raisedFontSize,K.labelSize)};
1635
+ ${x(z.verticalSpacing,K.verticalSpacing)};
1636
+ ${x(z.horizontalSpacing,K.horizontalSpacing)};
1637
1637
  }
1638
1638
 
1639
1639
  .ft-text-field--main-panel {
1640
1640
  position: relative;
1641
1641
  display: flex;
1642
- height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize});
1642
+ height: calc(4 * ${K.verticalSpacing} + ${K.labelSize} + ${K.fontSize});
1643
1643
  }
1644
1644
 
1645
1645
  .ft-text-field--input-panel {
@@ -1648,10 +1648,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1648
1648
  display: flex;
1649
1649
  align-items: center;
1650
1650
  overflow: hidden;
1651
- padding: 0 ${q.horizontalSpacing};
1651
+ padding: 0 ${K.horizontalSpacing};
1652
1652
 
1653
- ${x(Xt.fontSize,q.fontSize)};
1654
- ${x(Xt.lineHeight,q.fontSize)};
1653
+ ${x(Xt.fontSize,K.fontSize)};
1654
+ ${x(Xt.lineHeight,K.fontSize)};
1655
1655
  }
1656
1656
 
1657
1657
  .ft-text-field--input-panel ft-ripple {
@@ -1661,11 +1661,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1661
1661
 
1662
1662
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1663
1663
  align-items: flex-end;
1664
- padding: 0 ${q.horizontalSpacing} ${q.verticalSpacing} ${q.horizontalSpacing};
1664
+ padding: 0 ${K.horizontalSpacing} ${K.verticalSpacing} ${K.horizontalSpacing};
1665
1665
  }
1666
1666
 
1667
1667
  .ft-text-field--prefix {
1668
- color: ${q.prefixColor};
1668
+ color: ${K.prefixColor};
1669
1669
  margin-right: 2px;
1670
1670
  flex-shrink: 1;
1671
1671
  overflow: hidden;
@@ -1684,15 +1684,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1684
1684
  flex-shrink: 1;
1685
1685
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1686
1686
 
1687
- color: ${q.colorOnSurface};
1688
- padding: calc(2 * ${q.verticalSpacing}) 0;
1687
+ color: ${K.colorOnSurface};
1688
+ padding: calc(2 * ${K.verticalSpacing}) 0;
1689
1689
  border: none;
1690
1690
  background: none;
1691
1691
  }
1692
1692
 
1693
1693
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1694
1694
  padding-bottom: 0;
1695
- padding-top: calc(${q.labelSize} + 2 * ${q.verticalSpacing});
1695
+ padding-top: calc(${K.labelSize} + 2 * ${K.verticalSpacing});
1696
1696
  }
1697
1697
 
1698
1698
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1701,37 +1701,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1701
1701
  }
1702
1702
 
1703
1703
  .ft-text-field--disabled .ft-text-field--input {
1704
- color: ${q.colorOnSurfaceDisabled};
1704
+ color: ${K.colorOnSurfaceDisabled};
1705
1705
  }
1706
1706
 
1707
1707
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1708
- ${x(H.borderColor,q.colorPrimary)};
1709
- ${x(H.textColor,q.colorPrimary)};
1708
+ ${x(z.borderColor,K.colorPrimary)};
1709
+ ${x(z.textColor,K.colorPrimary)};
1710
1710
  }
1711
1711
 
1712
1712
  .ft-text-field--filled .ft-text-field--input-panel {
1713
- border-radius: ${q.borderRadiusS} ${q.borderRadiusS} 0 0;
1713
+ border-radius: ${K.borderRadiusS} ${K.borderRadiusS} 0 0;
1714
1714
  }
1715
1715
 
1716
1716
  .ft-text-field--outlined .ft-text-field--input-panel {
1717
- border-radius: ${q.borderRadiusS};
1717
+ border-radius: ${K.borderRadiusS};
1718
1718
  }
1719
1719
 
1720
1720
  .ft-text-field--helper-text {
1721
- padding: 0 12px 0 ${q.horizontalSpacing};
1722
- color: ${q.helperColor};
1721
+ padding: 0 12px 0 ${K.horizontalSpacing};
1722
+ color: ${K.helperColor};
1723
1723
  }
1724
1724
 
1725
1725
  .ft-text-field--in-error .ft-text-field--input,
1726
1726
  .ft-text-field--in-error .ft-text-field--helper-text,
1727
1727
  .ft-text-field--in-error .ft-text-field--prefix {
1728
- color: ${q.colorError};
1728
+ color: ${K.colorError};
1729
1729
  }
1730
1730
 
1731
1731
  .ft-text-field--icon {
1732
1732
  align-self: center;
1733
1733
  margin-left: 8px;
1734
- color: ${q.iconColor};
1734
+ color: ${K.iconColor};
1735
1735
  }
1736
1736
 
1737
1737
  .ft-text-field--container {
@@ -1742,13 +1742,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1742
1742
  display: none;
1743
1743
  flex-direction: column;
1744
1744
  position: absolute;
1745
- z-index: ${q.floatingZIndex};
1746
- background: ${q.colorSurface};
1747
- border: 1px solid ${q.colorOutline};
1748
- border-radius: 0 0 ${q.borderRadiusS} ${q.borderRadiusS};
1749
- box-shadow: ${q.elevation02};
1745
+ z-index: ${K.floatingZIndex};
1746
+ background: ${K.colorSurface};
1747
+ border: 1px solid ${K.colorOutline};
1748
+ border-radius: 0 0 ${K.borderRadiusS} ${K.borderRadiusS};
1749
+ box-shadow: ${K.elevation02};
1750
1750
  outline: none;
1751
- max-height: ${q.suggestSize};
1751
+ max-height: ${K.suggestSize};
1752
1752
  overflow-y: auto;
1753
1753
  }
1754
1754
 
@@ -1761,14 +1761,66 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1761
1761
  }
1762
1762
 
1763
1763
  .ft-text-field--with-icon {
1764
- ${x(H.labelMaxWidth,`calc(100% - ${Ct.size} - ${H.horizontalSpacing})`)};
1764
+ ${x(z.labelMaxWidth,`calc(100% - ${Ct.size} - ${z.horizontalSpacing})`)};
1765
1765
  }
1766
1766
 
1767
1767
  .ft-text-field--with-password ft-icon:hover {
1768
1768
  cursor: pointer;
1769
1769
  }
1770
- `;var at=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},X=class extends wr(j,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return $`
1771
- <div class="${Tt(e)}">
1770
+ `;var up=L`
1771
+ .ft-text-field-suggestion {
1772
+ position: relative;
1773
+ padding: 8px 16px;
1774
+ cursor: pointer;
1775
+ min-height: 44px;
1776
+ box-sizing: border-box;
1777
+ outline: none;
1778
+ }
1779
+
1780
+ .ft-text-field-suggestion,
1781
+ .ft-text-field-suggestion--label {
1782
+ display: flex;
1783
+ align-items: center;
1784
+ gap: 8px;
1785
+ }
1786
+
1787
+ .ft-text-field-suggestion--label {
1788
+ flex-grow: 1;
1789
+ flex-shrink: 1;
1790
+ }
1791
+
1792
+ .ft-text-field-suggestion--with-helper {
1793
+ display: flex;
1794
+ flex-direction: column;
1795
+ align-items: flex-start;
1796
+ gap: 0;
1797
+ }
1798
+
1799
+ .ft-text-field-suggestion--helper-text {
1800
+ color: ${K.helperColor};
1801
+ }
1802
+
1803
+ slot {
1804
+ pointer-events: none;
1805
+ }
1806
+ `;var qi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},qs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Jt=class extends j{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return $`
1807
+ <div class=${Rt(t)}
1808
+ tabindex="-1"
1809
+ @keydown=${this.onKeyDown}
1810
+ @click=${this.confirmSuggestion}>
1811
+ <ft-ripple></ft-ripple>
1812
+ ${this.helper?$`
1813
+ <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1814
+ ${this.helper}
1815
+ </ft-typography>`:U}
1816
+ <ft-typography part="label"
1817
+ variant="body1"
1818
+ class="ft-text-field-suggestion--label">
1819
+ <slot></slot>
1820
+ </ft-typography>
1821
+ </div>
1822
+ `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new qs(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Jt.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};Jt.styles=up;qi([g()],Jt.prototype,"value",void 0);qi([g()],Jt.prototype,"helper",void 0);qi([J(".ft-text-field-suggestion")],Jt.prototype,"container",void 0);qi([bo()],Jt.prototype,"assignedNodes",void 0);var it=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Z=class extends Er(j,"textbox"){get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return $`
1823
+ <div class="${Rt(e)}">
1772
1824
  <div class="ft-text-field--main-panel"
1773
1825
  @keydown=${this.handleKeyboardNavigation}
1774
1826
  @focusout=${this.onMainPanelBlur}>
@@ -1778,17 +1830,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1778
1830
  ?raised=${this.focused||this.value!=""}
1779
1831
  ?error=${this.error}></ft-input-label>
1780
1832
  <div class="ft-text-field--input-panel">
1781
- ${this.outlined?V:$`
1833
+ ${this.outlined?U:$`
1782
1834
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1783
1835
  `}
1784
1836
  ${this.prefix?$`
1785
1837
  <ft-typography class="ft-text-field--prefix" variant="body1">
1786
1838
  ${this.prefix}
1787
1839
  </ft-typography>
1788
- `:V}
1840
+ `:U}
1789
1841
  <input type=${(t=this.type)!==null&&t!==void 0?t:this.password&&this.hidePassword?"password":"text"}
1790
- name=${Ks(this.name)}
1791
- maxlength=${Ks(this.maxLength||void 0)}
1842
+ name=${Zs(this.name)}
1843
+ maxlength=${Zs(this.maxLength||void 0)}
1792
1844
  aria-label="${this.label}"
1793
1845
  class="ft-typography--body1 ft-text-field--input"
1794
1846
  part="input"
@@ -1802,13 +1854,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1802
1854
  <div class="ft-text-field--suggestions"
1803
1855
  @suggestion-selected=${this.onSuggestionSelected}>
1804
1856
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1857
+ ${this.filterSuggestions&&this.value?$`
1858
+ <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1859
+ ${this.value}
1860
+ </ft-text-field-suggestion>
1861
+ `:U}
1805
1862
  </div>
1806
1863
  </div>
1807
1864
  ${this.helper?$`
1808
1865
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1809
1866
  ${this.helper}
1810
1867
  </ft-typography>
1811
- `:V}
1868
+ `:U}
1812
1869
  </div>
1813
1870
  `}renderPasswordIcon(){return $`
1814
1871
  <ft-icon class="ft-text-field--icon"
@@ -1820,54 +1877,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1820
1877
  .variant=${this.iconVariant}
1821
1878
  .value=${this.icon}
1822
1879
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1823
- `:V}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",$o(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};X.elementDefinitions={"ft-input-label":Ut,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};X.styles=[Qr,ja,pp];at([g()],X.prototype,"label",void 0);at([g({noAccessor:!0})],X.prototype,"value",null);at([U()],X.prototype,"dispatchedValue",void 0);at([g()],X.prototype,"helper",void 0);at([g({type:Boolean})],X.prototype,"outlined",void 0);at([g({type:Boolean})],X.prototype,"disabled",void 0);at([g({type:Boolean})],X.prototype,"error",void 0);at([g({type:Boolean})],X.prototype,"fixedMenuPosition",void 0);at([g()],X.prototype,"prefix",void 0);at([g()],X.prototype,"icon",void 0);at([g()],X.prototype,"name",void 0);at([g()],X.prototype,"type",void 0);at([g()],X.prototype,"passwordHiddenIcon",void 0);at([g()],X.prototype,"passwordRevealedIcon",void 0);at([g()],X.prototype,"iconVariant",void 0);at([g({type:Boolean})],X.prototype,"filterSuggestions",void 0);at([g({type:Number})],X.prototype,"maxLength",void 0);at([g({type:Boolean})],X.prototype,"password",void 0);at([U()],X.prototype,"focused",void 0);at([U()],X.prototype,"hidePassword",void 0);at([U()],X.prototype,"hideSuggestions",void 0);at([U()],X.prototype,"visibleSuggestions",void 0);at([Q(".ft-text-field--main-panel")],X.prototype,"mainPanel",void 0);at([Q(".ft-text-field--input")],X.prototype,"input",void 0);at([Q(".ft-text-field--suggestions")],X.prototype,"suggestionsContainer",void 0);at([In({selector:"ft-text-field-suggestion"})],X.prototype,"suggestions",void 0);var up=L`
1824
- .ft-text-field-suggestion {
1825
- position: relative;
1826
- padding: 8px 16px;
1827
- cursor: pointer;
1828
- min-height: 44px;
1829
- box-sizing: border-box;
1830
- outline: none;
1831
- }
1832
-
1833
- .ft-text-field-suggestion,
1834
- .ft-text-field-suggestion--label {
1835
- display: flex;
1836
- align-items: center;
1837
- gap: 8px;
1838
- }
1839
-
1840
- .ft-text-field-suggestion--label {
1841
- flex-grow: 1;
1842
- flex-shrink: 1;
1843
- }
1844
-
1845
- slot {
1846
- pointer-events: none;
1847
- }
1848
- `;var qs=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Zs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Le=class extends j{render(){return $`
1849
- <div class="ft-text-field-suggestion"
1850
- tabindex="-1"
1851
- @keydown=${this.onKeyDown}
1852
- @click=${this.confirmSuggestion}>
1853
- <ft-ripple></ft-ripple>
1854
- <ft-typography part="label"
1855
- variant="body1"
1856
- class="ft-text-field-suggestion--label">
1857
- <slot></slot>
1858
- </ft-typography>
1859
- </div>
1860
- `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Zs(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Le.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};Le.styles=up;qs([g()],Le.prototype,"value",void 0);qs([Q(".ft-text-field-suggestion")],Le.prototype,"container",void 0);qs([bo()],Le.prototype,"assignedNodes",void 0);Z("ft-text-field")(X);Z("ft-text-field-suggestion")(Le);var fp=r=>Ne.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ys=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{f(y,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},qi=class{convertPaginatedToc(t,e){return new Ys(t,e).build()}};var Yi=class extends ge{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Er((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return Er(e??[],pt.FEEDBACK_USER);case Yt.RATING:return Er(e??[],pt.RATING_USER)&&i!=null&&i!==Ie.NO_RATING;case Yt.PRINT:return Er(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return Er(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return Er(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Xi=class r extends Yi{static async build(t){return new r(new qi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ji=class r{static build(t,e){return new r(fp(t.trim()||"context"),e??Xi.build)}loaded(){return Gn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new st(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return So(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new xo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await So(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var hp=L`
1861
- `;var Qi=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},tn=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},en=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},rn=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},on=class extends Event{constructor(){super("ft-reader-map-not-found")}},nn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},an=class extends Event{constructor(){super("ft-reader-map-forbidden")}},sn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var ln=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},dh=r=>t=>+(t??"NaN")>0?+t:r,wt=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new st(5),this.navigationDebouncer=new st(10),this.mapLoadedEventDebouncer=new st(50),this.addStore(M)}render(){return $`
1880
+ `:U}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Po(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};Z.elementDefinitions={"ft-input-label":Ut,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot,"ft-text-field-suggestion":Jt};Z.styles=[Qr,Ga,pp];it([g()],Z.prototype,"label",void 0);it([g({noAccessor:!0})],Z.prototype,"value",null);it([W()],Z.prototype,"dispatchedValue",void 0);it([g()],Z.prototype,"helper",void 0);it([g()],Z.prototype,"suggestionsHelper",void 0);it([g({type:Boolean})],Z.prototype,"outlined",void 0);it([g({type:Boolean})],Z.prototype,"disabled",void 0);it([g({type:Boolean})],Z.prototype,"error",void 0);it([g({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);it([g()],Z.prototype,"prefix",void 0);it([g()],Z.prototype,"icon",void 0);it([g()],Z.prototype,"name",void 0);it([g()],Z.prototype,"type",void 0);it([g()],Z.prototype,"passwordHiddenIcon",void 0);it([g()],Z.prototype,"passwordRevealedIcon",void 0);it([g()],Z.prototype,"iconVariant",void 0);it([g({type:Boolean})],Z.prototype,"filterSuggestions",void 0);it([g({type:Number})],Z.prototype,"maxLength",void 0);it([g({type:Boolean})],Z.prototype,"password",void 0);it([W()],Z.prototype,"focused",void 0);it([W()],Z.prototype,"hidePassword",void 0);it([W()],Z.prototype,"hideSuggestions",void 0);it([W()],Z.prototype,"visibleSuggestions",void 0);it([J(".ft-text-field--main-panel")],Z.prototype,"mainPanel",void 0);it([J(".ft-text-field--input")],Z.prototype,"input",void 0);it([J(".ft-text-field-suggestion--new-value")],Z.prototype,"newValueSuggestion",void 0);it([J(".ft-text-field--suggestions")],Z.prototype,"suggestionsContainer",void 0);it([Tn({selector:"ft-text-field-suggestion"})],Z.prototype,"suggestions",void 0);Y("ft-text-field")(Z);Y("ft-text-field-suggestion")(Jt);var fp=r=>Ie.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ys=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{f(y,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Yi=class{convertPaginatedToc(t,e){return new Ys(t,e).build()}};var Xi=class extends be{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return wr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return wr(e??[],pt.FEEDBACK_USER);case Yt.RATING:return wr(e??[],pt.RATING_USER)&&i!=null&&i!==Te.NO_RATING;case Yt.PRINT:return wr(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return wr(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return wr(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ji=class r extends Xi{static async build(t){return new r(new Yi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Qi=class r{static build(t,e){return new r(fp(t.trim()||"context"),e??Ji.build)}loaded(){return Kn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new st(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return So(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new xo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await So(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var hp=L`
1881
+ `;var tn=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},en=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},rn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},on=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},nn=class extends Event{constructor(){super("ft-reader-map-not-found")}},an=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},sn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},ln=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var cn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},dh=r=>t=>+(t??"NaN")>0?+t:r,Et=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new st(5),this.navigationDebouncer=new st(10),this.mapLoadedEventDebouncer=new st(50),this.addStore(M)}render(){return $`
1862
1882
  ${this.importStyleIfNeeded()}
1863
1883
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1864
- `}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?V:$`
1884
+ `}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?U:$`
1865
1885
  <style>
1866
1886
  @import "${i}"
1867
1887
  </style>
1868
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ji.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new ln(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new en(a)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&this.scrollTarget==null&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new tn(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new sn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new nn):e.status===403?this.dispatchEvent(new an):e.status===404?this.dispatchEvent(new on):this.dispatchEvent(new rn(t))}reloadBookmarks(){lp.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Qi(this.map,this.toc))})}};wt.styles=hp;Vt([ct({store:M.name})],wt.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],wt.prototype,"session",void 0);Vt([g()],wt.prototype,"mapId",void 0);Vt([g()],wt.prototype,"tocId",void 0);Vt([g()],wt.prototype,"section",void 0);Vt([g()],wt.prototype,"topicPivot",void 0);Vt([g()],wt.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:dh()}})],wt.prototype,"page",void 0);Vt([ct({store:"reader"})],wt.prototype,"map",void 0);Vt([ct({store:"reader"})],wt.prototype,"toc",void 0);Vt([ct({store:"reader"})],wt.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],wt.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],wt.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],wt.prototype,"readerServiceProvider",void 0);Z("ft-reader-context")(wt);var cn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},dn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},pn=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},un=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},fn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},nt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,dp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?vi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?V:$`
1888
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new cn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new rn(s)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new en(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new ln),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new an):e.status===403?this.dispatchEvent(new sn):e.status===404?this.dispatchEvent(new nn):this.dispatchEvent(new on(t))}reloadBookmarks(){lp.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new tn(this.map,this.toc))})}};Et.styles=hp;Vt([ct({store:M.name})],Et.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],Et.prototype,"session",void 0);Vt([g()],Et.prototype,"mapId",void 0);Vt([g()],Et.prototype,"tocId",void 0);Vt([g()],Et.prototype,"section",void 0);Vt([g()],Et.prototype,"topicPivot",void 0);Vt([g()],Et.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:dh()}})],Et.prototype,"page",void 0);Vt([ct({store:"reader"})],Et.prototype,"map",void 0);Vt([ct({store:"reader"})],Et.prototype,"toc",void 0);Vt([ct({store:"reader"})],Et.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],Et.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],Et.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],Et.prototype,"readerServiceProvider",void 0);Y("ft-reader-context")(Et);var dn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},pn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},un=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},fn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},hn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},at=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,dp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?vi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?U:$`
1869
1889
  <div class="ft-reader-feedback">
1870
- ${this.hideTitle?V:$`
1890
+ ${this.hideTitle?U:$`
1871
1891
  <ft-typography variant="title" part="main-title">
1872
1892
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1873
1893
  </ft-typography>
@@ -1885,7 +1905,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1885
1905
  ${this.renderRatingDate()}
1886
1906
  </ft-typography>
1887
1907
  </div>
1888
- `:V}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1908
+ `:U}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1889
1909
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1890
1910
  ${Pn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return $`
1891
1911
  <ft-button round part="rating-stars-${d}"
@@ -1931,7 +1951,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1931
1951
  ${tt.messages.dichotomousNo()}
1932
1952
  </ft-switch-option>
1933
1953
  </ft-switch>
1934
- `}return V}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1954
+ `}return U}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1935
1955
  <ft-button primary
1936
1956
  type="submit" name="submit"
1937
1957
  class="ft-reader-feedback--send-feedback"
@@ -1951,7 +1971,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1951
1971
  part="more-options">
1952
1972
  ${tt.messages.moreOptionsButton()}
1953
1973
  </ft-button>
1954
- `:V;return $`
1974
+ `:U;return $`
1955
1975
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1956
1976
  @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1957
1977
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
@@ -1965,7 +1985,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1965
1985
  ?error=${this.from&&!this.validFromEmail()}
1966
1986
  helper=${this.from&&!this.validFromEmail()?tt.messages.feedbackfromEmailInvalid():""}
1967
1987
  />
1968
- `:V}
1988
+ `:U}
1969
1989
  <ft-text-area outlined
1970
1990
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1971
1991
  label="${tt.messages.feedbackInputLabel()}"
@@ -1976,7 +1996,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1976
1996
  ${l}
1977
1997
  </div>
1978
1998
  </form>
1979
- `}return V}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new cn({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};nt.elementDefinitions={"ft-button":ie,"ft-typography":xt,"ft-switch":Bt,"ft-switch-option":St,"ft-text-area":_t,"ft-text-field":X};nt.styles=Gd;At([g({type:Boolean})],nt.prototype,"editorMode",void 0);At([g({type:Boolean})],nt.prototype,"hideTitle",void 0);At([g({type:Boolean})],nt.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],nt.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],nt.prototype,"i18nProperties",void 0);At([g({attribute:!1})],nt.prototype,"ratingSummary",void 0);At([g({attribute:!1})],nt.prototype,"session",void 0);At([Q(".ft-reader-feedback--feedback-input")],nt.prototype,"feedbackInput",void 0);At([U()],nt.prototype,"from",void 0);At([U()],nt.prototype,"feedbackMessage",void 0);At([g()],nt.prototype,"iconVariant",void 0);At([g()],nt.prototype,"emptyStarIcon",void 0);At([g()],nt.prototype,"filledStarIcon",void 0);At([g()],nt.prototype,"emptyLikeIcon",void 0);At([g()],nt.prototype,"filledLikeIcon",void 0);At([g()],nt.prototype,"emptyDislikeIcon",void 0);At([g()],nt.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],nt.prototype,"configuration",void 0);At([g()],nt.prototype,"feedbackMailLinkBuilder",void 0);var eo=Qe.fromGwt("server");var ro=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1999
+ `}return U}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new dn({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};at.elementDefinitions={"ft-button":ne,"ft-typography":xt,"ft-switch":Bt,"ft-switch-option":St,"ft-text-area":Nt,"ft-text-field":Z};at.styles=Gd;At([g({type:Boolean})],at.prototype,"editorMode",void 0);At([g({type:Boolean})],at.prototype,"hideTitle",void 0);At([g({type:Boolean})],at.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],at.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],at.prototype,"i18nProperties",void 0);At([g({attribute:!1})],at.prototype,"ratingSummary",void 0);At([g({attribute:!1})],at.prototype,"session",void 0);At([J(".ft-reader-feedback--feedback-input")],at.prototype,"feedbackInput",void 0);At([W()],at.prototype,"from",void 0);At([W()],at.prototype,"feedbackMessage",void 0);At([g()],at.prototype,"iconVariant",void 0);At([g()],at.prototype,"emptyStarIcon",void 0);At([g()],at.prototype,"filledStarIcon",void 0);At([g()],at.prototype,"emptyLikeIcon",void 0);At([g()],at.prototype,"filledLikeIcon",void 0);At([g()],at.prototype,"emptyDislikeIcon",void 0);At([g()],at.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],at.prototype,"configuration",void 0);At([g()],at.prototype,"feedbackMailLinkBuilder",void 0);var eo=Qe.fromGwt("server");var ro=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1980
2000
  ${this.bodyMetadata}
1981
2001
  ${this.url}
1982
2002
  _________________________________________________________________
@@ -1984,7 +2004,7 @@ _________________________________________________________________
1984
2004
  ${t??""}
1985
2005
 
1986
2006
  _________________________________________________________________
1987
- ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),hn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){return $`
2007
+ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),mn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var It=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Pt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){return $`
1988
2008
  <ft-reader-feedback
1989
2009
  ratingAllowed
1990
2010
  .i18nProperties=${this.i18nProperties}
@@ -2006,7 +2026,7 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
2006
2026
  @mailer-feedback=${this.onMailerFeedbackSent}
2007
2027
  @open-more-options=${this.openMoreOptions}
2008
2028
  ></ft-reader-feedback>
2009
- `}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,hn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new fn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new pn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ie.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":nt};Nt([ct({store:M.name})],bt.prototype,"session",void 0);Nt([ct({store:"reader"})],bt.prototype,"map",void 0);Nt([ct({store:M.name})],bt.prototype,"editorMode",void 0);Nt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);Nt([U()],bt.prototype,"ratingSummary",void 0);Nt([g({type:Boolean})],bt.prototype,"hideTitle",void 0);Nt([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);Nt([g()],bt.prototype,"iconVariant",void 0);Nt([g()],bt.prototype,"emptyStarIcon",void 0);Nt([g()],bt.prototype,"filledStarIcon",void 0);Nt([g()],bt.prototype,"emptyLikeIcon",void 0);Nt([g()],bt.prototype,"filledLikeIcon",void 0);Nt([g()],bt.prototype,"emptyDislikeIcon",void 0);Nt([g()],bt.prototype,"filledDislikeIcon",void 0);Nt([Q("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);Nt([Zi(eo.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);Nt([Mo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var mp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Js=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Xs=Symbol("registerInterval");function ph(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Xs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Xs]):this.dispatchEvent(new Js)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Xs,mp([U()],e.prototype,"tocNode",void 0),mp([U()],e.prototype,"disableContextInteractions",void 0),e}var mn=class extends ph(Ke){};var It=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vt=class extends Je(mn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){var t;return $`
2029
+ `}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new hn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new un({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Te.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":at};It([ct({store:M.name})],bt.prototype,"session",void 0);It([ct({store:"reader"})],bt.prototype,"map",void 0);It([ct({store:M.name})],bt.prototype,"editorMode",void 0);It([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);It([W()],bt.prototype,"ratingSummary",void 0);It([g({type:Boolean})],bt.prototype,"hideTitle",void 0);It([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);It([g()],bt.prototype,"iconVariant",void 0);It([g()],bt.prototype,"emptyStarIcon",void 0);It([g()],bt.prototype,"filledStarIcon",void 0);It([g()],bt.prototype,"emptyLikeIcon",void 0);It([g()],bt.prototype,"filledLikeIcon",void 0);It([g()],bt.prototype,"emptyDislikeIcon",void 0);It([g()],bt.prototype,"filledDislikeIcon",void 0);It([J("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);It([Zi(eo.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);It([Mo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var mp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Js=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Xs=Symbol("registerInterval");function ph(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Xs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Xs]):this.dispatchEvent(new Js)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Xs,mp([W()],e.prototype,"tocNode",void 0),mp([W()],e.prototype,"disableContextInteractions",void 0),e}var yn=class extends ph(Ke){};var Tt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vt=class extends Je(yn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Pt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){var t;return $`
2010
2030
  <ft-reader-feedback
2011
2031
  .i18nProperties=${this.i18nProperties}
2012
2032
  ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
@@ -2028,7 +2048,7 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
2028
2048
  @mailer-feedback=${this.onMailerFeedbackSent}
2029
2049
  @open-more-options=${this.openMoreOptions}
2030
2050
  ></ft-reader-feedback>
2031
- `}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,hn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new un(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new dn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ie.NO_RATING)||Ie.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":nt};It([ct({store:M.name})],vt.prototype,"session",void 0);It([ct({store:"reader"})],vt.prototype,"map",void 0);It([ct({store:M.name})],vt.prototype,"editorMode",void 0);It([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);It([U()],vt.prototype,"ratingSummary",void 0);It([g({type:Boolean})],vt.prototype,"hideTitle",void 0);It([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);It([g()],vt.prototype,"iconVariant",void 0);It([g()],vt.prototype,"emptyStarIcon",void 0);It([g()],vt.prototype,"filledStarIcon",void 0);It([g()],vt.prototype,"emptyLikeIcon",void 0);It([g()],vt.prototype,"filledLikeIcon",void 0);It([g()],vt.prototype,"emptyDislikeIcon",void 0);It([g()],vt.prototype,"filledDislikeIcon",void 0);It([Q("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);It([Zi(eo.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],vt.prototype,"mailSubject",void 0);It([Mo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);Z("ft-reader-map-feedback")(bt);Z("ft-reader-topic-feedback")(vt);})();
2051
+ `}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new fn(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new pn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Te.NO_RATING)||Te.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":at};Tt([ct({store:M.name})],vt.prototype,"session",void 0);Tt([ct({store:"reader"})],vt.prototype,"map",void 0);Tt([ct({store:M.name})],vt.prototype,"editorMode",void 0);Tt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);Tt([W()],vt.prototype,"ratingSummary",void 0);Tt([g({type:Boolean})],vt.prototype,"hideTitle",void 0);Tt([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);Tt([g()],vt.prototype,"iconVariant",void 0);Tt([g()],vt.prototype,"emptyStarIcon",void 0);Tt([g()],vt.prototype,"filledStarIcon",void 0);Tt([g()],vt.prototype,"emptyLikeIcon",void 0);Tt([g()],vt.prototype,"filledLikeIcon",void 0);Tt([g()],vt.prototype,"emptyDislikeIcon",void 0);Tt([g()],vt.prototype,"filledDislikeIcon",void 0);Tt([J("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);Tt([Zi(eo.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],vt.prototype,"mailSubject",void 0);Tt([Mo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);Y("ft-reader-map-feedback")(bt);Y("ft-reader-topic-feedback")(vt);})();
2032
2052
  /*! Bundled license information:
2033
2053
 
2034
2054
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: