@fluid-topics/ft-search-results 1.1.113 → 1.1.114

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 il=Object.create;var _o=Object.defineProperty;var al=Object.getOwnPropertyDescriptor;var sl=Object.getOwnPropertyNames;var cl=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty;var ul=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),U=(r,e)=>{for(var t in e)_o(r,t,{get:e[t],enumerable:!0})},dl=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sl(e))!ll.call(r,i)&&i!==t&&_o(r,i,{get:()=>e[i],enumerable:!(n=al(e,i))||n.enumerable});return r};var fl=(r,e,t)=>(t=r!=null?il(cl(r)):{},dl(e||!r||!r.__esModule?_o(t,"default",{value:r,enumerable:!0}):t,r));var pc=ul((ze,fc)=>{var mo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,yo=function(){function r(){this.fetch=!1,this.DOMException=mo.DOMException}return r.prototype=mo,new r}();(function(r){var e=function(t){var n=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function l(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 d(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var x={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return i.iterable&&(x[Symbol.iterator]=function(){return x}),x}function p(m){this.map={},m instanceof p?m.forEach(function(x,R){this.append(R,x)},this):Array.isArray(m)?m.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}p.prototype.append=function(m,x){m=l(m),x=d(x);var R=this.map[m];this.map[m]=R?R+", "+x:x},p.prototype.delete=function(m){delete this.map[l(m)]},p.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},p.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},p.prototype.set=function(m,x){this.map[l(m)]=d(x)},p.prototype.forEach=function(m,x){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(x,this.map[R],R,this)},p.prototype.keys=function(){var m=[];return this.forEach(function(x,R){m.push(R)}),h(m)},p.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),h(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(x,R){m.push([R,x])}),h(m)},i.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function g(m){return new Promise(function(x,R){m.onload=function(){x(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var x=new FileReader,R=g(x);return x.readAsArrayBuffer(m),R}function w(m){var x=new FileReader,R=g(x),k=/charset=([A-Za-z0-9_-]+)/.exec(m.type),B=k?k[1]:"utf-8";return x.readAsText(m,B),R}function C(m){for(var x=new Uint8Array(m),R=new Array(x.length),k=0;k<x.length;k++)R[k]=String.fromCharCode(x[k]);return R.join("")}function E(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:i.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:i.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():i.arrayBuffer&&i.blob&&a(m)?(this._bodyArrayBuffer=E(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||c(m))?this._bodyArrayBuffer=E(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(i.blob)return this.blob().then(b);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(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(m){var x=m.toUpperCase();return v.indexOf(x)>-1?x:m}function O(m,x){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var R=x.body;if(m instanceof O){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new p(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new p(x.headers)),this.method=S(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var L=new AbortController;return L.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(R),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var k=/([?&])_=[^&]*/;if(k.test(this.url))this.url=this.url.replace(k,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function P(m){var x=new FormData;return m.trim().split("&").forEach(function(R){if(R){var k=R.split("="),B=k.shift().replace(/\+/g," "),L=k.join("=").replace(/\+/g," ");x.append(decodeURIComponent(B),decodeURIComponent(L))}}),x}function M(m){var x=new p,R=m.replace(/\r?\n[\t ]+/g," ");return R.split("\r").map(function(k){return k.indexOf(`
2
- `)===0?k.substr(1,k.length):k}).forEach(function(k){var B=k.split(":"),L=B.shift().trim();if(L){var Or=B.join(":").trim();try{x.append(L,Or)}catch(Io){console.warn("Response "+Io.message)}}}),x}A.call(O.prototype);function D(m,x){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new p(x.headers),this.url=x.url||"",this._initBody(m)}A.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},D.error=function(){var m=new D(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var $=[301,302,303,307,308];D.redirect=function(m,x){if($.indexOf(x)===-1)throw new RangeError("Invalid status code");return new D(null,{status:x,headers:{location:m}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,R){this.message=x,this.name=R;var k=Error(x);this.stack=k.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function N(m,x){return new Promise(function(R,k){var B=new O(m,x);if(B.signal&&B.signal.aborted)return k(new t.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function Or(){L.abort()}L.onload=function(){var G={statusText:L.statusText,headers:M(L.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(L.status<200||L.status>599)?G.status=200:G.status=L.status,G.url="responseURL"in L?L.responseURL:G.headers.get("X-Request-URL");var je="response"in L?L.response:L.responseText;setTimeout(function(){R(new D(je,G))},0)},L.onerror=function(){setTimeout(function(){k(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){k(new TypeError("Network request timed out"))},0)},L.onabort=function(){setTimeout(function(){k(new t.DOMException("Aborted","AbortError"))},0)};function Io(G){try{return G===""&&n.location.href?n.location.href:G}catch{return G}}if(L.open(B.method,Io(B.url),!0),B.credentials==="include"?L.withCredentials=!0:B.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(i.blob?L.responseType="blob":i.arrayBuffer&&(L.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof p||n.Headers&&x.headers instanceof n.Headers)){var sa=[];Object.getOwnPropertyNames(x.headers).forEach(function(G){sa.push(l(G)),L.setRequestHeader(G,d(x.headers[G]))}),B.headers.forEach(function(G,je){sa.indexOf(je)===-1&&L.setRequestHeader(je,G)})}else B.headers.forEach(function(G,je){L.setRequestHeader(je,G)});B.signal&&(B.signal.addEventListener("abort",Or),L.onreadystatechange=function(){L.readyState===4&&B.signal.removeEventListener("abort",Or)}),L.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return N.polyfill=!0,n.fetch||(n.fetch=N,n.Headers=p,n.Request=O,n.Response=D),t.Headers=p,t.Request=O,t.Response=D,t.fetch=N,t}({})})(yo);yo.fetch.ponyfill=!0;delete yo.fetch.polyfill;var It=mo.fetch?mo:yo;ze=It.fetch;ze.default=It.fetch;ze.fetch=It.fetch;ze.Headers=It.Headers;ze.Request=It.Request;ze.Response=It.Response;fc.exports=ze});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(v,S){if(v=v.toLowerCase(),this._getDefinition(v)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${v}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let O=S.prototype.attributeChangedCallback,P=new Set(S.observedAttributes||[]);y(S,P,O);let M={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:O,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:P};this._definitionsByTag.set(v,M),this._definitionsByClass.set(S,M);let D=t.call(n,v);D||(D=p(v),e.call(n,v,D)),this===window.customElements&&(s.set(S,M),M.standInClass=D);let $=this._awaitingUpgrade.get(v);if($){this._awaitingUpgrade.delete(v);for(let m of $)a.delete(m),b(m,M,!0)}let N=this._whenDefinedPromises.get(v);return N!==void 0&&(N.resolve(S),this._whenDefinedPromises.delete(v)),S}upgrade(){C.push(this),n.upgrade.apply(n,arguments),C.pop()}get(v){return this._definitionsByTag.get(v)?.elementClass}_getDefinition(v){return this._definitionsByTag.get(v)}whenDefined(v){let S=this._getDefinition(v);if(S!==void 0)return Promise.resolve(S.elementClass);let O=this._whenDefinedPromises.get(v);return O===void 0&&(O={},O.promise=new Promise(P=>O.resolve=P),this._whenDefinedPromises.set(v,O)),O.promise}_upgradeWhenDefined(v,S,O){let P=this._awaitingUpgrade.get(S);P||this._awaitingUpgrade.set(S,P=new Set),O?P.add(v):P.delete(v)}};let l;window.HTMLElement=function(){let S=l;if(S)return l=void 0,S;let O=s.get(this.constructor);if(!O)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],O.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,O),S},window.HTMLElement.prototype=r.prototype;let d=v=>v===document||v instanceof ShadowRoot,h=v=>{let S=v.getRootNode();if(!d(S)){let O=C[C.length-1];if(O instanceof CustomElementRegistry)return O;S=O.getRootNode(),d(S)||(S=c.get(S)?.getRootNode()||document)}return S.customElements},p=v=>class{static get formAssociated(){return!0}constructor(){let O=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(O,HTMLElement.prototype);let P=h(O)||window.customElements,M=P._getDefinition(v);return M?b(O,M):a.set(O,P),O}connectedCallback(){let O=i.get(this);O?O.connectedCallback&&O.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,v,!0)}disconnectedCallback(){let O=i.get(this);O?O.disconnectedCallback&&O.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,v,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let O=i.get(this);O&&O.formAssociated&&O?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let O=i.get(this);O?.formAssociated&&O?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let O=i.get(this);O?.formAssociated&&O?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let O=i.get(this);O?.formAssociated&&O?.formStateRestoreCallback?.apply(this,arguments)}},y=(v,S,O)=>{if(S.size===0||O===void 0)return;let P=v.prototype.setAttribute;P&&(v.prototype.setAttribute=function($,N){let m=$.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);P.call(this,m,N),O.call(this,m,x,N)}else P.call(this,m,N)});let M=v.prototype.removeAttribute;M&&(v.prototype.removeAttribute=function($){let N=$.toLowerCase();if(S.has(N)){let m=this.getAttribute(N);M.call(this,N),O.call(this,N,m,null)}else M.call(this,N)});let D=v.prototype.toggleAttribute;D&&(v.prototype.toggleAttribute=function($,N){let m=$.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);D.call(this,m,N);let R=this.getAttribute(m);O.call(this,m,x,R)}else D.call(this,m,N)})},g=v=>{let S=Object.getPrototypeOf(v);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(v,window.HTMLElement):g(S)},b=(v,S,O=!1)=>{Object.setPrototypeOf(v,S.elementClass.prototype),i.set(v,S),l=v;try{new S.elementClass}catch{g(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(P=>{v.hasAttribute(P)&&S.attributeChangedCallback.call(v,P,null,v.getAttribute(P))}),O&&S.connectedCallback&&v.isConnected&&S.connectedCallback.call(v)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(v){let S=w.apply(this,arguments);return v.customElements&&(S.customElements=v.customElements),S};let C=[document],E=(v,S,O=void 0)=>{let P=(O?Object.getPrototypeOf(O):v.prototype)[S];v.prototype[S]=function(){C.push(this);let M=P.apply(O||this,arguments);return M!==void 0&&c.set(M,this),C.pop(),M}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");let A=(v,S)=>{let O=Object.getOwnPropertyDescriptor(v.prototype,S);Object.defineProperty(v.prototype,S,{...O,set(P){C.push(this),O.set.call(this,P),C.pop()}})};if(A(Element,"innerHTML"),A(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let v=new WeakMap,S=HTMLElement.prototype.attachInternals,O=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...$){let N=S.call(this,...$);return v.set(N,this),N},O.forEach($=>{let N=window.ElementInternals.prototype,m=N[$];N[$]=function(...x){let R=v.get(this);if(i.get(R).formAssociated===!0)return m?.call(this,...x);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class P extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class M{constructor(N){let m=new Map;N.forEach((x,R)=>{let k=x.getAttribute("name"),B=m.get(k)||[];this[+R]=x,B.push(x),m.set(k,B)}),this.length=N.length,m.forEach((x,R)=>{x&&(x.length===1?this[R]=x[0]:this[R]=new P(x))})}namedItem(N){return this[N]}}let D=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let $=D.get.call(this,[]),N=[];for(let m of $){let x=i.get(m);(!x||x.formAssociated===!0)&&N.push(m)}return new M(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,n,i)=>{if(n!==null)try{e.bind(window.customElements)(t,n,i)}catch(a){console.info(t,n,i,a)}}}var zo={};U(zo,{CSSResult:()=>ht,LitElement:()=>xe,ReactiveElement:()=>de,_$LE:()=>Ml,_$LH:()=>Fl,adoptStyles:()=>$r,css:()=>T,defaultConverter:()=>Ur,getCompatibleStyle:()=>Jt,html:()=>Z,isServer:()=>Nf,noChange:()=>Ne,notEqual:()=>$o,nothing:()=>z,render:()=>Ho,supportsAdoptingStyleSheets:()=>Yt,svg:()=>Tl,unsafeCSS:()=>Je});var wr=globalThis,Er=wr.ShadowRoot&&(wr.ShadyCSS===void 0||wr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,la=Symbol(),ca=new WeakMap,Cr=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==la)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Er&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ca.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ca.set(t,e))}return e}toString(){return this.cssText}},ua=r=>new Cr(typeof r=="string"?r:r+"",void 0,la);var Po=(r,e)=>{if(Er)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=wr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},Ar=Er?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return ua(t)})(r):r;var{is:pl,defineProperty:hl,getOwnPropertyDescriptor:ml,getOwnPropertyNames:yl,getOwnPropertySymbols:gl,getPrototypeOf:bl}=Object,Rr=globalThis,da=Rr.trustedTypes,xl=da?da.emptyScript:"",vl=Rr.reactiveElementPolyfillSupport,jt=(r,e)=>r,Vt={toAttribute(r,e){switch(e){case Boolean:r=r?xl:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Nr=(r,e)=>!pl(r,e),fa={attribute:!0,type:String,converter:Vt,reflect:!1,hasChanged:Nr};Symbol.metadata??=Symbol("metadata"),Rr.litPropertyMetadata??=new WeakMap;var Ve=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=fa){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&hl(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){let{get:i,set:a}=ml(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fa}static _$Ei(){if(this.hasOwnProperty(jt("elementProperties")))return;let e=bl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jt("properties"))){let t=this.properties,n=[...yl(t),...gl(t)];for(let i of n)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)t.unshift(Ar(i))}else e!==void 0&&t.push(Ar(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Po(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:Vt).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Vt;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Nr)(i?a:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};Ve.elementStyles=[],Ve.shadowRootOptions={mode:"open"},Ve[jt("elementProperties")]=new Map,Ve[jt("finalized")]=new Map,vl?.({ReactiveElement:Ve}),(Rr.reactiveElementVersions??=[]).push("2.0.2");var Fo=globalThis,Ir=Fo.trustedTypes,pa=Ir?Ir.createPolicy("lit-html",{createHTML:r=>r}):void 0,Lo="$lit$",ge=`lit$${(Math.random()+"").slice(9)}$`,ko="?"+ge,Sl=`<${ko}>`,Ze=document,_r=()=>Ze.createComment(""),Gt=r=>r===null||typeof r!="object"&&typeof r!="function",xa=Array.isArray,va=r=>xa(r)||typeof r?.[Symbol.iterator]=="function",To=`[
3
- \f\r]`,Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ha=/-->/g,ma=/>/g,Ke=RegExp(`>|${To}(?:([^\\s"'>=/]+)(${To}*=${To}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ya=/'/g,ga=/"/g,Sa=/^(?:script|style|textarea|title)$/i,Oa=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),wa=Oa(1),Ca=Oa(2),Q=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),ba=new WeakMap,Ge=Ze.createTreeWalker(Ze,129);function Ea(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return pa!==void 0?pa.createHTML(e):e}var Aa=(r,e)=>{let t=r.length-1,n=[],i,a=e===2?"<svg>":"",s=Kt;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,y=0;for(;y<l.length&&(s.lastIndex=y,h=s.exec(l),h!==null);)y=s.lastIndex,s===Kt?h[1]==="!--"?s=ha:h[1]!==void 0?s=ma:h[2]!==void 0?(Sa.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ke):h[3]!==void 0&&(s=Ke):s===Ke?h[0]===">"?(s=i??Kt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Ke:h[3]==='"'?ga:ya):s===ga||s===ya?s=Ke:s===ha||s===ma?s=Kt:(s=Ke,i=void 0);let g=s===Ke&&r[c+1].startsWith("/>")?" ":"";a+=s===Kt?l+Sl:p>=0?(n.push(d),l.slice(0,p)+Lo+l.slice(p)+ge+g):l+ge+(p===-2?c:g)}return[Ea(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},Zt=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=Aa(e,t);if(this.el=r.createElement(d,n),Ge.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Ge.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(Lo)){let y=h[s++],g=i.getAttribute(p).split(ge),b=/([.?@])?(.*)/.exec(y);l.push({type:1,index:a,name:b[2],strings:g,ctor:b[1]==="."?Tr:b[1]==="?"?Fr:b[1]==="@"?Lr:Ye}),i.removeAttribute(p)}else p.startsWith(ge)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Sa.test(i.tagName)){let p=i.textContent.split(ge),y=p.length-1;if(y>0){i.textContent=Ir?Ir.emptyScript:"";for(let g=0;g<y;g++)i.append(p[g],_r()),Ge.nextNode(),l.push({type:2,index:++a});i.append(p[y],_r())}}}else if(i.nodeType===8)if(i.data===ko)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(ge,p+1))!==-1;)l.push({type:7,index:a}),p+=ge.length-1}a++}}static createElement(e,t){let n=Ze.createElement("template");return n.innerHTML=e,n}};function qe(r,e,t=r,n){if(e===Q)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,a=Gt(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=qe(r,i._$AS(r,e.values),i,n)),e}var Pr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??Ze).importNode(t,!0);Ge.currentNode=i;let a=Ge.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new qt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new kr(a,this,e)),this._$AV.push(d),l=n[++c]}s!==l?.index&&(a=Ge.nextNode(),s++)}return Ge.currentNode=Ze,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},qt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=qe(this,e,t),Gt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==Q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):va(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==H&&Gt(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ze.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Zt.createElement(Ea(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new Pr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=ba.get(e.strings);return t===void 0&&ba.set(e.strings,t=new Zt(e)),t}T(e){xa(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let a of e)i===t.length?t.push(n=new r(this.k(_r()),this.k(_r()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ye=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,t=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=qe(this,e,t,0),s=!Gt(e)||e!==this._$AH&&e!==Q,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=qe(this,c[n+l],t,l),d===Q&&(d=this._$AH[l]),s||=!Gt(d)||d!==this._$AH[l],d===H?e=H:e!==H&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Tr=class extends Ye{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},Fr=class extends Ye{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},Lr=class extends Ye{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=qe(this,e,t,0)??H)===Q)return;let n=this._$AH,i=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},kr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){qe(this,e)}},Ra={j:Lo,P:ge,A:ko,C:1,M:Aa,L:Pr,R:va,V:qe,D:qt,I:Ye,H:Fr,N:Lr,U:Tr,B:kr},Ol=Fo.litHtmlPolyfillSupport;Ol?.(Zt,qt),(Fo.litHtmlVersions??=[]).push("3.1.0");var Mr=globalThis,Yt=Mr.ShadowRoot&&(Mr.ShadyCSS===void 0||Mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mo=Symbol(),Na=new WeakMap,ht=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Mo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Yt&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Na.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Na.set(t,e))}return e}toString(){return this.cssText}},Je=r=>new ht(typeof r=="string"?r:r+"",void 0,Mo),T=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new ht(t,r,Mo)},$r=(r,e)=>{if(Yt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=Mr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},Jt=Yt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return Je(t)})(r):r;var{is:wl,defineProperty:Cl,getOwnPropertyDescriptor:El,getOwnPropertyNames:Al,getOwnPropertySymbols:Rl,getPrototypeOf:Nl}=Object,Dr=globalThis,Ia=Dr.trustedTypes,Il=Ia?Ia.emptyScript:"",_l=Dr.reactiveElementPolyfillSupport,Xt=(r,e)=>r,Ur={toAttribute(r,e){switch(e){case Boolean:r=r?Il:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},$o=(r,e)=>!wl(r,e),_a={attribute:!0,type:String,converter:Ur,reflect:!1,hasChanged:$o};Symbol.metadata??=Symbol("metadata"),Dr.litPropertyMetadata??=new WeakMap;var de=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_a){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&Cl(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){let{get:i,set:a}=El(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_a}static _$Ei(){if(this.hasOwnProperty(Xt("elementProperties")))return;let e=Nl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Xt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xt("properties"))){let t=this.properties,n=[...Al(t),...Rl(t)];for(let i of n)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)t.unshift(Jt(i))}else e!==void 0&&t.push(Jt(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $r(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:Ur).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Ur;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??$o)(i?a:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};de.elementStyles=[],de.shadowRootOptions={mode:"open"},de[Xt("elementProperties")]=new Map,de[Xt("finalized")]=new Map,_l?.({ReactiveElement:de}),(Dr.reactiveElementVersions??=[]).push("2.0.2");var Do=globalThis,Br=Do.trustedTypes,Pa=Br?Br.createPolicy("lit-html",{createHTML:r=>r}):void 0,Bo="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Wo="?"+be,Pl=`<${Wo}>`,et=document,er=()=>et.createComment(""),tr=r=>r===null||typeof r!="object"&&typeof r!="function",$a=Array.isArray,Ua=r=>$a(r)||typeof r?.[Symbol.iterator]=="function",Uo=`[
5
- \f\r]`,Qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ta=/-->/g,Fa=/>/g,Xe=RegExp(`>|${Uo}(?:([^\\s"'>=/]+)(${Uo}*=${Uo}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),La=/'/g,ka=/"/g,Da=/^(?:script|style|textarea|title)$/i,Ba=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Z=Ba(1),Tl=Ba(2),Ne=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Ma=new WeakMap,Qe=et.createTreeWalker(et,129);function Wa(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(e):e}var Ha=(r,e)=>{let t=r.length-1,n=[],i,a=e===2?"<svg>":"",s=Qt;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,y=0;for(;y<l.length&&(s.lastIndex=y,h=s.exec(l),h!==null);)y=s.lastIndex,s===Qt?h[1]==="!--"?s=Ta:h[1]!==void 0?s=Fa:h[2]!==void 0?(Da.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Xe):h[3]!==void 0&&(s=Xe):s===Xe?h[0]===">"?(s=i??Qt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Xe:h[3]==='"'?ka:La):s===ka||s===La?s=Xe:s===Ta||s===Fa?s=Qt:(s=Xe,i=void 0);let g=s===Xe&&r[c+1].startsWith("/>")?" ":"";a+=s===Qt?l+Pl:p>=0?(n.push(d),l.slice(0,p)+Bo+l.slice(p)+be+g):l+be+(p===-2?c:g)}return[Wa(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},rr=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=Ha(e,t);if(this.el=r.createElement(d,n),Qe.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Qe.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(Bo)){let y=h[s++],g=i.getAttribute(p).split(be),b=/([.?@])?(.*)/.exec(y);l.push({type:1,index:a,name:b[2],strings:g,ctor:b[1]==="."?Hr:b[1]==="?"?zr:b[1]==="@"?jr:rt}),i.removeAttribute(p)}else p.startsWith(be)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Da.test(i.tagName)){let p=i.textContent.split(be),y=p.length-1;if(y>0){i.textContent=Br?Br.emptyScript:"";for(let g=0;g<y;g++)i.append(p[g],er()),Qe.nextNode(),l.push({type:2,index:++a});i.append(p[y],er())}}}else if(i.nodeType===8)if(i.data===Wo)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(be,p+1))!==-1;)l.push({type:7,index:a}),p+=be.length-1}a++}}static createElement(e,t){let n=et.createElement("template");return n.innerHTML=e,n}};function tt(r,e,t=r,n){if(e===Ne)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,a=tr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=tt(r,i._$AS(r,e.values),i,n)),e}var Wr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??et).importNode(t,!0);Qe.currentNode=i;let a=Qe.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new mt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Vr(a,this,e)),this._$AV.push(d),l=n[++c]}s!==l?.index&&(a=Qe.nextNode(),s++)}return Qe.currentNode=et,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},mt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=tt(this,e,t),tr(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Ne&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ua(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&tr(this._$AH)?this._$AA.nextSibling.data=e:this.$(et.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=rr.createElement(Wa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new Wr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Ma.get(e.strings);return t===void 0&&Ma.set(e.strings,t=new rr(e)),t}T(e){$a(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let a of e)i===t.length?t.push(n=new r(this.k(er()),this.k(er()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}_$AI(e,t=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=tt(this,e,t,0),s=!tr(e)||e!==this._$AH&&e!==Ne,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=tt(this,c[n+l],t,l),d===Ne&&(d=this._$AH[l]),s||=!tr(d)||d!==this._$AH[l],d===z?e=z:e!==z&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Hr=class extends rt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},zr=class extends rt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},jr=class extends rt{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=tt(this,e,t,0)??z)===Ne)return;let n=this._$AH,i=e===z&&n!==z||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==z&&(n===z||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Vr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){tt(this,e)}},Fl={j:Bo,P:be,A:Wo,C:1,M:Ha,L:Wr,R:Ua,V:tt,D:mt,I:rt,H:zr,N:jr,U:Hr,B:Vr},Ll=Do.litHtmlPolyfillSupport;Ll?.(rr,mt),(Do.litHtmlVersions??=[]).push("3.1.0");var Ho=(r,e,t)=>{let n=t?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=t?.renderBefore??null;n._$litPart$=i=new mt(e.insertBefore(er(),a),a,void 0,t??{})}return i._$AI(r),i};var xe=class extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ho(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ne}};xe._$litElement$=!0,xe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:xe});var kl=globalThis.litElementPolyfillSupport;kl?.({LitElement:xe});var Ml={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Nf=!1;var jo={};U(jo,{customElement:()=>$l,eventOptions:()=>Dl,property:()=>_,query:()=>Bl,queryAll:()=>Hl,queryAssignedElements:()=>jl,queryAssignedNodes:()=>Vl,queryAsync:()=>zl,standardProperty:()=>za,state:()=>ot});var $l=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Ul={attribute:!0,type:String,converter:Vt,reflect:!1,hasChanged:Nr},za=(r=Ul,e,t)=>{let{kind:n,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),n==="accessor"){let{name:s}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,r)},init(c){return c!==void 0&&this.C(s,void 0,r),c}}}if(n==="setter"){let{name:s}=t;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,r)}}throw Error("Unsupported decorator location: "+n)};function _(r){return(e,t)=>typeof t=="object"?za(r,e,t):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function ot(r){return _({...r,state:!0,attribute:!1})}function Dl(r){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,r)}}var ie=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Bl(r,e){return(t,n,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:c}=typeof n=="object"?t:i??(()=>{let l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return ie(t,n,{get(){let l=s.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return ie(t,n,{get(){return a(this)}})}}var Wl;function Hl(r){return(e,t)=>ie(e,t,{get(){return(this.renderRoot??(Wl??=document.createDocumentFragment())).querySelectorAll(r)}})}function zl(r){return(e,t)=>ie(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function jl(r){return(e,t)=>{let{slot:n,selector:i}=r??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ie(e,t,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(r)??[];return i===void 0?c:c.filter(l=>l.matches(i))}})}}function Vl(r){return(e,t)=>{let{slot:n}=r??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ie(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var Ko={};U(Ko,{repeat:()=>Vo});var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_e=r=>(...e)=>({_$litDirective$:r,values:e}),fe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Kl}=Ra;var ja=()=>document.createComment(""),yt=(r,e,t)=>{let n=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=n.insertBefore(ja(),i),s=n.insertBefore(ja(),i);t=new Kl(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,c=s!==r;if(c){let l;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(l=r._$AU)!==s._$AU&&t._$AP(l)}if(a!==i||c){let l=t._$AA;for(;l!==a;){let d=l.nextSibling;n.insertBefore(l,i),l=d}}}return t},Pe=(r,e,t=r)=>(r._$AI(e,t),r),Gl={},Va=(r,e=Gl)=>r._$AH=e,Ka=r=>r._$AH,Kr=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let n=e.nextSibling;e.remove(),e=n}};var Ga=(r,e,t)=>{let n=new Map;for(let i=e;i<=t;i++)n.set(r[i],i);return n},Vo=_e(class extends fe{constructor(r){if(super(r),r.type!==Ie.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let c of r)i[s]=n?n(c,s):s,a[s]=t(c,s),s++;return{values:a,keys:i}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,n]){let i=Ka(r),{values:a,keys:s}=this.ht(e,t,n);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],l=[],d,h,p=0,y=i.length-1,g=0,b=a.length-1;for(;p<=y&&g<=b;)if(i[p]===null)p++;else if(i[y]===null)y--;else if(c[p]===s[g])l[g]=Pe(i[p],a[g]),p++,g++;else if(c[y]===s[b])l[b]=Pe(i[y],a[b]),y--,b--;else if(c[p]===s[b])l[b]=Pe(i[p],a[b]),yt(r,l[b+1],i[p]),p++,b--;else if(c[y]===s[g])l[g]=Pe(i[y],a[g]),yt(r,i[p],i[y]),y--,g++;else if(d===void 0&&(d=Ga(s,g,b),h=Ga(c,p,y)),d.has(c[p]))if(d.has(c[y])){let w=h.get(s[g]),C=w!==void 0?i[w]:null;if(C===null){let E=yt(r,i[p]);Pe(E,a[g]),l[g]=E}else l[g]=Pe(C,a[g]),yt(r,i[p],C),i[w]=null;g++}else Kr(i[y]),y--;else Kr(i[p]),p++;for(;g<=b;){let w=yt(r,l[b+1]);Pe(w,a[g]),l[g++]=w}for(;p<=y;){let w=i[p++];w!==null&&Kr(w)}return this.dt=s,Va(r,l),Q}});var Go={};U(Go,{classMap:()=>Zl});var Zl=_e(class extends fe{constructor(r){if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.st?.has(n)&&this.it.add(n);return this.render(e)}let t=r.element.classList;for(let n of this.it)n in e||(t.remove(n),this.it.delete(n));for(let n in e){let i=!!e[n];i===this.it.has(n)||this.st?.has(n)||(i?(t.add(n),this.it.add(n)):(t.remove(n),this.it.delete(n)))}return Q}});var Zo={};U(Zo,{styleMap:()=>Yl});var Za="important",ql=" !"+Za,Yl=_e(class extends fe{constructor(r){if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let n=r[t];return n==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let n of this.ut)e[n]==null&&(this.ut.delete(n),n.includes("-")?t.removeProperty(n):t[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ut.add(n);let a=typeof i=="string"&&i.endsWith(ql);n.includes("-")||a?t.setProperty(n,a?i.slice(0,-11):i,a?Za:""):t[n]=i}}return Q}});var qo={};U(qo,{UnsafeHTMLDirective:()=>gt,unsafeHTML:()=>or});var gt=class extends fe{constructor(e){if(super(e),this.et=H,e.type!==Ie.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this.vt=void 0,this.et=e;if(e===Q)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};gt.directiveName="unsafeHTML",gt.resultType=1;var or=_e(gt);var Jo={};U(Jo,{CacheRegistry:()=>pe});var Yo={};U(Yo,{CancelablePromise:()=>xt,CanceledPromiseError:()=>bt,cancelable:()=>Gr});var bt=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},xt=class extends Promise{constructor(e){super((t,n)=>e(i=>{this.isCanceled?n(new bt("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?n(new bt("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Gr=r=>new xt((e,t)=>r.then(e).catch(t));var pe=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof xt&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,n){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=Gr(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Qo={};U(Qo,{ClusteringHelper:()=>Xo});var Xo=class r{constructor(e,t,n,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(e,t){var n,i;let a=((i=(n=e?.map)!==null&&n!==void 0?n:e?.document)!==null&&i!==void 0?i:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(n=>r.flattenMetadata(n)).filter(n=>n!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let n=[],i=[];return e.hierarchicalValues.forEach(a=>{n.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:n.join(", "),displayValue:i.join(", ")}}else{let n=e.values.join(", ");return{key:e.key,label:e.label,value:n,displayValue:n}}}computeClustersItemsForMetadata(e,t,n="No value"){var i,a;let s=r.extractResultMetadata(this.selectedResult,e),c=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,e)).map(d=>d??{key:e,label:c,value:void 0,displayValue:n}).filter(d=>d.value!=s?.value).filter((d,h,p)=>p.findIndex(y=>y.value===d.value)===h).map(d=>({result:this.findBestResultForMetadataValue(e,d.value),metadata:d})).sort((d,h)=>this.compareMetadata(d.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,n,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let l=e.localeCompare(t,i,{numeric:!0});return c?l*-1:l}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let n=this.allResults.filter(l=>{var d;return((d=r.extractResultMetadata(l,e))===null||d===void 0?void 0:d.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(l=>this.clusteringMetadata.has(l.key)).filter(l=>l.key!==e)],s,c=-1;for(let l of n){let d=this.countMatchingMetadata(l,a);if(d>c&&(c=d,s=l,d===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(n=>t.some(i=>i.key===n.key&&i.value===n.value)).length}};var en={};U(en,{Debouncer:()=>Te});var Te=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var on={};U(on,{customElement:()=>Y,isNumber:()=>Xa,jsonProperty:()=>re,optionalNumberProperty:()=>ru});var rn={};U(rn,{dateReviver:()=>Xl,deepEqual:()=>ae,delay:()=>Zr,eventPathContainsMatchingElement:()=>eu,flatDeep:()=>Ya,hasChanged:()=>nr,last:()=>tu,minmax:()=>tn,parseDate:()=>Ja,waitFor:()=>qa,waitUntil:()=>Jl});var Zr=r=>new Promise(e=>setTimeout(e,r));async function Jl(r,e=10,t=2e4){await qa(async()=>await r()||void 0,e,t)}async function qa(r,e=10,t=2e4){let n=await r(),i,a;for(i=a=performance.now();n==null&&(!t||a-i<t);)await Zr(e),n=await r(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Ya(r,e){return r.flatMap(t=>[t,...Ya(e(t),e)])}function Xl(...r){return function(e,t){return r.includes(e)?Ja(t):t}}function Ja(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,n,i)=>t+n+":"+i),new Date(r)}function Ql(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,n,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!ae(r[n],e[n]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;for(n of r.entries())if(!ae(n[1],e.get(n[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){var a=i[n];if(!ae(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function ae(r,e){try{return Ql(r,e)}catch{return!1}}function nr(r,e){return!ae(r,e)}function eu(r,e,t=window.document.body){if(e.length>0){let n=r.composedPath();for(let i of n){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function tn(r,e,t){return Math.min(Math.max(r,e),t)}function tu(r){return r[r.length-1]}var Y=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function re(r,e){let t=()=>JSON.parse(JSON.stringify(r));return _({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:nr,...e??{}})}function ru(r){return _({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Xa(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function Xa(r){return!isNaN(parseFloat(r))}var Fn={};U(Fn,{designSystemVariables:()=>Yr});var Tn={};U(Tn,{DesignSystemFamily:()=>ar,DesignSystemSize:()=>sr,FtCssVariableFactory:()=>o,badge:()=>lu,banner:()=>cu,breadcrumb:()=>uu,button:()=>nu,chart:()=>wu,checkbox:()=>Eu,chip:()=>au,chipChoice:()=>iu,collapsible:()=>Su,comboboxMultiSelect:()=>xu,comboboxSingleSelect:()=>bu,drawer:()=>pu,floatingMenu:()=>gu,foundation:()=>u,link:()=>su,modal:()=>fu,notice:()=>Cu,notification:()=>Nu,pageHeader:()=>du,popover:()=>vu,radio:()=>Ru,resolveFamilyClass:()=>_n,resolveSizeClass:()=>Pn,semantic:()=>f,setVariable:()=>qr,switch_:()=>Ou,tabs:()=>hu,textArea:()=>yu,textInput:()=>mu,toggle:()=>Au,tooltip:()=>Iu,typographies:()=>ir,typographyBody1Medium:()=>un,typographyBody1Regular:()=>ln,typographyBody1Semibold:()=>dn,typographyBody2Medium:()=>pn,typographyBody2MediumUnderline:()=>Qa,typographyBody2Regular:()=>fn,typographyBody2Semibold:()=>hn,typographyCaption1Bold:()=>wn,typographyCaption1Medium:()=>Sn,typographyCaption1Semibold:()=>On,typographyCaption2Bold:()=>An,typographyCaption2Medium:()=>Cn,typographyCaption2Semibold:()=>En,typographyCaption3Bold:()=>In,typographyCaption3Medium:()=>Rn,typographyCaption3Semibold:()=>Nn,typographyDisplay:()=>nn,typographyLabel1Bold:()=>gn,typographyLabel1Medium:()=>mn,typographyLabel1Semibold:()=>yn,typographyLabel2Bold:()=>vn,typographyLabel2Medium:()=>bn,typographyLabel2Semibold:()=>xn,typographyTitle1:()=>an,typographyTitle2:()=>sn,typographyTitle3:()=>cn,typographyVariants:()=>ou});var ve=r=>typeof r=="string"?Je(r):r,o=class{static create(e,t,n,i){let a=c=>ve(c??i),s=T`var(${ve(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>T`var(${ve(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,n,i){let a=c=>n.get(c??i),s=T`var(${ve(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>T`var(${ve(e)}, ${a(c)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,t){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):ve(a??e.lastResortDefaultValue()),i=T`var(${ve(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=n,i.get=a=>T`var(${ve(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function qr(r,e){return ve(`${r.name}: ${e}`)}var u={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"),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)")},nn={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")},an={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")},sn={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")},cn={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")},ln={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")},un={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")},dn={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")},fn={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")},pn={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")},Qa={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")},hn={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")},mn={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")},yn={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")},gn={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")},bn={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")},xn={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")},vn={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")},Sn={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")},On={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")},wn={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")},Cn={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")},En={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")},An={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")},Rn={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")},Nn={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")},In={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")},ir={display:nn,"title-1":an,"title-2":sn,"title-3":cn,"body-1-regular":ln,"body-1-medium":un,"body-1-semibold":dn,"body-2-regular":fn,"body-2-medium":pn,"body-2-medium-underline":Qa,"body-2-semibold":hn,"label-1-medium":mn,"label-1-semibold":yn,"label-1-bold":gn,"label-2-medium":bn,"label-2-semibold":xn,"label-2-bold":vn,"caption-1-medium":Sn,"caption-1-semibold":On,"caption-1-bold":wn,"caption-2-medium":Cn,"caption-2-semibold":En,"caption-2-bold":An,"caption-3-medium":Rn,"caption-3-semibold":Nn,"caption-3-bold":In},ou=["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 f={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",u.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",u.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",u.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",u.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",u.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",u.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",u.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",u.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",u.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",u.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",u.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",u.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",u.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",u.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",u.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",u.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",u.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",u.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
- Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",u.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",u.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",u.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",u.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",u.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",u.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",u.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",u.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",u.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",u.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",u.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",u.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",u.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",u.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",u.colorGray80)};var nu={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",u.spacing4),largeGap:o.extend("--ft-button-large-gap","",u.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",u.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",u.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","",u.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",u.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",u.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",u.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","",u.spacing2),smallGap:o.extend("--ft-button-small-gap","",u.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",u.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",u.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","",u.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","",u.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",u.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",u.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",u.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",u.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",u.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",u.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",u.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",u.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",u.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",u.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",u.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",u.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",u.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",u.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",u.opacity40)};var iu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",u.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",u.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",f.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",u.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",f.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",u.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",u.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",u.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",f.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",u.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",f.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",u.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",u.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","",u.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",u.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",u.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","",u.iconSize2)};var au={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",u.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",u.spacing1),largeGap:o.extend("--ft-chip-large-gap","",u.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","",u.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",u.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",u.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",u.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","",u.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",u.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",u.spacing05),smallGap:o.extend("--ft-chip-small-gap","",u.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","",u.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var su={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",u.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",u.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",f.contentActionPrimary)};var cu={iconSize:o.extend("--ft-banner-icon-size","",u.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",u.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",u.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",u.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",u.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",u.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",u.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",u.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var lu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",u.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",u.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",u.borderRadiusPill),color:o.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var uu={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",u.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",u.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var du={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",u.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",u.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",u.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",u.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",u.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",u.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",u.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var fu={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",u.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",u.opacity40),shadow:o.extend("--ft-modal-shadow","",u.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",u.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",u.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",u.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",u.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",u.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",u.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",u.spacing6),headerGap:o.extend("--ft-modal-header-gap","",u.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",u.borderRadiusM)};var pu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",u.opacity40),shadow:o.extend("--ft-drawer-shadow","",u.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",u.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",u.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",u.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",u.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",u.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",u.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",u.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",u.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","",u.colorGray700)};var hu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",u.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",u.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",u.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",u.opacity40),offColor:o.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",u.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",u.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",u.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",u.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",u.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",u.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",u.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",u.opacity24),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",u.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",u.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",u.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",u.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var mu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",u.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",u.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",u.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",u.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",u.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",u.opacity40)};var yu={backgroundColor:o.extend("--ft-text-area-background-color","",u.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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","",u.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",u.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",u.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",u.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",u.borderRadiusM)};var gu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",u.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",u.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",u.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",u.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",u.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",u.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",u.shadowElevation02)};var bu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",u.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",u.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",u.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",u.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",u.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",u.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",u.opacity40)};var xu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",u.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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","",u.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",u.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",u.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",u.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",u.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",u.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",u.borderRadiusM)};var vu={backgroundColor:o.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",u.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",u.spacing6),titleColor:o.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:o.extend("--ft-popover-gap","",u.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",u.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",u.shadowElevation02)};var Su={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",u.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",u.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",u.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",u.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",u.spacing3),color:o.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",u.iconSize3)};var Ou={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",u.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",u.spacing1),groupGap:o.extend("--ft-switch-group-gap","",u.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",u.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",u.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",u.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",u.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",u.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",u.opacity40),offColor:o.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",u.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",u.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",u.opacity40),onColor:o.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",u.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",u.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",u.borderRadiusS)};var wu={color1Light:o.extend("--ft-chart-1-light","for area color charts",u.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",u.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",u.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",u.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",u.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",u.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",u.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",u.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",u.colorRed40),color5Base:o.extend("--ft-chart-5-base","",u.colorRed60),color6Light:o.extend("--ft-chart-6-light","",u.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",u.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",u.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",u.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",u.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",u.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",u.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",u.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",u.colorGray50),color10Base:o.extend("--ft-chart-10-base","",u.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",u.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",u.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",u.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",u.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",u.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",u.colorBrand200)};var Cu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",u.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",u.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",u.borderRadiusS),gap:o.extend("--ft-notice-gap","",u.spacing2),iconSize:o.extend("--ft-notice-icon-size","",u.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Eu={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",u.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",u.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",u.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",u.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",u.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",u.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",u.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",u.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",u.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",f.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","",u.spacing3)};var Au={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",u.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",u.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",u.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",u.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",u.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",u.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",u.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",u.spacing3)};var Ru={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",u.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",u.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",u.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",u.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",u.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",u.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",u.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",f.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","",u.spacing3)};var Nu={iconSize:o.extend("--ft-notification-icon-size","",u.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",u.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",u.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",u.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",u.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",u.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",u.spacing8)};var Iu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",u.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",u.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",u.borderRadiusS),color:o.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",u.opacity80),shadow:o.extend("--ft-tooltip-shadow","",u.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",u.spacing05)};var ar;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(ar||(ar={}));var sr;(function(r){r.large="large",r.medium="medium",r.small="small"})(sr||(sr={}));function _n(r){return`ftds--family-${r}`}function Pn(r){return`ftds--size-${r}`}var Yr={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 $n={};U($n,{FtNotificationEvent:()=>Ln,PostResizeEvent:()=>Mn,PreResizeEvent:()=>kn});var Ln=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},kn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Mn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Zn={};U(Zn,{computeOffsetPosition:()=>Zu});var ts=["top","right","bottom","left"],es=["start","end"],Dn=ts.reduce((r,e)=>r.concat(e,e+"-"+es[0],e+"-"+es[1]),[]),cr=Math.min,Fe=Math.max,lr=Math.round;var Se=r=>({x:r,y:r}),_u={left:"right",right:"left",bottom:"top",top:"bottom"},Pu={start:"end",end:"start"};function Bn(r,e,t){return Fe(r,cr(e,t))}function Jr(r,e){return typeof r=="function"?r(e):r}function vt(r){return r.split("-")[0]}function Le(r){return r.split("-")[1]}function Wn(r){return r==="x"?"y":"x"}function Hn(r){return r==="y"?"height":"width"}function Xr(r){return["top","bottom"].includes(vt(r))?"y":"x"}function zn(r){return Wn(Xr(r))}function rs(r,e,t){t===void 0&&(t=!1);let n=Le(r),i=zn(r),a=Hn(i),s=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Un(s)),[s,Un(s)]}function os(r){return r.replace(/start|end/g,e=>Pu[e])}function Un(r){return r.replace(/left|right|bottom|top/g,e=>_u[e])}function Tu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ns(r){return typeof r!="number"?Tu(r):{top:r,right:r,bottom:r,left:r}}function nt(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function is(r,e,t){let{reference:n,floating:i}=r,a=Xr(e),s=zn(e),c=Hn(s),l=vt(e),d=a==="y",h=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,y=n[c]/2-i[c]/2,g;switch(l){case"top":g={x:h,y:n.y-i.height};break;case"bottom":g={x:h,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-i.width,y:p};break;default:g={x:n.x,y:n.y}}switch(Le(e)){case"start":g[s]-=y*(t&&d?-1:1);break;case"end":g[s]+=y*(t&&d?-1:1);break}return g}var as=async(r,e,t)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:h,y:p}=is(d,n,l),y=n,g={},b=0;for(let w=0;w<c.length;w++){let{name:C,fn:E}=c[w],{x:A,y:v,data:S,reset:O}=await E({x:h,y:p,initialPlacement:n,placement:y,strategy:i,middlewareData:g,rects:d,platform:s,elements:{reference:r,floating:e}});if(h=A??h,p=v??p,g={...g,[C]:{...g[C],...S}},O&&b<=50){b++,typeof O=="object"&&(O.placement&&(y=O.placement),O.rects&&(d=O.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):O.rects),{x:h,y:p}=is(d,y,l)),w=-1;continue}}return{x:h,y:p,placement:y,strategy:i,middlewareData:g}};async function jn(r,e){var t;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:l}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:y=!1,padding:g=0}=Jr(e,r),b=ns(g),C=c[y?p==="floating"?"reference":"floating":p],E=nt(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(C)))==null||t?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:l})),A=p==="floating"?{...s.floating,x:n,y:i}:s.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),S=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},O=nt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:v,strategy:l}):A);return{top:(E.top-O.top+b.top)/S.y,bottom:(O.bottom-E.bottom+b.bottom)/S.y,left:(E.left-O.left+b.left)/S.x,right:(O.right-E.right+b.right)/S.x}}function Fu(r,e,t){return(r?[...t.filter(i=>Le(i)===r),...t.filter(i=>Le(i)!==r)]:t.filter(i=>vt(i)===i)).filter(i=>r?Le(i)===r||(e?os(i)!==i:!1):!0)}var Vn=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,n,i;let{rects:a,middlewareData:s,placement:c,platform:l,elements:d}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:y=Dn,autoAlignment:g=!0,...b}=Jr(r,e),w=p!==void 0||y===Dn?Fu(p||null,g,y):y,C=await jn(e,b),E=((t=s.autoPlacement)==null?void 0:t.index)||0,A=w[E];if(A==null)return{};let v=rs(A,a,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(c!==A)return{reset:{placement:w[0]}};let S=[C[vt(A)],C[v[0]],C[v[1]]],O=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:S}],P=w[E+1];if(P)return{data:{index:E+1,overflows:O},reset:{placement:P}};let M=O.map(N=>{let m=Le(N.placement);return[N.placement,m&&h?N.overflows.slice(0,2).reduce((x,R)=>x+R,0):N.overflows[0],N.overflows]}).sort((N,m)=>N[1]-m[1]),$=((i=M.filter(N=>N[2].slice(0,Le(N[0])?2:3).every(m=>m<=0))[0])==null?void 0:i[0])||M[0][0];return $!==c?{data:{index:E+1,overflows:O},reset:{placement:$}}:{}}}};var Kn=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:C=>{let{x:E,y:A}=C;return{x:E,y:A}}},...l}=Jr(r,e),d={x:t,y:n},h=await jn(e,l),p=Xr(vt(i)),y=Wn(p),g=d[y],b=d[p];if(a){let C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",A=g+h[C],v=g-h[E];g=Bn(A,g,v)}if(s){let C=p==="y"?"top":"left",E=p==="y"?"bottom":"right",A=b+h[C],v=b-h[E];b=Bn(A,b,v)}let w=c.fn({...e,[y]:g,[p]:b});return{...w,data:{x:w.x-t,y:w.y-n}}}}};function Oe(r){return cs(r)?(r.nodeName||"").toLowerCase():"#document"}function X(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function we(r){var e;return(e=(cs(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function cs(r){return r instanceof Node||r instanceof X(r).Node}function he(r){return r instanceof Element||r instanceof X(r).Element}function se(r){return r instanceof HTMLElement||r instanceof X(r).HTMLElement}function ss(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof X(r).ShadowRoot}function St(r){let{overflow:e,overflowX:t,overflowY:n,display:i}=ee(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function ls(r){return["table","td","th"].includes(Oe(r))}function eo(r){let e=to(),t=ee(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function us(r){let e=it(r);for(;se(e)&&!ur(e);){if(eo(e))return e;e=it(e)}return null}function to(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ur(r){return["html","body","#document"].includes(Oe(r))}function ee(r){return X(r).getComputedStyle(r)}function dr(r){return he(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function it(r){if(Oe(r)==="html")return r;let e=r.assignedSlot||r.parentNode||ss(r)&&r.host||we(r);return ss(e)?e.host:e}function ds(r){let e=it(r);return ur(e)?r.ownerDocument?r.ownerDocument.body:r.body:se(e)&&St(e)?e:ds(e)}function Qr(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=ds(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),s=X(i);return a?e.concat(s,s.visualViewport||[],St(i)?i:[],s.frameElement&&t?Qr(s.frameElement):[]):e.concat(i,Qr(i,[],t))}function hs(r){let e=ee(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=se(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:n,c=lr(t)!==a||lr(n)!==s;return c&&(t=a,n=s),{width:t,height:n,$:c}}function ms(r){return he(r)?r:r.contextElement}function Ot(r){let e=ms(r);if(!se(e))return Se(1);let t=e.getBoundingClientRect(),{width:n,height:i,$:a}=hs(e),s=(a?lr(t.width):t.width)/n,c=(a?lr(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Lu=Se(0);function ys(r){let e=X(r);return!to()||!e.visualViewport?Lu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ku(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==X(r)?!1:e}function fr(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=ms(r),s=Se(1);e&&(n?he(n)&&(s=Ot(n)):s=Ot(r));let c=ku(a,t,n)?ys(a):Se(0),l=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(a){let y=X(a),g=n&&he(n)?X(n):n,b=y.frameElement;for(;b&&n&&g!==y;){let w=Ot(b),C=b.getBoundingClientRect(),E=ee(b),A=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*w.x,v=C.top+(b.clientTop+parseFloat(E.paddingTop))*w.y;l*=w.x,d*=w.y,h*=w.x,p*=w.y,l+=A,d+=v,b=X(b).frameElement}}return nt({width:h,height:p,x:l,y:d})}function Mu(r){let{rect:e,offsetParent:t,strategy:n}=r,i=se(t),a=we(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},c=Se(1),l=Se(0);if((i||!i&&n!=="fixed")&&((Oe(t)!=="body"||St(a))&&(s=dr(t)),se(t))){let d=fr(t);c=Ot(t),l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function $u(r){return Array.from(r.getClientRects())}function gs(r){return fr(we(r)).left+dr(r).scrollLeft}function Uu(r){let e=we(r),t=dr(r),n=r.ownerDocument.body,i=Fe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Fe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+gs(r),c=-t.scrollTop;return ee(n).direction==="rtl"&&(s+=Fe(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function Du(r,e){let t=X(r),n=we(r),i=t.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let d=to();(!d||d&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}function Bu(r,e){let t=fr(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=se(r)?Ot(r):Se(1),s=r.clientWidth*a.x,c=r.clientHeight*a.y,l=i*a.x,d=n*a.y;return{width:s,height:c,x:l,y:d}}function fs(r,e,t){let n;if(e==="viewport")n=Du(r,t);else if(e==="document")n=Uu(we(r));else if(he(e))n=Bu(e,t);else{let i=ys(r);n={...e,x:e.x-i.x,y:e.y-i.y}}return nt(n)}function bs(r,e){let t=it(r);return t===e||!he(t)||ur(t)?!1:ee(t).position==="fixed"||bs(t,e)}function Wu(r,e){let t=e.get(r);if(t)return t;let n=Qr(r,[],!1).filter(c=>he(c)&&Oe(c)!=="body"),i=null,a=ee(r).position==="fixed",s=a?it(r):r;for(;he(s)&&!ur(s);){let c=ee(s),l=eo(s);!l&&c.position==="fixed"&&(i=null),(a?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||St(s)&&!l&&bs(r,s))?n=n.filter(h=>h!==s):i=c,s=it(s)}return e.set(r,n),n}function Hu(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r,s=[...t==="clippingAncestors"?Wu(e,this._c):[].concat(t),n],c=s[0],l=s.reduce((d,h)=>{let p=fs(e,h,i);return d.top=Fe(p.top,d.top),d.right=cr(p.right,d.right),d.bottom=cr(p.bottom,d.bottom),d.left=Fe(p.left,d.left),d},fs(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function zu(r){return hs(r)}function ju(r,e,t){let n=se(e),i=we(e),a=t==="fixed",s=fr(r,!0,a,e),c={scrollLeft:0,scrollTop:0},l=Se(0);if(n||!n&&!a)if((Oe(e)!=="body"||St(i))&&(c=dr(e)),n){let d=fr(e,!0,a,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=gs(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function ps(r,e){return!se(r)||ee(r).position==="fixed"?null:e?e(r):r.offsetParent}function xs(r,e){let t=X(r);if(!se(r))return t;let n=ps(r,e);for(;n&&ls(n)&&ee(n).position==="static";)n=ps(n,e);return n&&(Oe(n)==="html"||Oe(n)==="body"&&ee(n).position==="static"&&!eo(n))?t:n||us(r)||t}var Vu=async function(r){let{reference:e,floating:t,strategy:n}=r,i=this.getOffsetParent||xs,a=this.getDimensions;return{reference:ju(e,await i(t),n),floating:{x:0,y:0,...await a(t)}}};function Ku(r){return ee(r).direction==="rtl"}var ro={convertOffsetParentRelativeRectToViewportRelativeRect:Mu,getDocumentElement:we,getClippingRect:Hu,getOffsetParent:xs,getElementRects:Vu,getClientRects:$u,getDimensions:zu,getScale:Ot,isElement:he,isRTL:Ku};var vs=(r,e,t)=>{let n=new Map,i={platform:ro,...t},a={...i.platform,_c:n};return as(r,e,{...i,platform:a})};function Ss(r){return Gu(r)}function Gn(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Gu(r){for(let e=r;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(r);e;e=Gn(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Zu(r,e,t){return vs(r,e,{platform:{...ro,getOffsetParent:n=>ro.getOffsetParent(n,Ss)},middleware:[Kn({crossAxis:!0}),Vn({allowedPlacements:[t]})]})}var Xn={};U(Xn,{FtdsBase:()=>Jn,toFtdsBase:()=>Is});var Yn={};U(Yn,{FtLitElement:()=>V});var qn={};U(qn,{ScopedRegistryLitElement:()=>pr});var oo=window,qu=oo.ShadowRoot&&(oo.ShadyCSS===void 0||oo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Dy=Symbol();var Os=(r,e)=>{qu?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),i=oo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)})};var pr=class extends xe{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return Os(n,e.elementStyles),n}};var no=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},As,ws=Symbol("constructorPrototype"),Cs=Symbol("constructorName"),Rs=Symbol("exportpartsDebouncer"),Es=Symbol("dynamicDependenciesLoaded"),V=class extends pr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[As]=new Te(5),this[Cs]=this.constructor.name,this[ws]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cs]&&Object.setPrototypeOf(this,this[ws])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[Es]||(e[Es]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,n,i;if(((n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&n!==void 0&&n)&&this[Rs].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,n,i,a,s,c;let l=y=>y!=null&&y.trim().length>0,d=e.filter(l).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=y.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...g,...b).filter(l).map(w=>w.trim()).forEach(w=>h.add(w))}if(h.size===0){this.removeAttribute("exportparts");return}let p=[...h.values()].flatMap(y=>d.map(g=>`${y}:${g}--${y}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};As=Rs;no([_()],V.prototype,"exportpartsPrefix",void 0);no([re([])],V.prototype,"exportpartsPrefixes",void 0);no([_()],V.prototype,"customStylesheet",void 0);no([ot()],V.prototype,"useAdoptedStyleSheets",void 0);var Ns=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function Is(r){class e extends r{constructor(){super(...arguments),this.size=sr.medium,this.family=ar.neutral}getDesignSystemBaseClasses(){return{[_n(this.family)]:!0,[Pn(this.size)]:!0}}}return Ns([_()],e.prototype,"size",void 0),Ns([_()],e.prototype,"family",void 0),e}var Jn=class extends Is(V){};var _s={};var ti={};U(ti,{highlightHtml:()=>ei,highlightHtmlColorCssVariable:()=>Ps,highlightHtmlStyles:()=>Ju});var at=class r{constructor(e,t=!0,n=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=i}static matches(e,t){let n=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let i=t.filter(a=>a.contains(n)).length>0;t.indexOf(n)===-1&&!i&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&t(i)}isIframeBlank(e){let t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||t()})},i=>{i||t()})}forEachIframe(e,t,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let l=()=>{--s<=0&&i(c)};s||l(),a.forEach(d=>{r.matches(d,this.exclude)?l():this.onIframeReady(d,h=>{t(d)&&(c++,n(h)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(n),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,i){let a=!1,s=!1;return i.forEach((c,l)=>{c.val===n&&(a=l,s=c.handled)}),this.compareNodeIframe(e,t,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,i)})})}iterateThroughNodes(e,t,n,i,a){let s=this.createIterator(t,e,i),c=[],l=[],d,h,p=()=>({prevNode:h,node:d}=this.getIteratorNode(s),d);for(;p();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(d,h,y,c),y=>{this.createInstanceOnIframe(y).forEachNode(e,g=>l.push(g),i)}),l.push(d);l.forEach(y=>{n(y)}),this.iframes&&this.handleOpenIframes(c,e,n,i),a()}forEachNode(e,t,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let l=()=>{this.iterateThroughNodes(e,c,t,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,l):l()})}};var hr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new at(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(l)})`,`gm${n}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(l)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,i)=>i.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,n);c&&(i.start=a,i.length=s-a,t.push(i),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:i,valid:a}}checkWhitespaceRanges(e,t,n){let i,a=!0,s=n.length,c=t-s,l=parseInt(e.start,10)-c;return l=l>s?s:l,i=l+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||i-l<0||l>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:i,valid:a}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return at.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(n-t),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,t,n,i,a){e.nodes.every((s,c)=>{let l=e.nodes[c+1];if(typeof l>"u"||l.start>t){if(!i(s.node))return!1;let d=t-s.start,h=(n>s.end?s.end:n)-s.start,p=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,h),e.value=p+y,e.nodes.forEach((g,b)=>{b>=c&&(e.nodes[b].start>0&&b!==c&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{c.nodes.forEach(l=>{l=l.node;let d;for(;(d=e.exec(l.textContent))!==null&&d[s]!=="";){if(!n(d[s],l))continue;let h=d.index;if(s!==0)for(let p=1;p<s;p++)h+=d[p].length;l=this.wrapRangeInTextNode(l,h,h+d[s].length),i(l.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,n,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{let l;for(;(l=e.exec(c.value))!==null&&l[s]!=="";){let d=l.index;if(s!==0)for(let p=1;p<s;p++)d+=l[p].length;let h=d+l[s].length;this.wrapRangeInMappedTextNode(c,d,h,p=>n(l[s],p),(p,y)=>{e.lastIndex=y,i(p)})}a()})}wrapRangeFromIndex(e,t,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,l)=>{let{start:d,end:h,valid:p}=this.checkWhitespaceRanges(c,s,a.value);p&&this.wrapRangeInMappedTextNode(a,d,h,y=>t(y,c,a.value.substring(d,h),l),y=>{n(y,c)})}),i()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",l=d=>{let h=new RegExp(this.createRegExp(d),`gm${c}`),p=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(y,g)=>this.opt.filter(g,d,n,p),y=>{p++,n++,this.opt.each(y)},()=>{p===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(n):l(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(a[0])}markRanges(e,t){this.opt=t;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,l)=>this.opt.filter(a,s,c,l),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=at.matches(n,t),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Qn(r){let e=new hr(r);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}var Yu=Qn,Ps=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Ju=T`
1
+ "use strict";(()=>{var ul=Object.create;var Fo=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var fl=Object.getOwnPropertyNames;var pl=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var ml=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),$=(r,e)=>{for(var t in e)Fo(r,t,{get:e[t],enumerable:!0})},gl=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of fl(e))!hl.call(r,i)&&i!==t&&Fo(r,i,{get:()=>e[i],enumerable:!(n=dl(e,i))||n.enumerable});return r};var yl=(r,e,t)=>(t=r!=null?ul(pl(r)):{},gl(e||!r||!r.__esModule?Fo(t,"default",{value:r,enumerable:!0}):t,r));var mc=ml((je,hc)=>{var go=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,yo=function(){function r(){this.fetch=!1,this.DOMException=go.DOMException}return r.prototype=go,new r}();(function(r){var e=function(t){var n=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function l(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 d(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var x={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return i.iterable&&(x[Symbol.iterator]=function(){return x}),x}function p(m){this.map={},m instanceof p?m.forEach(function(x,R){this.append(R,x)},this):Array.isArray(m)?m.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}p.prototype.append=function(m,x){m=l(m),x=d(x);var R=this.map[m];this.map[m]=R?R+", "+x:x},p.prototype.delete=function(m){delete this.map[l(m)]},p.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},p.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},p.prototype.set=function(m,x){this.map[l(m)]=d(x)},p.prototype.forEach=function(m,x){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(x,this.map[R],R,this)},p.prototype.keys=function(){var m=[];return this.forEach(function(x,R){m.push(R)}),h(m)},p.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),h(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(x,R){m.push([R,x])}),h(m)},i.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function g(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function y(m){return new Promise(function(x,R){m.onload=function(){x(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var x=new FileReader,R=y(x);return x.readAsArrayBuffer(m),R}function O(m){var x=new FileReader,R=y(x),k=/charset=([A-Za-z0-9_-]+)/.exec(m.type),B=k?k[1]:"utf-8";return x.readAsText(m,B),R}function A(m){for(var x=new Uint8Array(m),R=new Array(x.length),k=0;k<x.length;k++)R[k]=String.fromCharCode(x[k]);return R.join("")}function E(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:i.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:i.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():i.arrayBuffer&&i.blob&&a(m)?(this._bodyArrayBuffer=E(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||c(m))?this._bodyArrayBuffer=E(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var m=g(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=g(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(i.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=g(this);if(m)return m;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(m){var x=m.toUpperCase();return v.indexOf(x)>-1?x:m}function w(m,x){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var R=x.body;if(m instanceof w){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new p(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new p(x.headers)),this.method=S(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var L=new AbortController;return L.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(R),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var k=/([?&])_=[^&]*/;if(k.test(this.url))this.url=this.url.replace(k,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function P(m){var x=new FormData;return m.trim().split("&").forEach(function(R){if(R){var k=R.split("="),B=k.shift().replace(/\+/g," "),L=k.join("=").replace(/\+/g," ");x.append(decodeURIComponent(B),decodeURIComponent(L))}}),x}function U(m){var x=new p,R=m.replace(/\r?\n[\t ]+/g," ");return R.split("\r").map(function(k){return k.indexOf(`
2
+ `)===0?k.substr(1,k.length):k}).forEach(function(k){var B=k.split(":"),L=B.shift().trim();if(L){var Er=B.join(":").trim();try{x.append(L,Er)}catch(To){console.warn("Response "+To.message)}}}),x}C.call(w.prototype);function D(m,x){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new p(x.headers),this.url=x.url||"",this._initBody(m)}C.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},D.error=function(){var m=new D(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var M=[301,302,303,307,308];D.redirect=function(m,x){if(M.indexOf(x)===-1)throw new RangeError("Invalid status code");return new D(null,{status:x,headers:{location:m}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,R){this.message=x,this.name=R;var k=Error(x);this.stack=k.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function N(m,x){return new Promise(function(R,k){var B=new w(m,x);if(B.signal&&B.signal.aborted)return k(new t.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function Er(){L.abort()}L.onload=function(){var Z={statusText:L.statusText,headers:U(L.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(L.status<200||L.status>599)?Z.status=200:Z.status=L.status,Z.url="responseURL"in L?L.responseURL:Z.headers.get("X-Request-URL");var Ve="response"in L?L.response:L.responseText;setTimeout(function(){R(new D(Ve,Z))},0)},L.onerror=function(){setTimeout(function(){k(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){k(new TypeError("Network request timed out"))},0)},L.onabort=function(){setTimeout(function(){k(new t.DOMException("Aborted","AbortError"))},0)};function To(Z){try{return Z===""&&n.location.href?n.location.href:Z}catch{return Z}}if(L.open(B.method,To(B.url),!0),B.credentials==="include"?L.withCredentials=!0:B.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(i.blob?L.responseType="blob":i.arrayBuffer&&(L.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof p||n.Headers&&x.headers instanceof n.Headers)){var ua=[];Object.getOwnPropertyNames(x.headers).forEach(function(Z){ua.push(l(Z)),L.setRequestHeader(Z,d(x.headers[Z]))}),B.headers.forEach(function(Z,Ve){ua.indexOf(Ve)===-1&&L.setRequestHeader(Ve,Z)})}else B.headers.forEach(function(Z,Ve){L.setRequestHeader(Ve,Z)});B.signal&&(B.signal.addEventListener("abort",Er),L.onreadystatechange=function(){L.readyState===4&&B.signal.removeEventListener("abort",Er)}),L.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return N.polyfill=!0,n.fetch||(n.fetch=N,n.Headers=p,n.Request=w,n.Response=D),t.Headers=p,t.Request=w,t.Response=D,t.fetch=N,t}({})})(yo);yo.fetch.ponyfill=!0;delete yo.fetch.polyfill;var _t=go.fetch?go:yo;je=_t.fetch;je.default=_t.fetch;je.fetch=_t.fetch;je.Headers=_t.Headers;je.Request=_t.Request;je.Response=_t.Response;hc.exports=je});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(v,S){if(v=v.toLowerCase(),this._getDefinition(v)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${v}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=S.prototype.attributeChangedCallback,P=new Set(S.observedAttributes||[]);g(S,P,w);let U={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:P};this._definitionsByTag.set(v,U),this._definitionsByClass.set(S,U);let D=t.call(n,v);D||(D=p(v),e.call(n,v,D)),this===window.customElements&&(s.set(S,U),U.standInClass=D);let M=this._awaitingUpgrade.get(v);if(M){this._awaitingUpgrade.delete(v);for(let m of M)a.delete(m),b(m,U,!0)}let N=this._whenDefinedPromises.get(v);return N!==void 0&&(N.resolve(S),this._whenDefinedPromises.delete(v)),S}upgrade(){A.push(this),n.upgrade.apply(n,arguments),A.pop()}get(v){return this._definitionsByTag.get(v)?.elementClass}_getDefinition(v){return this._definitionsByTag.get(v)}whenDefined(v){let S=this._getDefinition(v);if(S!==void 0)return Promise.resolve(S.elementClass);let w=this._whenDefinedPromises.get(v);return w===void 0&&(w={},w.promise=new Promise(P=>w.resolve=P),this._whenDefinedPromises.set(v,w)),w.promise}_upgradeWhenDefined(v,S,w){let P=this._awaitingUpgrade.get(S);P||this._awaitingUpgrade.set(S,P=new Set),w?P.add(v):P.delete(v)}};let l;window.HTMLElement=function(){let S=l;if(S)return l=void 0,S;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,w),S},window.HTMLElement.prototype=r.prototype;let d=v=>v===document||v instanceof ShadowRoot,h=v=>{let S=v.getRootNode();if(!d(S)){let w=A[A.length-1];if(w instanceof CustomElementRegistry)return w;S=w.getRootNode(),d(S)||(S=c.get(S)?.getRootNode()||document)}return S.customElements},p=v=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let P=h(w)||window.customElements,U=P._getDefinition(v);return U?b(w,U):a.set(w,P),w}connectedCallback(){let w=i.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,v,!0)}disconnectedCallback(){let w=i.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,v,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=i.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=i.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=i.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=i.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},g=(v,S,w)=>{if(S.size===0||w===void 0)return;let P=v.prototype.setAttribute;P&&(v.prototype.setAttribute=function(M,N){let m=M.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);P.call(this,m,N),w.call(this,m,x,N)}else P.call(this,m,N)});let U=v.prototype.removeAttribute;U&&(v.prototype.removeAttribute=function(M){let N=M.toLowerCase();if(S.has(N)){let m=this.getAttribute(N);U.call(this,N),w.call(this,N,m,null)}else U.call(this,N)});let D=v.prototype.toggleAttribute;D&&(v.prototype.toggleAttribute=function(M,N){let m=M.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);D.call(this,m,N);let R=this.getAttribute(m);w.call(this,m,x,R)}else D.call(this,m,N)})},y=v=>{let S=Object.getPrototypeOf(v);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(v,window.HTMLElement):y(S)},b=(v,S,w=!1)=>{Object.setPrototypeOf(v,S.elementClass.prototype),i.set(v,S),l=v;try{new S.elementClass}catch{y(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(P=>{v.hasAttribute(P)&&S.attributeChangedCallback.call(v,P,null,v.getAttribute(P))}),w&&S.connectedCallback&&v.isConnected&&S.connectedCallback.call(v)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(v){let S=O.apply(this,arguments);return v.customElements&&(S.customElements=v.customElements),S};let A=[document],E=(v,S,w=void 0)=>{let P=(w?Object.getPrototypeOf(w):v.prototype)[S];v.prototype[S]=function(){A.push(this);let U=P.apply(w||this,arguments);return U!==void 0&&c.set(U,this),A.pop(),U}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");let C=(v,S)=>{let w=Object.getOwnPropertyDescriptor(v.prototype,S);Object.defineProperty(v.prototype,S,{...w,set(P){A.push(this),w.set.call(this,P),A.pop()}})};if(C(Element,"innerHTML"),C(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let v=new WeakMap,S=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...M){let N=S.call(this,...M);return v.set(N,this),N},w.forEach(M=>{let N=window.ElementInternals.prototype,m=N[M];N[M]=function(...x){let R=v.get(this);if(i.get(R).formAssociated===!0)return m?.call(this,...x);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class P extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class U{constructor(N){let m=new Map;N.forEach((x,R)=>{let k=x.getAttribute("name"),B=m.get(k)||[];this[+R]=x,B.push(x),m.set(k,B)}),this.length=N.length,m.forEach((x,R)=>{x&&(x.length===1?this[R]=x[0]:this[R]=new P(x))})}namedItem(N){return this[N]}}let D=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let M=D.get.call(this,[]),N=[];for(let m of M){let x=i.get(m);(!x||x.formAssociated===!0)&&N.push(m)}return new U(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,n,i)=>{if(n!==null)try{e.bind(window.customElements)(t,n,i)}catch(a){console.info(t,n,i,a)}}}var Ko={};$(Ko,{CSSResult:()=>mt,LitElement:()=>ve,ReactiveElement:()=>fe,_$LE:()=>Wl,_$LH:()=>$l,adoptStyles:()=>Dr,css:()=>T,defaultConverter:()=>Br,getCompatibleStyle:()=>Xt,html:()=>q,isServer:()=>kf,noChange:()=>_e,notEqual:()=>Bo,nothing:()=>j,render:()=>Vo,supportsAdoptingStyleSheets:()=>Jt,svg:()=>Ml,unsafeCSS:()=>Xe});var Cr=globalThis,Rr=Cr.ShadowRoot&&(Cr.ShadyCSS===void 0||Cr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fa=Symbol(),da=new WeakMap,Ar=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==fa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Rr&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=da.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&da.set(t,e))}return e}toString(){return this.cssText}},pa=r=>new Ar(typeof r=="string"?r:r+"",void 0,fa);var Lo=(r,e)=>{if(Rr)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=Cr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},Nr=Rr?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return pa(t)})(r):r;var{is:bl,defineProperty:xl,getOwnPropertyDescriptor:vl,getOwnPropertyNames:Sl,getOwnPropertySymbols:Ol,getPrototypeOf:wl}=Object,_r=globalThis,ha=_r.trustedTypes,El=ha?ha.emptyScript:"",Cl=_r.reactiveElementPolyfillSupport,Vt=(r,e)=>r,Kt={toAttribute(r,e){switch(e){case Boolean:r=r?El:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Ir=(r,e)=>!bl(r,e),ma={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Ir};Symbol.metadata??=Symbol("metadata"),_r.litPropertyMetadata??=new WeakMap;var Ke=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ma){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&xl(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){let{get:i,set:a}=vl(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ma}static _$Ei(){if(this.hasOwnProperty(Vt("elementProperties")))return;let e=wl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vt("properties"))){let t=this.properties,n=[...Sl(t),...Ol(t)];for(let i of n)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)t.unshift(Nr(i))}else e!==void 0&&t.push(Nr(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Lo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:Kt).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kt;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Ir)(i?a:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};Ke.elementStyles=[],Ke.shadowRootOptions={mode:"open"},Ke[Vt("elementProperties")]=new Map,Ke[Vt("finalized")]=new Map,Cl?.({ReactiveElement:Ke}),(_r.reactiveElementVersions??=[]).push("2.0.2");var Uo=globalThis,Pr=Uo.trustedTypes,ga=Pr?Pr.createPolicy("lit-html",{createHTML:r=>r}):void 0,Mo="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,$o="?"+be,Al=`<${$o}>`,qe=document,Tr=()=>qe.createComment(""),Zt=r=>r===null||typeof r!="object"&&typeof r!="function",Oa=Array.isArray,wa=r=>Oa(r)||typeof r?.[Symbol.iterator]=="function",ko=`[
3
+ \f\r]`,Gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ya=/-->/g,ba=/>/g,Ge=RegExp(`>|${ko}(?:([^\\s"'>=/]+)(${ko}*=${ko}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xa=/'/g,va=/"/g,Ea=/^(?:script|style|textarea|title)$/i,Ca=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Aa=Ca(1),Ra=Ca(2),ee=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Sa=new WeakMap,Ze=qe.createTreeWalker(qe,129);function Na(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ga!==void 0?ga.createHTML(e):e}var _a=(r,e)=>{let t=r.length-1,n=[],i,a=e===2?"<svg>":"",s=Gt;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,g=0;for(;g<l.length&&(s.lastIndex=g,h=s.exec(l),h!==null);)g=s.lastIndex,s===Gt?h[1]==="!--"?s=ya:h[1]!==void 0?s=ba:h[2]!==void 0?(Ea.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ge):h[3]!==void 0&&(s=Ge):s===Ge?h[0]===">"?(s=i??Gt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Ge:h[3]==='"'?va:xa):s===va||s===xa?s=Ge:s===ya||s===ba?s=Gt:(s=Ge,i=void 0);let y=s===Ge&&r[c+1].startsWith("/>")?" ":"";a+=s===Gt?l+Al:p>=0?(n.push(d),l.slice(0,p)+Mo+l.slice(p)+be+y):l+be+(p===-2?c:y)}return[Na(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},qt=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=_a(e,t);if(this.el=r.createElement(d,n),Ze.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Ze.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(Mo)){let g=h[s++],y=i.getAttribute(p).split(be),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?Lr:b[1]==="?"?kr:b[1]==="@"?Ur:Je}),i.removeAttribute(p)}else p.startsWith(be)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Ea.test(i.tagName)){let p=i.textContent.split(be),g=p.length-1;if(g>0){i.textContent=Pr?Pr.emptyScript:"";for(let y=0;y<g;y++)i.append(p[y],Tr()),Ze.nextNode(),l.push({type:2,index:++a});i.append(p[g],Tr())}}}else if(i.nodeType===8)if(i.data===$o)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(be,p+1))!==-1;)l.push({type:7,index:a}),p+=be.length-1}a++}}static createElement(e,t){let n=qe.createElement("template");return n.innerHTML=e,n}};function Ye(r,e,t=r,n){if(e===ee)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,a=Zt(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=Ye(r,i._$AS(r,e.values),i,n)),e}var Fr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??qe).importNode(t,!0);Ze.currentNode=i;let a=Ze.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Yt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Mr(a,this,e)),this._$AV.push(d),l=n[++c]}s!==l?.index&&(a=Ze.nextNode(),s++)}return Ze.currentNode=qe,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},Yt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ye(this,e,t),Zt(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):wa(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&Zt(this._$AH)?this._$AA.nextSibling.data=e:this.$(qe.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=qt.createElement(Na(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new Fr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Sa.get(e.strings);return t===void 0&&Sa.set(e.strings,t=new qt(e)),t}T(e){Oa(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let a of e)i===t.length?t.push(n=new r(this.k(Tr()),this.k(Tr()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}_$AI(e,t=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Ye(this,e,t,0),s=!Zt(e)||e!==this._$AH&&e!==ee,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ye(this,c[n+l],t,l),d===ee&&(d=this._$AH[l]),s||=!Zt(d)||d!==this._$AH[l],d===z?e=z:e!==z&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Lr=class extends Je{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},kr=class extends Je{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},Ur=class extends Je{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=Ye(this,e,t,0)??z)===ee)return;let n=this._$AH,i=e===z&&n!==z||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==z&&(n===z||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Mr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ye(this,e)}},Ia={j:Mo,P:be,A:$o,C:1,M:_a,L:Fr,R:wa,V:Ye,D:Yt,I:Je,H:kr,N:Ur,U:Lr,B:Mr},Rl=Uo.litHtmlPolyfillSupport;Rl?.(qt,Yt),(Uo.litHtmlVersions??=[]).push("3.1.0");var $r=globalThis,Jt=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Do=Symbol(),Pa=new WeakMap,mt=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Do)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Jt&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Pa.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Pa.set(t,e))}return e}toString(){return this.cssText}},Xe=r=>new mt(typeof r=="string"?r:r+"",void 0,Do),T=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new mt(t,r,Do)},Dr=(r,e)=>{if(Jt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=$r.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},Xt=Jt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return Xe(t)})(r):r;var{is:Nl,defineProperty:_l,getOwnPropertyDescriptor:Il,getOwnPropertyNames:Pl,getOwnPropertySymbols:Tl,getPrototypeOf:Fl}=Object,Wr=globalThis,Ta=Wr.trustedTypes,Ll=Ta?Ta.emptyScript:"",kl=Wr.reactiveElementPolyfillSupport,Qt=(r,e)=>r,Br={toAttribute(r,e){switch(e){case Boolean:r=r?Ll:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Bo=(r,e)=>!Nl(r,e),Fa={attribute:!0,type:String,converter:Br,reflect:!1,hasChanged:Bo};Symbol.metadata??=Symbol("metadata"),Wr.litPropertyMetadata??=new WeakMap;var fe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Fa){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&_l(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){let{get:i,set:a}=Il(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fa}static _$Ei(){if(this.hasOwnProperty(Qt("elementProperties")))return;let e=Fl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qt("properties"))){let t=this.properties,n=[...Pl(t),...Tl(t)];for(let i of n)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)t.unshift(Xt(i))}else e!==void 0&&t.push(Xt(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Dr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:Br).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Br;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Bo)(i?a:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},fe[Qt("elementProperties")]=new Map,fe[Qt("finalized")]=new Map,kl?.({ReactiveElement:fe}),(Wr.reactiveElementVersions??=[]).push("2.0.2");var Ho=globalThis,Hr=Ho.trustedTypes,La=Hr?Hr.createPolicy("lit-html",{createHTML:r=>r}):void 0,zo="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,jo="?"+xe,Ul=`<${jo}>`,tt=document,tr=()=>tt.createComment(""),rr=r=>r===null||typeof r!="object"&&typeof r!="function",Ba=Array.isArray,Wa=r=>Ba(r)||typeof r?.[Symbol.iterator]=="function",Wo=`[
5
+ \f\r]`,er=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ka=/-->/g,Ua=/>/g,Qe=RegExp(`>|${Wo}(?:([^\\s"'>=/]+)(${Wo}*=${Wo}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ma=/'/g,$a=/"/g,Ha=/^(?:script|style|textarea|title)$/i,za=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),q=za(1),Ml=za(2),_e=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Da=new WeakMap,et=tt.createTreeWalker(tt,129);function ja(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return La!==void 0?La.createHTML(e):e}var Va=(r,e)=>{let t=r.length-1,n=[],i,a=e===2?"<svg>":"",s=er;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,g=0;for(;g<l.length&&(s.lastIndex=g,h=s.exec(l),h!==null);)g=s.lastIndex,s===er?h[1]==="!--"?s=ka:h[1]!==void 0?s=Ua:h[2]!==void 0?(Ha.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Qe):h[3]!==void 0&&(s=Qe):s===Qe?h[0]===">"?(s=i??er,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Qe:h[3]==='"'?$a:Ma):s===$a||s===Ma?s=Qe:s===ka||s===Ua?s=er:(s=Qe,i=void 0);let y=s===Qe&&r[c+1].startsWith("/>")?" ":"";a+=s===er?l+Ul:p>=0?(n.push(d),l.slice(0,p)+zo+l.slice(p)+xe+y):l+xe+(p===-2?c:y)}return[ja(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},or=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=Va(e,t);if(this.el=r.createElement(d,n),et.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=et.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(zo)){let g=h[s++],y=i.getAttribute(p).split(xe),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?jr:b[1]==="?"?Vr:b[1]==="@"?Kr:ot}),i.removeAttribute(p)}else p.startsWith(xe)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Ha.test(i.tagName)){let p=i.textContent.split(xe),g=p.length-1;if(g>0){i.textContent=Hr?Hr.emptyScript:"";for(let y=0;y<g;y++)i.append(p[y],tr()),et.nextNode(),l.push({type:2,index:++a});i.append(p[g],tr())}}}else if(i.nodeType===8)if(i.data===jo)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(xe,p+1))!==-1;)l.push({type:7,index:a}),p+=xe.length-1}a++}}static createElement(e,t){let n=tt.createElement("template");return n.innerHTML=e,n}};function rt(r,e,t=r,n){if(e===_e)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,a=rr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=rt(r,i._$AS(r,e.values),i,n)),e}var zr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??tt).importNode(t,!0);et.currentNode=i;let a=et.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new gt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Gr(a,this,e)),this._$AV.push(d),l=n[++c]}s!==l?.index&&(a=et.nextNode(),s++)}return et.currentNode=tt,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},gt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=rt(this,e,t),rr(e)?e===j||e==null||e===""?(this._$AH!==j&&this._$AR(),this._$AH=j):e!==this._$AH&&e!==_e&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Wa(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==j&&rr(this._$AH)?this._$AA.nextSibling.data=e:this.$(tt.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=or.createElement(ja(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new zr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Da.get(e.strings);return t===void 0&&Da.set(e.strings,t=new or(e)),t}T(e){Ba(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let a of e)i===t.length?t.push(n=new r(this.k(tr()),this.k(tr()),this,this.options)):n=t[i],n._$AI(a),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ot=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,a){this.type=1,this._$AH=j,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(e,t=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=rt(this,e,t,0),s=!rr(e)||e!==this._$AH&&e!==_e,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=rt(this,c[n+l],t,l),d===_e&&(d=this._$AH[l]),s||=!rr(d)||d!==this._$AH[l],d===j?e=j:e!==j&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},jr=class extends ot{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===j?void 0:e}},Vr=class extends ot{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==j)}},Kr=class extends ot{constructor(e,t,n,i,a){super(e,t,n,i,a),this.type=5}_$AI(e,t=this){if((e=rt(this,e,t,0)??j)===_e)return;let n=this._$AH,i=e===j&&n!==j||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==j&&(n===j||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Gr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){rt(this,e)}},$l={j:zo,P:xe,A:jo,C:1,M:Va,L:zr,R:Wa,V:rt,D:gt,I:ot,H:Vr,N:Kr,U:jr,B:Gr},Dl=Ho.litHtmlPolyfillSupport;Dl?.(or,gt),(Ho.litHtmlVersions??=[]).push("3.1.0");var Vo=(r,e,t)=>{let n=t?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=t?.renderBefore??null;n._$litPart$=i=new gt(e.insertBefore(tr(),a),a,void 0,t??{})}return i._$AI(r),i};var ve=class extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vo(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _e}};ve._$litElement$=!0,ve.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ve});var Bl=globalThis.litElementPolyfillSupport;Bl?.({LitElement:ve});var Wl={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var kf=!1;var Go={};$(Go,{customElement:()=>Hl,eventOptions:()=>jl,property:()=>I,query:()=>Vl,queryAll:()=>Gl,queryAssignedElements:()=>ql,queryAssignedNodes:()=>Yl,queryAsync:()=>Zl,standardProperty:()=>Ka,state:()=>nt});var Hl=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var zl={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Ir},Ka=(r=zl,e,t)=>{let{kind:n,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),n==="accessor"){let{name:s}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,r)},init(c){return c!==void 0&&this.C(s,void 0,r),c}}}if(n==="setter"){let{name:s}=t;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,r)}}throw Error("Unsupported decorator location: "+n)};function I(r){return(e,t)=>typeof t=="object"?Ka(r,e,t):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function nt(r){return I({...r,state:!0,attribute:!1})}function jl(r){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,r)}}var ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Vl(r,e){return(t,n,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:c}=typeof n=="object"?t:i??(()=>{let l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return ae(t,n,{get(){let l=s.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return ae(t,n,{get(){return a(this)}})}}var Kl;function Gl(r){return(e,t)=>ae(e,t,{get(){return(this.renderRoot??(Kl??=document.createDocumentFragment())).querySelectorAll(r)}})}function Zl(r){return(e,t)=>ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function ql(r){return(e,t)=>{let{slot:n,selector:i}=r??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ae(e,t,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(r)??[];return i===void 0?c:c.filter(l=>l.matches(i))}})}}function Yl(r){return(e,t)=>{let{slot:n}=r??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ae(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var qo={};$(qo,{repeat:()=>Zo});var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pe=r=>(...e)=>({_$litDirective$:r,values:e}),pe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Jl}=Ia;var Ga=()=>document.createComment(""),yt=(r,e,t)=>{let n=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=n.insertBefore(Ga(),i),s=n.insertBefore(Ga(),i);t=new Jl(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,c=s!==r;if(c){let l;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(l=r._$AU)!==s._$AU&&t._$AP(l)}if(a!==i||c){let l=t._$AA;for(;l!==a;){let d=l.nextSibling;n.insertBefore(l,i),l=d}}}return t},Te=(r,e,t=r)=>(r._$AI(e,t),r),Xl={},Za=(r,e=Xl)=>r._$AH=e,qa=r=>r._$AH,Zr=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let n=e.nextSibling;e.remove(),e=n}};var Ya=(r,e,t)=>{let n=new Map;for(let i=e;i<=t;i++)n.set(r[i],i);return n},Zo=Pe(class extends pe{constructor(r){if(super(r),r.type!==Ie.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let c of r)i[s]=n?n(c,s):s,a[s]=t(c,s),s++;return{values:a,keys:i}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,n]){let i=qa(r),{values:a,keys:s}=this.ht(e,t,n);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],l=[],d,h,p=0,g=i.length-1,y=0,b=a.length-1;for(;p<=g&&y<=b;)if(i[p]===null)p++;else if(i[g]===null)g--;else if(c[p]===s[y])l[y]=Te(i[p],a[y]),p++,y++;else if(c[g]===s[b])l[b]=Te(i[g],a[b]),g--,b--;else if(c[p]===s[b])l[b]=Te(i[p],a[b]),yt(r,l[b+1],i[p]),p++,b--;else if(c[g]===s[y])l[y]=Te(i[g],a[y]),yt(r,i[p],i[g]),g--,y++;else if(d===void 0&&(d=Ya(s,y,b),h=Ya(c,p,g)),d.has(c[p]))if(d.has(c[g])){let O=h.get(s[y]),A=O!==void 0?i[O]:null;if(A===null){let E=yt(r,i[p]);Te(E,a[y]),l[y]=E}else l[y]=Te(A,a[y]),yt(r,i[p],A),i[O]=null;y++}else Zr(i[g]),g--;else Zr(i[p]),p++;for(;y<=b;){let O=yt(r,l[b+1]);Te(O,a[y]),l[y++]=O}for(;p<=g;){let O=i[p++];O!==null&&Zr(O)}return this.dt=s,Za(r,l),ee}});var Yo={};$(Yo,{classMap:()=>Ql});var Ql=Pe(class extends pe{constructor(r){if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.st?.has(n)&&this.it.add(n);return this.render(e)}let t=r.element.classList;for(let n of this.it)n in e||(t.remove(n),this.it.delete(n));for(let n in e){let i=!!e[n];i===this.it.has(n)||this.st?.has(n)||(i?(t.add(n),this.it.add(n)):(t.remove(n),this.it.delete(n)))}return ee}});var Jo={};$(Jo,{styleMap:()=>tu});var Ja="important",eu=" !"+Ja,tu=Pe(class extends pe{constructor(r){if(super(r),r.type!==Ie.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let n=r[t];return n==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let n of this.ut)e[n]==null&&(this.ut.delete(n),n.includes("-")?t.removeProperty(n):t[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ut.add(n);let a=typeof i=="string"&&i.endsWith(eu);n.includes("-")||a?t.setProperty(n,a?i.slice(0,-11):i,a?Ja:""):t[n]=i}}return ee}});var Xo={};$(Xo,{UnsafeHTMLDirective:()=>bt,unsafeHTML:()=>nr});var bt=class extends pe{constructor(e){if(super(e),this.et=z,e.type!==Ie.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||e==null)return this.vt=void 0,this.et=e;if(e===ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};bt.directiveName="unsafeHTML",bt.resultType=1;var nr=Pe(bt);var en={};$(en,{CacheRegistry:()=>he});var Qo={};$(Qo,{CancelablePromise:()=>vt,CanceledPromiseError:()=>xt,cancelable:()=>qr});var xt=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},vt=class extends Promise{constructor(e){super((t,n)=>e(i=>{this.isCanceled?n(new xt("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?n(new xt("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qr=r=>new vt((e,t)=>r.then(e).catch(t));var he=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof vt&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,n){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=qr(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var rn={};$(rn,{ClusteringHelper:()=>tn});var tn=class r{constructor(e,t,n,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(e,t){var n,i;let a=((i=(n=e?.map)!==null&&n!==void 0?n:e?.document)!==null&&i!==void 0?i:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(n=>r.flattenMetadata(n)).filter(n=>n!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let n=[],i=[];return e.hierarchicalValues.forEach(a=>{n.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:n.join(", "),displayValue:i.join(", ")}}else{let n=e.values.join(", ");return{key:e.key,label:e.label,value:n,displayValue:n}}}computeClustersItemsForMetadata(e,t,n="No value"){var i,a;let s=r.extractResultMetadata(this.selectedResult,e),c=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,e)).map(d=>d??{key:e,label:c,value:void 0,displayValue:n}).filter(d=>d.value!=s?.value).filter((d,h,p)=>p.findIndex(g=>g.value===d.value)===h).map(d=>({result:this.findBestResultForMetadataValue(e,d.value),metadata:d})).sort((d,h)=>this.compareMetadata(d.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,n,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let l=e.localeCompare(t,i,{numeric:!0});return c?l*-1:l}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let n=this.allResults.filter(l=>{var d;return((d=r.extractResultMetadata(l,e))===null||d===void 0?void 0:d.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(l=>this.clusteringMetadata.has(l.key)).filter(l=>l.key!==e)],s,c=-1;for(let l of n){let d=this.countMatchingMetadata(l,a);if(d>c&&(c=d,s=l,d===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(n=>t.some(i=>i.key===n.key&&i.value===n.value)).length}};var on={};$(on,{Debouncer:()=>Fe});var Fe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sn={};$(sn,{customElement:()=>J,isNumber:()=>ts,jsonProperty:()=>oe,optionalNumberProperty:()=>su});var an={};$(an,{dateReviver:()=>ou,deepEqual:()=>se,delay:()=>Yr,eventPathContainsMatchingElement:()=>iu,flatDeep:()=>Qa,hasChanged:()=>ir,last:()=>au,minmax:()=>nn,parseDate:()=>es,waitFor:()=>Xa,waitUntil:()=>ru});var Yr=r=>new Promise(e=>setTimeout(e,r));async function ru(r,e=10,t=2e4){await Xa(async()=>await r()||void 0,e,t)}async function Xa(r,e=10,t=2e4){let n=await r(),i,a;for(i=a=performance.now();n==null&&(!t||a-i<t);)await Yr(e),n=await r(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Qa(r,e){return r.flatMap(t=>[t,...Qa(e(t),e)])}function ou(...r){return function(e,t){return r.includes(e)?es(t):t}}function es(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,n,i)=>t+n+":"+i),new Date(r)}function nu(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,n,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!se(r[n],e[n]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;for(n of r.entries())if(!se(n[1],e.get(n[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){var a=i[n];if(!se(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function se(r,e){try{return nu(r,e)}catch{return!1}}function ir(r,e){return!se(r,e)}function iu(r,e,t=window.document.body){if(e.length>0){let n=r.composedPath();for(let i of n){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function nn(r,e,t){return Math.min(Math.max(r,e),t)}function au(r){return r[r.length-1]}var J=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function oe(r,e){let t=()=>JSON.parse(JSON.stringify(r));return I({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:ir,...e??{}})}function su(r){return I({type:Object,converter:{fromAttribute:e=>{if(e!=null)return ts(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function ts(r){return!isNaN(parseFloat(r))}var Un={};$(Un,{designSystemVariables:()=>Xr});var kn={};$(kn,{DesignSystemFamily:()=>sr,DesignSystemSize:()=>cr,FtCssVariableFactory:()=>o,badge:()=>hu,banner:()=>pu,breadcrumb:()=>mu,button:()=>lu,chart:()=>Nu,checkbox:()=>Iu,chip:()=>du,chipChoice:()=>uu,collapsible:()=>Au,comboboxMultiSelect:()=>Eu,comboboxSingleSelect:()=>wu,drawer:()=>bu,floatingMenu:()=>Ou,foundation:()=>u,link:()=>fu,modal:()=>yu,notice:()=>_u,notification:()=>Fu,pageHeader:()=>gu,popover:()=>Cu,radio:()=>Tu,resolveFamilyClass:()=>Fn,resolveSizeClass:()=>Ln,semantic:()=>f,setVariable:()=>Jr,switch_:()=>Ru,tabs:()=>xu,textArea:()=>Su,textInput:()=>vu,toggle:()=>Pu,tooltip:()=>Lu,typographies:()=>ar,typographyBody1Medium:()=>pn,typographyBody1Regular:()=>fn,typographyBody1Semibold:()=>hn,typographyBody2Medium:()=>gn,typographyBody2MediumUnderline:()=>rs,typographyBody2Regular:()=>mn,typographyBody2Semibold:()=>yn,typographyCaption1Bold:()=>An,typographyCaption1Medium:()=>En,typographyCaption1Semibold:()=>Cn,typographyCaption2Bold:()=>_n,typographyCaption2Medium:()=>Rn,typographyCaption2Semibold:()=>Nn,typographyCaption3Bold:()=>Tn,typographyCaption3Medium:()=>In,typographyCaption3Semibold:()=>Pn,typographyDisplay:()=>cn,typographyLabel1Bold:()=>vn,typographyLabel1Medium:()=>bn,typographyLabel1Semibold:()=>xn,typographyLabel2Bold:()=>wn,typographyLabel2Medium:()=>Sn,typographyLabel2Semibold:()=>On,typographyTitle1:()=>ln,typographyTitle2:()=>un,typographyTitle3:()=>dn,typographyVariants:()=>cu});var Se=r=>typeof r=="string"?Xe(r):r,o=class{static create(e,t,n,i){let a=c=>Se(c??i),s=T`var(${Se(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>T`var(${Se(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,n,i){let a=c=>n.get(c??i),s=T`var(${Se(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>T`var(${Se(e)}, ${a(c)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,t){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Se(a??e.lastResortDefaultValue()),i=T`var(${Se(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=n,i.get=a=>T`var(${Se(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Jr(r,e){return Se(`${r.name}: ${e}`)}var u={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"),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)")},cn={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")},ln={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")},un={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")},dn={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")},fn={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")},pn={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")},hn={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")},mn={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")},gn={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")},rs={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")},yn={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")},bn={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")},xn={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")},vn={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")},Sn={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")},On={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")},wn={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")},En={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")},Cn={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")},An={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")},Rn={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")},Nn={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")},_n={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")},In={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")},Pn={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")},Tn={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")},ar={display:cn,"title-1":ln,"title-2":un,"title-3":dn,"body-1-regular":fn,"body-1-medium":pn,"body-1-semibold":hn,"body-2-regular":mn,"body-2-medium":gn,"body-2-medium-underline":rs,"body-2-semibold":yn,"label-1-medium":bn,"label-1-semibold":xn,"label-1-bold":vn,"label-2-medium":Sn,"label-2-semibold":On,"label-2-bold":wn,"caption-1-medium":En,"caption-1-semibold":Cn,"caption-1-bold":An,"caption-2-medium":Rn,"caption-2-semibold":Nn,"caption-2-bold":_n,"caption-3-medium":In,"caption-3-semibold":Pn,"caption-3-bold":Tn},cu=["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 f={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",u.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",u.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",u.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",u.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",u.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",u.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",u.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",u.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",u.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",u.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",u.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",u.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",u.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",u.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",u.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",u.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",u.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",u.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",u.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",u.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",u.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",u.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",u.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",u.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",u.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",u.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",u.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",u.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",u.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",u.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",u.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",u.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",u.colorGray80)};var lu={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",u.spacing4),largeGap:o.extend("--ft-button-large-gap","",u.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",u.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",u.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","",u.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",u.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",u.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",u.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","",u.spacing2),smallGap:o.extend("--ft-button-small-gap","",u.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",u.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",u.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","",u.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","",u.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",u.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",u.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",u.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",u.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",u.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",u.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",u.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",u.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",u.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",u.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",u.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",u.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",u.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",u.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",u.opacity40)};var uu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",u.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",u.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",f.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",u.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",f.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",u.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",u.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",u.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",f.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",u.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",f.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",u.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",u.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","",u.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",u.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",u.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","",u.iconSize2)};var du={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",u.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",u.spacing1),largeGap:o.extend("--ft-chip-large-gap","",u.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","",u.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",u.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",u.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",u.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","",u.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",u.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",u.spacing05),smallGap:o.extend("--ft-chip-small-gap","",u.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","",u.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var fu={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",u.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",u.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",f.contentActionPrimary)};var pu={iconSize:o.extend("--ft-banner-icon-size","",u.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",u.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",u.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",u.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",u.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",u.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",u.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",u.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var hu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",u.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",u.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",u.borderRadiusPill),color:o.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var mu={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",u.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",u.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var gu={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",u.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",u.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",u.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",u.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",u.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",u.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",u.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var yu={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",u.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",u.opacity40),shadow:o.extend("--ft-modal-shadow","",u.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",u.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",u.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",u.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",u.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",u.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",u.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",u.spacing6),headerGap:o.extend("--ft-modal-header-gap","",u.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",u.borderRadiusM)};var bu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",u.opacity40),shadow:o.extend("--ft-drawer-shadow","",u.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",u.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",u.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",u.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",u.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",u.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",u.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",u.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",u.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","",u.colorGray700)};var xu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",u.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",u.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",u.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",u.opacity40),offColor:o.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",u.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",u.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",u.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",u.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",u.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",u.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",u.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",u.opacity24),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",u.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",u.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",u.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",u.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var vu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",u.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",u.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",u.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",u.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",u.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",u.opacity40)};var Su={backgroundColor:o.extend("--ft-text-area-background-color","",u.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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","",u.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",u.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",u.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",u.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",u.borderRadiusM)};var Ou={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",u.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",u.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",u.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",u.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",u.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",u.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",u.shadowElevation02)};var wu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",u.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",u.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",u.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",u.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",u.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",u.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",u.opacity40)};var Eu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",u.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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","",u.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",u.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",u.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",u.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",u.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",u.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",u.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",u.borderRadiusM)};var Cu={backgroundColor:o.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",u.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",u.spacing6),titleColor:o.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:o.extend("--ft-popover-gap","",u.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",u.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",u.shadowElevation02)};var Au={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",u.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",u.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",u.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",u.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",u.spacing3),color:o.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",u.iconSize3)};var Ru={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",u.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",u.spacing1),groupGap:o.extend("--ft-switch-group-gap","",u.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",u.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",u.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",u.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",u.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",u.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",u.opacity40),offColor:o.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",u.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",u.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",u.opacity40),onColor:o.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",u.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",u.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",u.borderRadiusS)};var Nu={color1Light:o.extend("--ft-chart-1-light","for area color charts",u.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",u.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",u.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",u.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",u.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",u.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",u.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",u.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",u.colorRed40),color5Base:o.extend("--ft-chart-5-base","",u.colorRed60),color6Light:o.extend("--ft-chart-6-light","",u.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",u.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",u.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",u.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",u.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",u.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",u.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",u.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",u.colorGray50),color10Base:o.extend("--ft-chart-10-base","",u.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",u.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",u.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",u.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",u.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",u.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",u.colorBrand200)};var _u={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",u.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",u.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",u.borderRadiusS),gap:o.extend("--ft-notice-gap","",u.spacing2),iconSize:o.extend("--ft-notice-icon-size","",u.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Iu={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",u.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",u.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",u.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",u.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",u.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",u.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",u.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",u.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",u.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",f.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","",u.spacing3)};var Pu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",u.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",u.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",u.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",u.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",u.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",u.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",u.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",u.spacing3)};var Tu={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",u.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",u.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",u.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",u.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",u.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",u.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",u.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",u.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",f.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","",u.spacing3)};var Fu={iconSize:o.extend("--ft-notification-icon-size","",u.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",u.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",u.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",u.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",u.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",u.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",u.spacing8)};var Lu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",u.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",u.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",u.borderRadiusS),color:o.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",u.opacity80),shadow:o.extend("--ft-tooltip-shadow","",u.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",u.spacing05)};var sr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(sr||(sr={}));var cr;(function(r){r.large="large",r.medium="medium",r.small="small"})(cr||(cr={}));function Fn(r){return`ftds--family-${r}`}function Ln(r){return`ftds--size-${r}`}var Xr={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 Bn={};$(Bn,{FtNotificationEvent:()=>Mn,PostResizeEvent:()=>Dn,PreResizeEvent:()=>$n});var Mn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},$n=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Dn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Jn={};$(Jn,{computeOffsetPosition:()=>Qu});var ns=["top","right","bottom","left"],os=["start","end"],Hn=ns.reduce((r,e)=>r.concat(e,e+"-"+os[0],e+"-"+os[1]),[]),lr=Math.min,Le=Math.max,ur=Math.round;var Oe=r=>({x:r,y:r}),ku={left:"right",right:"left",bottom:"top",top:"bottom"},Uu={start:"end",end:"start"};function zn(r,e,t){return Le(r,lr(e,t))}function Qr(r,e){return typeof r=="function"?r(e):r}function St(r){return r.split("-")[0]}function ke(r){return r.split("-")[1]}function jn(r){return r==="x"?"y":"x"}function Vn(r){return r==="y"?"height":"width"}function eo(r){return["top","bottom"].includes(St(r))?"y":"x"}function Kn(r){return jn(eo(r))}function is(r,e,t){t===void 0&&(t=!1);let n=ke(r),i=Kn(r),a=Vn(i),s=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Wn(s)),[s,Wn(s)]}function as(r){return r.replace(/start|end/g,e=>Uu[e])}function Wn(r){return r.replace(/left|right|bottom|top/g,e=>ku[e])}function Mu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ss(r){return typeof r!="number"?Mu(r):{top:r,right:r,bottom:r,left:r}}function it(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function cs(r,e,t){let{reference:n,floating:i}=r,a=eo(e),s=Kn(e),c=Vn(s),l=St(e),d=a==="y",h=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,g=n[c]/2-i[c]/2,y;switch(l){case"top":y={x:h,y:n.y-i.height};break;case"bottom":y={x:h,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:p};break;case"left":y={x:n.x-i.width,y:p};break;default:y={x:n.x,y:n.y}}switch(ke(e)){case"start":y[s]-=g*(t&&d?-1:1);break;case"end":y[s]+=g*(t&&d?-1:1);break}return y}var ls=async(r,e,t)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:h,y:p}=cs(d,n,l),g=n,y={},b=0;for(let O=0;O<c.length;O++){let{name:A,fn:E}=c[O],{x:C,y:v,data:S,reset:w}=await E({x:h,y:p,initialPlacement:n,placement:g,strategy:i,middlewareData:y,rects:d,platform:s,elements:{reference:r,floating:e}});if(h=C??h,p=v??p,y={...y,[A]:{...y[A],...S}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(d=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:h,y:p}=cs(d,g,l)),O=-1;continue}}return{x:h,y:p,placement:g,strategy:i,middlewareData:y}};async function Gn(r,e){var t;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:l}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=Qr(e,r),b=ss(y),A=c[g?p==="floating"?"reference":"floating":p],E=it(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(A)))==null||t?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:l})),C=p==="floating"?{...s.floating,x:n,y:i}:s.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),S=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},w=it(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:v,strategy:l}):C);return{top:(E.top-w.top+b.top)/S.y,bottom:(w.bottom-E.bottom+b.bottom)/S.y,left:(E.left-w.left+b.left)/S.x,right:(w.right-E.right+b.right)/S.x}}function $u(r,e,t){return(r?[...t.filter(i=>ke(i)===r),...t.filter(i=>ke(i)!==r)]:t.filter(i=>St(i)===i)).filter(i=>r?ke(i)===r||(e?as(i)!==i:!1):!0)}var Zn=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,n,i;let{rects:a,middlewareData:s,placement:c,platform:l,elements:d}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:g=Hn,autoAlignment:y=!0,...b}=Qr(r,e),O=p!==void 0||g===Hn?$u(p||null,y,g):g,A=await Gn(e,b),E=((t=s.autoPlacement)==null?void 0:t.index)||0,C=O[E];if(C==null)return{};let v=is(C,a,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(c!==C)return{reset:{placement:O[0]}};let S=[A[St(C)],A[v[0]],A[v[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:C,overflows:S}],P=O[E+1];if(P)return{data:{index:E+1,overflows:w},reset:{placement:P}};let U=w.map(N=>{let m=ke(N.placement);return[N.placement,m&&h?N.overflows.slice(0,2).reduce((x,R)=>x+R,0):N.overflows[0],N.overflows]}).sort((N,m)=>N[1]-m[1]),M=((i=U.filter(N=>N[2].slice(0,ke(N[0])?2:3).every(m=>m<=0))[0])==null?void 0:i[0])||U[0][0];return M!==c?{data:{index:E+1,overflows:w},reset:{placement:M}}:{}}}};var qn=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:A=>{let{x:E,y:C}=A;return{x:E,y:C}}},...l}=Qr(r,e),d={x:t,y:n},h=await Gn(e,l),p=eo(St(i)),g=jn(p),y=d[g],b=d[p];if(a){let A=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=y+h[A],v=y-h[E];y=zn(C,y,v)}if(s){let A=p==="y"?"top":"left",E=p==="y"?"bottom":"right",C=b+h[A],v=b-h[E];b=zn(C,b,v)}let O=c.fn({...e,[g]:y,[p]:b});return{...O,data:{x:O.x-t,y:O.y-n}}}}};function we(r){return ds(r)?(r.nodeName||"").toLowerCase():"#document"}function Q(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ee(r){var e;return(e=(ds(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ds(r){return r instanceof Node||r instanceof Q(r).Node}function me(r){return r instanceof Element||r instanceof Q(r).Element}function ce(r){return r instanceof HTMLElement||r instanceof Q(r).HTMLElement}function us(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Q(r).ShadowRoot}function Ot(r){let{overflow:e,overflowX:t,overflowY:n,display:i}=te(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function fs(r){return["table","td","th"].includes(we(r))}function ro(r){let e=oo(),t=te(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function ps(r){let e=at(r);for(;ce(e)&&!dr(e);){if(ro(e))return e;e=at(e)}return null}function oo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(r){return["html","body","#document"].includes(we(r))}function te(r){return Q(r).getComputedStyle(r)}function fr(r){return me(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function at(r){if(we(r)==="html")return r;let e=r.assignedSlot||r.parentNode||us(r)&&r.host||Ee(r);return us(e)?e.host:e}function hs(r){let e=at(r);return dr(e)?r.ownerDocument?r.ownerDocument.body:r.body:ce(e)&&Ot(e)?e:hs(e)}function to(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=hs(r),a=i===((n=r.ownerDocument)==null?void 0:n.body),s=Q(i);return a?e.concat(s,s.visualViewport||[],Ot(i)?i:[],s.frameElement&&t?to(s.frameElement):[]):e.concat(i,to(i,[],t))}function ys(r){let e=te(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=ce(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:n,c=ur(t)!==a||ur(n)!==s;return c&&(t=a,n=s),{width:t,height:n,$:c}}function bs(r){return me(r)?r:r.contextElement}function wt(r){let e=bs(r);if(!ce(e))return Oe(1);let t=e.getBoundingClientRect(),{width:n,height:i,$:a}=ys(e),s=(a?ur(t.width):t.width)/n,c=(a?ur(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Du=Oe(0);function xs(r){let e=Q(r);return!oo()||!e.visualViewport?Du:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bu(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Q(r)?!1:e}function pr(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=bs(r),s=Oe(1);e&&(n?me(n)&&(s=wt(n)):s=wt(r));let c=Bu(a,t,n)?xs(a):Oe(0),l=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(a){let g=Q(a),y=n&&me(n)?Q(n):n,b=g.frameElement;for(;b&&n&&y!==g;){let O=wt(b),A=b.getBoundingClientRect(),E=te(b),C=A.left+(b.clientLeft+parseFloat(E.paddingLeft))*O.x,v=A.top+(b.clientTop+parseFloat(E.paddingTop))*O.y;l*=O.x,d*=O.y,h*=O.x,p*=O.y,l+=C,d+=v,b=Q(b).frameElement}}return it({width:h,height:p,x:l,y:d})}function Wu(r){let{rect:e,offsetParent:t,strategy:n}=r,i=ce(t),a=Ee(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},c=Oe(1),l=Oe(0);if((i||!i&&n!=="fixed")&&((we(t)!=="body"||Ot(a))&&(s=fr(t)),ce(t))){let d=pr(t);c=wt(t),l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function Hu(r){return Array.from(r.getClientRects())}function vs(r){return pr(Ee(r)).left+fr(r).scrollLeft}function zu(r){let e=Ee(r),t=fr(r),n=r.ownerDocument.body,i=Le(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Le(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+vs(r),c=-t.scrollTop;return te(n).direction==="rtl"&&(s+=Le(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function ju(r,e){let t=Q(r),n=Ee(r),i=t.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let d=oo();(!d||d&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}function Vu(r,e){let t=pr(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,a=ce(r)?wt(r):Oe(1),s=r.clientWidth*a.x,c=r.clientHeight*a.y,l=i*a.x,d=n*a.y;return{width:s,height:c,x:l,y:d}}function ms(r,e,t){let n;if(e==="viewport")n=ju(r,t);else if(e==="document")n=zu(Ee(r));else if(me(e))n=Vu(e,t);else{let i=xs(r);n={...e,x:e.x-i.x,y:e.y-i.y}}return it(n)}function Ss(r,e){let t=at(r);return t===e||!me(t)||dr(t)?!1:te(t).position==="fixed"||Ss(t,e)}function Ku(r,e){let t=e.get(r);if(t)return t;let n=to(r,[],!1).filter(c=>me(c)&&we(c)!=="body"),i=null,a=te(r).position==="fixed",s=a?at(r):r;for(;me(s)&&!dr(s);){let c=te(s),l=ro(s);!l&&c.position==="fixed"&&(i=null),(a?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ot(s)&&!l&&Ss(r,s))?n=n.filter(h=>h!==s):i=c,s=at(s)}return e.set(r,n),n}function Gu(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r,s=[...t==="clippingAncestors"?Ku(e,this._c):[].concat(t),n],c=s[0],l=s.reduce((d,h)=>{let p=ms(e,h,i);return d.top=Le(p.top,d.top),d.right=lr(p.right,d.right),d.bottom=lr(p.bottom,d.bottom),d.left=Le(p.left,d.left),d},ms(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zu(r){return ys(r)}function qu(r,e,t){let n=ce(e),i=Ee(e),a=t==="fixed",s=pr(r,!0,a,e),c={scrollLeft:0,scrollTop:0},l=Oe(0);if(n||!n&&!a)if((we(e)!=="body"||Ot(i))&&(c=fr(e)),n){let d=pr(e,!0,a,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=vs(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function gs(r,e){return!ce(r)||te(r).position==="fixed"?null:e?e(r):r.offsetParent}function Os(r,e){let t=Q(r);if(!ce(r))return t;let n=gs(r,e);for(;n&&fs(n)&&te(n).position==="static";)n=gs(n,e);return n&&(we(n)==="html"||we(n)==="body"&&te(n).position==="static"&&!ro(n))?t:n||ps(r)||t}var Yu=async function(r){let{reference:e,floating:t,strategy:n}=r,i=this.getOffsetParent||Os,a=this.getDimensions;return{reference:qu(e,await i(t),n),floating:{x:0,y:0,...await a(t)}}};function Ju(r){return te(r).direction==="rtl"}var no={convertOffsetParentRelativeRectToViewportRelativeRect:Wu,getDocumentElement:Ee,getClippingRect:Gu,getOffsetParent:Os,getElementRects:Yu,getClientRects:Hu,getDimensions:Zu,getScale:wt,isElement:me,isRTL:Ju};var ws=(r,e,t)=>{let n=new Map,i={platform:no,...t},a={...i.platform,_c:n};return ls(r,e,{...i,platform:a})};function Es(r){return Xu(r)}function Yn(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Xu(r){for(let e=r;e;e=Yn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Yn(r);e;e=Yn(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Qu(r,e,t){return ws(r,e,{platform:{...no,getOffsetParent:n=>no.getOffsetParent(n,Es)},middleware:[qn({crossAxis:!0}),Zn({allowedPlacements:[t]})]})}var ti={};$(ti,{FtdsBase:()=>ei,toFtdsBase:()=>Ts});var Qn={};$(Qn,{FtLitElement:()=>K});var Xn={};$(Xn,{ScopedRegistryLitElement:()=>hr});var io=window,ed=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kg=Symbol();var Cs=(r,e)=>{ed?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),i=io.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)})};var hr=class extends ve{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return Cs(n,e.elementStyles),n}};var ao=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},_s,As=Symbol("constructorPrototype"),Rs=Symbol("constructorName"),Is=Symbol("exportpartsDebouncer"),Ns=Symbol("dynamicDependenciesLoaded"),K=class extends hr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_s]=new Fe(5),this[Rs]=this.constructor.name,this[As]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rs]&&Object.setPrototypeOf(this,this[As])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[Ns]||(e[Ns]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,n,i;if(((n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&n!==void 0&&n)&&this[Is].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,n,i,a,s,c;let l=g=>g!=null&&g.trim().length>0,d=e.filter(l).map(g=>g.trim());if(d.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...y,...b).filter(l).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let p=[...h.values()].flatMap(g=>d.map(y=>`${g}:${y}--${g}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};_s=Is;ao([I()],K.prototype,"exportpartsPrefix",void 0);ao([oe([])],K.prototype,"exportpartsPrefixes",void 0);ao([I()],K.prototype,"customStylesheet",void 0);ao([nt()],K.prototype,"useAdoptedStyleSheets",void 0);var Ps=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function Ts(r){class e extends r{constructor(){super(...arguments),this.size=cr.medium,this.family=sr.neutral}getDesignSystemBaseClasses(){return{[Fn(this.family)]:!0,[Ln(this.size)]:!0}}}return Ps([I()],e.prototype,"size",void 0),Ps([I()],e.prototype,"family",void 0),e}var ei=class extends Ts(K){};var Fs={};var ni={};$(ni,{highlightHtml:()=>oi,highlightHtmlColorCssVariable:()=>Ls,highlightHtmlStyles:()=>rd});var st=class r{constructor(e,t=!0,n=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=i}static matches(e,t){let n=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let i=t.filter(a=>a.contains(n)).length>0;t.indexOf(n)===-1&&!i&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&t(i)}isIframeBlank(e){let t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||t()})},i=>{i||t()})}forEachIframe(e,t,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let l=()=>{--s<=0&&i(c)};s||l(),a.forEach(d=>{r.matches(d,this.exclude)?l():this.onIframeReady(d,h=>{t(d)&&(c++,n(h)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(n),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,i){let a=!1,s=!1;return i.forEach((c,l)=>{c.val===n&&(a=l,s=c.handled)}),this.compareNodeIframe(e,t,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,i)})})}iterateThroughNodes(e,t,n,i,a){let s=this.createIterator(t,e,i),c=[],l=[],d,h,p=()=>({prevNode:h,node:d}=this.getIteratorNode(s),d);for(;p();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(d,h,g,c),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>l.push(y),i)}),l.push(d);l.forEach(g=>{n(g)}),this.iframes&&this.handleOpenIframes(c,e,n,i),a()}forEachNode(e,t,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let l=()=>{this.iterateThroughNodes(e,c,t,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,l):l()})}};var mr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new st(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(l)})`,`gm${n}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(l)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,i)=>i.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,n);c&&(i.start=a,i.length=s-a,t.push(i),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:i,valid:a}}checkWhitespaceRanges(e,t,n){let i,a=!0,s=n.length,c=t-s,l=parseInt(e.start,10)-c;return l=l>s?s:l,i=l+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||i-l<0||l>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:i,valid:a}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return st.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(n-t),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,t,n,i,a){e.nodes.every((s,c)=>{let l=e.nodes[c+1];if(typeof l>"u"||l.start>t){if(!i(s.node))return!1;let d=t-s.start,h=(n>s.end?s.end:n)-s.start,p=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,h),e.value=p+g,e.nodes.forEach((y,b)=>{b>=c&&(e.nodes[b].start>0&&b!==c&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{c.nodes.forEach(l=>{l=l.node;let d;for(;(d=e.exec(l.textContent))!==null&&d[s]!=="";){if(!n(d[s],l))continue;let h=d.index;if(s!==0)for(let p=1;p<s;p++)h+=d[p].length;l=this.wrapRangeInTextNode(l,h,h+d[s].length),i(l.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,n,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{let l;for(;(l=e.exec(c.value))!==null&&l[s]!=="";){let d=l.index;if(s!==0)for(let p=1;p<s;p++)d+=l[p].length;let h=d+l[s].length;this.wrapRangeInMappedTextNode(c,d,h,p=>n(l[s],p),(p,g)=>{e.lastIndex=g,i(p)})}a()})}wrapRangeFromIndex(e,t,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,l)=>{let{start:d,end:h,valid:p}=this.checkWhitespaceRanges(c,s,a.value);p&&this.wrapRangeInMappedTextNode(a,d,h,g=>t(g,c,a.value.substring(d,h),l),g=>{n(g,c)})}),i()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",l=d=>{let h=new RegExp(this.createRegExp(d),`gm${c}`),p=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(g,y)=>this.opt.filter(y,d,n,p),g=>{p++,n++,this.opt.each(g)},()=>{p===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(n):l(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(a[0])}markRanges(e,t){this.opt=t;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,l)=>this.opt.filter(a,s,c,l),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=st.matches(n,t),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ri(r){let e=new mr(r);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}var td=ri,Ls=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),rd=T`
8
8
  .highlight-html-match {
9
- background: ${Ps};
9
+ background: ${Ls};
10
10
  }
11
- `;function ei(r,e,t){var n,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Yu(r);if(s.unmark(),e&&e.trim()){let c={className:(n=t?.className)!==null&&n!==void 0?n:"highlight-html-match"};t?.attributes!=null&&(c.each=d=>{for(let h in t.attributes)d.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...c,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(d=>s.mark(d.replace(/"/g,""),{...c,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var ri={};U(ri,{noTextInputDefaultClearButton:()=>td,noTextSelect:()=>Xu,safariEllipsisFix:()=>ed,wordWrap:()=>Qu});var Xu=T`
11
+ `;function oi(r,e,t){var n,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new td(r);if(s.unmark(),e&&e.trim()){let c={className:(n=t?.className)!==null&&n!==void 0?n:"highlight-html-match"};t?.attributes!=null&&(c.each=d=>{for(let h in t.attributes)d.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...c,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(d=>s.mark(d.replace(/"/g,""),{...c,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var ii={};$(ii,{noTextInputDefaultClearButton:()=>ad,noTextSelect:()=>od,safariEllipsisFix:()=>id,wordWrap:()=>nd});var od=T`
12
12
  .ft-no-text-select {
13
13
  -webkit-touch-callout: none;
14
14
  -webkit-user-select: none;
@@ -17,7 +17,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
17
17
  -ms-user-select: none;
18
18
  user-select: none;
19
19
  }
20
- `,Qu=T`
20
+ `,nd=T`
21
21
  .ft-word-wrap {
22
22
  white-space: normal;
23
23
  word-wrap: break-word;
@@ -29,7 +29,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
29
29
  -webkit-hyphens: auto;
30
30
  hyphens: auto
31
31
  }
32
- `,ed=T`
32
+ `,id=T`
33
33
  .ft-safari-ellipsis-fix {
34
34
  margin-right: 0;
35
35
 
@@ -40,32 +40,32 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
40
40
  display: inline-block;
41
41
  width: 0;
42
42
  }
43
- `,td=T`
43
+ `,ad=T`
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 Ts={};var oi={};U(oi,{ParametrizedLabelResolver:()=>mr});var mr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,i;e=this.resolvePluralKey(e,t);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(n,s))),e}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let n=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ii={};U(Ii,{FtCommandQueue:()=>yr,FtLitElementRedux:()=>me,FtReduxStore:()=>He,clearAllStores:()=>Bd,isFtReduxStore:()=>st,redux:()=>ke,reduxEventListener:()=>od,reduxReactive:()=>rd});var rd=()=>(r,e)=>{var t;let n=r.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},ke=r=>{let e=r??{};return(t,n)=>{var i;let a={hasChanged:nr,attribute:!1,...e};_(a)(t,n);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},od=r=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,r)};var yr=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}};function st(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Fs,Ls,ks,io=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),ct=Symbol("internalStores"),me=class extends V{constructor(){super(...arguments),this[Fs]=new Map,this[Ls]=new Map,this[ks]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ct].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[ct].get(e)}addStore(e,t){var n;t=(n=t??(st(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[ct].delete(t)}setupStore(e,t){this[ct].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ct].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Me].has(e.store):this[Me].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var n;this[Me].set(e,t.subscribe(()=>this.updateFromStores())),st(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||t.name===i.store)){let s=c=>this[a](c);t.eventBus.addEventListener(i.eventName,s),this[io].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Me].forEach((e,t)=>this.unsubscribeFromStore(t)),this[io].forEach(e=>e()),this[io]=[]}unsubscribeFromStore(e){this[Me].has(e)&&this[Me].get(e)(),this[Me].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Fs=Me,Ls=ct,ks=io;me.reduxProperties=new Map;me.reduxReactiveProperties=new Set;me.reduxEventListeners=new Map;function oe(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ce(r){return!!r&&!!r[W]}function ce(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===dd}(r)||Array.isArray(r)||!!r[Hs]||!!(!((e=r.constructor)===null||e===void 0)&&e[Hs])||fi(r)||pi(r))}function lt(r,e,t){t===void 0&&(t=!1),Et(r)===0?(t?Object.keys:Ct)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,i){return e(i,n,r)})}function Et(r){var e=r[W];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:fi(r)?2:pi(r)?3:0}function wt(r,e){return Et(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function nd(r,e){return Et(r)===2?r.get(e):r[e]}function zs(r,e,t){var n=Et(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function js(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function fi(r){return ld&&r instanceof Map}function pi(r){return ud&&r instanceof Set}function $e(r){return r.o||r.t}function hi(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Gs(r);delete e[W];for(var t=Ct(e),n=0;n<t.length;n++){var i=t[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function mi(r,e){return e===void 0&&(e=!1),yi(r)||Ce(r)||!ce(r)||(Et(r)>1&&(r.set=r.add=r.clear=r.delete=id),Object.freeze(r),e&&lt(r,function(t,n){return mi(n,!0)},!0)),r}function id(){oe(2)}function yi(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ye(r){var e=di[r];return e||oe(18,r),e}function ad(r,e){di[r]||(di[r]=e)}function ci(){return br}function ni(r,e){e&&(ye("Patches"),r.u=[],r.s=[],r.v=e)}function ao(r){li(r),r.p.forEach(sd),r.p=null}function li(r){r===br&&(br=r.l)}function Ms(r){return br={p:[],l:br,h:r,m:!0,_:0}}function sd(r){var e=r[W];e.i===0||e.i===1?e.j():e.g=!0}function ii(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||ye("ES5").S(e,r,n),n?(t[W].P&&(ao(e),oe(4)),ce(r)&&(r=so(e,r),e.l||co(e,r)),e.u&&ye("Patches").M(t[W].t,r,e.u,e.s)):r=so(e,t,[]),ao(e),e.u&&e.v(e.u,e.s),r!==Ks?r:void 0}function so(r,e,t){if(yi(e))return e;var n=e[W];if(!n)return lt(e,function(c,l){return $s(r,n,e,c,l,t)},!0),e;if(n.A!==r)return e;if(!n.P)return co(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=hi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),lt(a,function(c,l){return $s(r,n,i,c,l,t,s)}),co(r,i,!1),t&&r.u&&ye("Patches").N(n,t,r.u,r.s)}return n.o}function $s(r,e,t,n,i,a,s){if(Ce(i)){var c=so(r,i,a&&e&&e.i!==3&&!wt(e.R,n)?a.concat(n):void 0);if(zs(t,n,c),!Ce(c))return;r.m=!1}else s&&t.add(i);if(ce(i)&&!yi(i)){if(!r.h.D&&r._<1)return;so(r,i),e&&e.A.l||co(r,i)}}function co(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&mi(e,t)}function ai(r,e){var t=r[W];return(t?$e(t):r)[e]}function Us(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function Ue(r){r.P||(r.P=!0,r.l&&Ue(r.l))}function si(r){r.o||(r.o=hi(r.t))}function ui(r,e,t){var n=fi(e)?ye("MapSet").F(e,t):pi(e)?ye("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:ci(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,d=xr;s&&(l=[c],d=gr);var h=Proxy.revocable(l,d),p=h.revoke,y=h.proxy;return c.k=y,c.j=p,y}(e,t):ye("ES5").J(e,t);return(t?t.A:ci()).p.push(n),n}function cd(r){return Ce(r)||oe(22,r),function e(t){if(!ce(t))return t;var n,i=t[W],a=Et(t);if(i){if(!i.P&&(i.i<4||!ye("ES5").K(i)))return i.t;i.I=!0,n=Ds(t,a),i.I=!1}else n=Ds(t,a);return lt(n,function(s,c){i&&nd(i.t,s)===c||zs(n,s,e(c))}),a===3?new Set(n):n}(r)}function Ds(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return hi(r)}function Vs(){function r(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var d=this[W];return xr.get(d,s)},set:function(d){var h=this[W];xr.set(h,s,d)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][W];if(!l.P)switch(l.i){case 5:n(l)&&Ue(l);break;case 4:t(l)&&Ue(l)}}}function t(s){for(var c=s.t,l=s.k,d=Ct(l),h=d.length-1;h>=0;h--){var p=d[h];if(p!==W){var y=c[p];if(y===void 0&&!wt(c,p))return!0;var g=l[p],b=g&&g[W];if(b?b.t!==y:!js(g,y))return!0}}var w=!!c[W];return d.length!==Ct(c).length+(w?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var d=0;d<c.length;d++)if(!c.hasOwnProperty(d))return!0;return!1}function i(s){s.g&&oe(3,JSON.stringify($e(s)))}var a={};ad("ES5",{J:function(s,c){var l=Array.isArray(s),d=function(p,y){if(p){for(var g=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(g,""+b,r(b,!0));return g}var w=Gs(y);delete w[W];for(var C=Ct(w),E=0;E<C.length;E++){var A=C[E];w[A]=r(A,p||!!w[A].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(l,s),h={i:l?5:4,A:c?c.A:ci(),P:!1,I:!1,R:{},l:c,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,W,{value:h,writable:!0}),d},S:function(s,c,l){l?Ce(c)&&c[W].A===s&&e(s.p):(s.u&&function d(h){if(h&&typeof h=="object"){var p=h[W];if(p){var y=p.t,g=p.k,b=p.R,w=p.i;if(w===4)lt(g,function(S){S!==W&&(y[S]!==void 0||wt(y,S)?b[S]||d(g[S]):(b[S]=!0,Ue(p)))}),lt(y,function(S){g[S]!==void 0||wt(g,S)||(b[S]=!1,Ue(p))});else if(w===5){if(n(p)&&(Ue(p),b.length=!0),g.length<y.length)for(var C=g.length;C<y.length;C++)b[C]=!1;else for(var E=y.length;E<g.length;E++)b[E]=!0;for(var A=Math.min(g.length,y.length),v=0;v<A;v++)g.hasOwnProperty(v)||(b[v]=!0),b[v]===void 0&&d(g[v])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var Bs,br,gi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ld=typeof Map<"u",ud=typeof Set<"u",Ws=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ks=gi?Symbol.for("immer-nothing"):((Bs={})["immer-nothing"]=!0,Bs),Hs=gi?Symbol.for("immer-draftable"):"__$immer_draftable",W=gi?Symbol.for("immer-state"):"__$immer_state";var dd=""+Object.prototype.constructor,Ct=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Gs=Object.getOwnPropertyDescriptors||function(r){var e={};return Ct(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},di={},xr={get:function(r,e){if(e===W)return r;var t=$e(r);if(!wt(t,e))return function(i,a,s){var c,l=Us(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(r,t,e);var n=t[e];return r.I||!ce(n)?n:n===ai(r.t,e)?(si(r),r.o[e]=ui(r.A.h,n,r)):n},has:function(r,e){return e in $e(r)},ownKeys:function(r){return Reflect.ownKeys($e(r))},set:function(r,e,t){var n=Us($e(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var i=ai($e(r),e),a=i?.[W];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(js(t,i)&&(t!==void 0||wt(r.t,e)))return!0;si(r),Ue(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return ai(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,si(r),Ue(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=$e(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){oe(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){oe(12)}},gr={};lt(xr,function(r,e){gr[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),gr.deleteProperty=function(r,e){return gr.set.call(this,r,e,void 0)},gr.set=function(r,e,t){return xr.set.call(this,r[0],e,t,r[0])};var fd=function(){function r(t){var n=this;this.O=Ws,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=n;return function(w){var C=this;w===void 0&&(w=c);for(var E=arguments.length,A=Array(E>1?E-1:0),v=1;v<E;v++)A[v-1]=arguments[v];return l.produce(w,function(S){var O;return(O=a).call.apply(O,[C,S].concat(A))})}}var d;if(typeof a!="function"&&oe(6),s!==void 0&&typeof s!="function"&&oe(7),ce(i)){var h=Ms(n),p=ui(n,i,void 0),y=!0;try{d=a(p),y=!1}finally{y?ao(h):li(h)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return ni(h,s),ii(w,h)},function(w){throw ao(h),w}):(ni(h,s),ii(d,h))}if(!i||typeof i!="object"){if((d=a(i))===void 0&&(d=i),d===Ks&&(d=void 0),n.D&&mi(d,!0),s){var g=[],b=[];ye("Patches").M(i,d,g,b),s(g,b)}return d}oe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(d){for(var h=arguments.length,p=Array(h>1?h-1:0),y=1;y<h;y++)p[y-1]=arguments[y];return n.produceWithPatches(d,function(g){return i.apply(void 0,[g].concat(p))})};var s,c,l=n.produce(i,a,function(d,h){s=d,c=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return[d,s,c]}):[l,s,c]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){ce(t)||oe(8),Ce(t)&&(t=cd(t));var n=Ms(this),i=ui(this,t,void 0);return i[W].C=!0,li(n),i},e.finishDraft=function(t,n){var i=t&&t[W],a=i.A;return ni(a,n),ii(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ws&&oe(20),this.O=t},e.applyPatches=function(t,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ye("Patches").$;return Ce(t)?s(t,n):this.produce(t,function(c){return s(c,n)})},r}(),te=new fd,pd=te.produce,pg=te.produceWithPatches.bind(te),hg=te.setAutoFreeze.bind(te),mg=te.setUseProxies.bind(te),yg=te.applyPatches.bind(te),gg=te.createDraft.bind(te),bg=te.finishDraft.bind(te),lo=pd;function De(r){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(r)}function bi(r,e){if(De(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(De(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xi(r){var e=bi(r,"string");return De(e)==="symbol"?e:String(e)}function vi(r,e,t){return e=xi(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Zs(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function uo(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(t),!0).forEach(function(n){vi(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Zs(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function q(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 qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Si=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+Si(),REPLACE:"@@redux/REPLACE"+Si(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Si()}};function hd(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Oi(r,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(q(1));return t(Oi)(r,e)}if(typeof r!="function")throw new Error(q(2));var i=r,a=e,s=[],c=s,l=!1;function d(){c===s&&(c=s.slice())}function h(){if(l)throw new Error(q(3));return a}function p(w){if(typeof w!="function")throw new Error(q(4));if(l)throw new Error(q(5));var C=!0;return d(),c.push(w),function(){if(C){if(l)throw new Error(q(6));C=!1,d();var A=c.indexOf(w);c.splice(A,1),s=null}}}function y(w){if(!hd(w))throw new Error(q(7));if(typeof w.type>"u")throw new Error(q(8));if(l)throw new Error(q(9));try{l=!0,a=i(a,w)}finally{l=!1}for(var C=s=c,E=0;E<C.length;E++){var A=C[E];A()}return w}function g(w){if(typeof w!="function")throw new Error(q(10));i=w,y({type:fo.REPLACE})}function b(){var w,C=p;return w={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(q(11));function v(){A.next&&A.next(h())}v();var S=C(v);return{unsubscribe:S}}},w[qs]=function(){return this},w}return y({type:fo.INIT}),n={dispatch:y,subscribe:p,getState:h,replaceReducer:g},n[qs]=b,n}function md(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:fo.INIT});if(typeof n>"u")throw new Error(q(12));if(typeof t(void 0,{type:fo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Ys(r){for(var e=Object.keys(r),t={},n=0;n<e.length;n++){var i=e[n];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,c;try{md(t)}catch(l){c=l}return function(d,h){if(d===void 0&&(d={}),c)throw c;if(0)var p;for(var y=!1,g={},b=0;b<a.length;b++){var w=a[b],C=t[w],E=d[w],A=C(E,h);if(typeof A>"u"){var v=h&&h.type;throw new Error(q(14))}g[w]=A,y=y||A!==E}return y=y||a.length!==Object.keys(d).length,y?g:d}}function At(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Js(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(q(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=At.apply(void 0,c)(i.dispatch),uo(uo({},i),{},{dispatch:a})}}}function Xs(r){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,r):s(c)}}};return e}var Qs=Xs();Qs.withExtraArgument=Xs;var wi=Qs;var nc=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yd=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(h){return l([d,h])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(r,t)}catch(h){d=[6,h],i=0}finally{n=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Rt=function(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r},gd=Object.defineProperty,bd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,ec=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,tc=function(r,e,t){return e in r?gd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Be=function(r,e){for(var t in e||(e={}))vd.call(e,t)&&tc(r,t,e[t]);if(ec)for(var n=0,i=ec(e);n<i.length;n++){var t=i[n];Sd.call(e,t)&&tc(r,t,e[t])}return r},Ci=function(r,e){return bd(r,xd(e))},Od=function(r,e,t){return new Promise(function(n,i){var a=function(l){try{c(t.next(l))}catch(d){i(d)}},s=function(l){try{c(t.throw(l))}catch(d){i(d)}},c=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};c((t=t.apply(r,e)).next())})};var wd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?At:At.apply(null,arguments)},Mg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Cd(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Ed=function(r){nc(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Rt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Rt([void 0],t.concat(this))))},e}(Array),Ad=function(r){nc(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Rt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Rt([void 0],t.concat(this))))},e}(Array);function Ri(r){return ce(r)?lo(r,function(){}):r}function Rd(r){return typeof r=="boolean"}function Nd(){return function(e){return Id(e)}}function Id(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,n=r.immutableCheck,i=n===void 0?!0:n,a=r.serializableCheck,s=a===void 0?!0:a,c=new Ed;if(t&&(Rd(t)?c.push(wi):c.push(wi.withExtraArgument(t.extraArgument))),0){if(i)var l;if(s)var d}return c}var Ei=!0;function ic(r){var e=Nd(),t=r||{},n=t.reducer,i=n===void 0?void 0:n,a=t.middleware,s=a===void 0?e():a,c=t.devTools,l=c===void 0?!0:c,d=t.preloadedState,h=d===void 0?void 0:d,p=t.enhancers,y=p===void 0?void 0:p,g;if(typeof i=="function")g=i;else if(Cd(i))g=Ys(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Ei&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ei&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Js.apply(void 0,b),C=At;l&&(C=wd(Be({trace:!Ei},typeof l=="object"&&l)));var E=new Ad(w),A=E;Array.isArray(y)?A=Rt([w],y):typeof y=="function"&&(A=y(E));var v=C.apply(void 0,A);return Oi(g,h,v)}function We(r,e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Be(Be({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:n[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(n){return n.type===r},t}function ac(r){var e={},t=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return r(i),[e,t,n]}function _d(r){return typeof r=="function"}function Pd(r,e,t,n){t===void 0&&(t=[]);var i=typeof e=="function"?ac(e):[e,t,n],a=i[0],s=i[1],c=i[2],l;if(_d(r))l=function(){return Ri(r())};else{var d=Ri(r);l=function(){return d}}function h(p,y){p===void 0&&(p=l());var g=Rt([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return g.filter(function(b){return!!b}).length===0&&(g=[c]),g.reduce(function(b,w){if(w)if(Ce(b)){var C=b,E=w(C,y);return E===void 0?b:E}else{if(ce(b))return lo(b,function(A){return w(A,y)});var E=w(b,y);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},p)}return h.getInitialState=l,h}function Td(r,e){return r+"/"+e}function sc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Ri(r.initialState),n=r.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var p=n[h],y=Td(e,h),g,b;"reducer"in p?(g=p.reducer,b=p.prepare):g=p,a[h]=g,s[y]=g,c[h]=b?We(y,b):We(y)});function l(){var h=typeof r.extraReducers=="function"?ac(r.extraReducers):[r.extraReducers],p=h[0],y=p===void 0?{}:p,g=h[1],b=g===void 0?[]:g,w=h[2],C=w===void 0?void 0:w,E=Be(Be({},y),s);return Pd(t,function(A){for(var v in E)A.addCase(v,E[v]);for(var S=0,O=b;S<O.length;S++){var P=O[S];A.addMatcher(P.matcher,P.reducer)}C&&A.addDefaultCase(C)})}var d;return{name:e,reducer:function(h,p){return d||(d=l()),d(h,p)},actions:c,caseReducers:a,getInitialState:function(){return d||(d=l()),d.getInitialState()}}}var Fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ld=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Fd[Math.random()*64|0];return e},kd=["name","message","stack","code"],Ai=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),rc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Md=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=kd;t<n.length;t++){var i=n[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},Bg=function(){function r(e,t,n){var i=We(e+"/fulfilled",function(h,p,y,g){return{payload:h,meta:Ci(Be({},g||{}),{arg:y,requestId:p,requestStatus:"fulfilled"})}}),a=We(e+"/pending",function(h,p,y){return{payload:void 0,meta:Ci(Be({},y||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=We(e+"/rejected",function(h,p,y,g,b){return{payload:g,error:(n&&n.serializeError||Md)(h||"Rejected"),meta:Ci(Be({},b||{}),{arg:y,requestId:p,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function d(h){return function(p,y,g){var b=n?.idGenerator?n.idGenerator(h):Ld(),w=new l,C,E=!1;function A(S){C=S,w.abort()}var v=function(){return Od(this,null,function(){var S,O,P,M,D,$,N;return yd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),M=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:g}),Ud(M)?[4,M]:[3,2];case 1:M=m.sent(),m.label=2;case 2:if(M===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,D=new Promise(function(x,R){return w.signal.addEventListener("abort",function(){return R({name:"AbortError",message:C||"Aborted"})})}),p(a(b,h,(O=n?.getPendingMeta)==null?void 0:O.call(n,{requestId:b,arg:h},{getState:y,extra:g}))),[4,Promise.race([D,Promise.resolve(t(h,{dispatch:p,getState:y,extra:g,requestId:b,signal:w.signal,abort:A,rejectWithValue:function(x,R){return new Ai(x,R)},fulfillWithValue:function(x,R){return new rc(x,R)}})).then(function(x){if(x instanceof Ai)throw x;return x instanceof rc?i(x.payload,b,h,x.meta):i(x,b,h)})])];case 3:return P=m.sent(),[3,5];case 4:return $=m.sent(),P=$ instanceof Ai?s(null,b,h,$.payload,$.meta):s($,b,h),[3,5];case 5:return N=n&&!n.dispatchConditionRejection&&s.match(P)&&P.meta.condition,N||p(P),[2,P]}})})}();return Object.assign(v,{abort:A,requestId:b,arg:h,unwrap:function(){return v.then($d)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function $d(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ud(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var cc="listener",lc="completed",uc="cancelled",Wg="task-"+uc,Hg="task-"+lc,zg=cc+"-"+uc,jg=cc+"-"+lc;var Ni="listenerMiddleware";var Vg=We(Ni+"/add"),Kg=We(Ni+"/removeAll"),Gg=We(Ni+"/remove");var oc,Zg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(oc||(oc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Dd=function(r){return function(e){setTimeout(e,r)}},qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dd(10);Vs();window.ftReduxStores||(window.ftReduxStores={});var He=class r{static get(e){var t;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(st(a))return a;if(i==null)return;let s=sc({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),c=ic({reducer:(l,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...d.overwrites}:s.reducer(l,d)});return window.ftReduxStores[i.name]=new r(s,c)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new yr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...l)=>{let d=c(...l);return this.reduxStore.dispatch(d),d}:l=>{this.setState({[s]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Bd(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))st(e)&&e.clear()}var Fi={};U(Fi,{scrollHelper:()=>Ti});var _i,po=new Map,Pi=class{lock(e,t){if(t){let n=po.get(t);if(n==null||n===e)return po.set(t,e),t}}release(e,t){t&&po.get(t)===e&&po.delete(t)}findFirstScrollableParent(e){let t,n=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let d=l,h=this.elementCanScroll(d);if(h&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else h&&c==null&&(c=d)}t=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let n=0;for(;t&&t.offsetParent!==e.offsetParent;)n+=t.offsetTop,t=t.offsetParent;return n+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=tn(0,(s-n.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(t?.position,c)*(a-s)+s;n.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(_i=window.FluidTopicsScrollHelper)!==null&&_i!==void 0?_i:new Pi;var Ti=window.FluidTopicsScrollHelper;var Li={};U(Li,{shadowQuerySelector:()=>Wd,shadowQuerySelectorAll:()=>Hd});function Wd(r,e,...t){var n;let i=r.querySelector(e);for(let a of t)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Hd(r,e,...t){let n=[...r.querySelectorAll(e)];for(let i of t)n=n.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return n}var ki={};U(ki,{serializeRequest:()=>jd});function zd(r){return`"${r}"`}function jd(r,e){var t,n,i,a,s,c,l,d,h;let p=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((n=e.query)===null||n===void 0?void 0:n.length)>0&&p.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&p.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&p.append("virtual-field",e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&p.append("sort","last_update");let y=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(y.length>0){let C=y.map(E=>{var A,v;let S=((v=(A=E.valueFilter)===null||A===void 0?void 0:A.values)!==null&&v!==void 0?v:[]).map(O=>O.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(O=>encodeURIComponent(zd(O))).join("_");return`${E.key}~${S}`}).join("*");p.append("value-filters",C)}let g=(l=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(g.length>0){let C=g.map(E=>{var A;return`${E.key}~${(A=E.dateFilter)===null||A===void 0?void 0:A.type.toLowerCase()}`}).join("*");p.append("date-filters",C)}let b=(h=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&h!==void 0?h:[];if(b.length>0){let C=b.map(E=>{var A,v;return`${E.key}~${(A=E.rangeFilter)===null||A===void 0?void 0:A.from}_${(v=E.rangeFilter)===null||v===void 0?void 0:v.to}`}).join("*");p.append("range-filters",C)}return new URL(`${r.replace(/\/+$/,"")}/search?${p.toString()}`).href}var Mi={};U(Mi,{toFtFormComponent:()=>Vd});var ho=Symbol("elementInternals");function Vd(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[ho].form}constructor(...i){super(i),this[ho]=this.attachInternals(),this[ho].role=e}setFormValue(i){this[ho].setFormValue(i)}}return t}var $i={};U($i,{DateFormatter:()=>Nt});var Nt=class{static format(e,t,n,i){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,i)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Ui,Di,Bi,Wi,Kd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Bi=(Di=(Ui=window.safari)===null||Ui===void 0?void 0:Ui.pushNotification)===null||Di===void 0?void 0:Di.toString())!==null&&Bi!==void 0?Bi:"")==="[object SafariRemoteNotification]",Gd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Wi=window.ftGlobals)!==null&&Wi!==void 0?Wi:{lit:zo,litDecorators:jo,litRepeat:Ko,litClassMap:Go,litStyleMap:Zo,litUnsafeHTML:qo,wcUtils:{...Jo,...Yo,...Qo,...$i,...en,...on,...Fn,...$n,...Zn,...Tn,...Xn,...Yn,..._s,...rn,...ti,...ri,...Ts,...oi,...Ii,...qn,...Fi,...Li,...ki,...Mi,isSafari:Kd,isTouchScreen:Gd,setVariable:qr}};var $b={},dc=T`
50
+ `;var ks={};var ai={};$(ai,{ParametrizedLabelResolver:()=>gr});var gr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,i;e=this.resolvePluralKey(e,t);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(n,s))),e}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let n=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ti={};$(Ti,{FtCommandQueue:()=>yr,FtLitElementRedux:()=>ge,FtReduxStore:()=>ze,clearAllStores:()=>Vd,isFtReduxStore:()=>ct,redux:()=>Ue,reduxEventListener:()=>cd,reduxReactive:()=>sd});var sd=()=>(r,e)=>{var t;let n=r.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},Ue=r=>{let e=r??{};return(t,n)=>{var i;let a={hasChanged:ir,attribute:!1,...e};I(a)(t,n);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},cd=r=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,r)};var yr=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}};function ct(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Us,Ms,$s,so=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),lt=Symbol("internalStores"),ge=class extends K{constructor(){super(...arguments),this[Us]=new Map,this[Ms]=new Map,this[$s]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[lt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[lt].get(e)}addStore(e,t){var n;t=(n=t??(ct(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[lt].delete(t)}setupStore(e,t){this[lt].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[lt].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Me].has(e.store):this[Me].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var n;this[Me].set(e,t.subscribe(()=>this.updateFromStores())),ct(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||t.name===i.store)){let s=c=>this[a](c);t.eventBus.addEventListener(i.eventName,s),this[so].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Me].forEach((e,t)=>this.unsubscribeFromStore(t)),this[so].forEach(e=>e()),this[so]=[]}unsubscribeFromStore(e){this[Me].has(e)&&this[Me].get(e)(),this[Me].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Us=Me,Ms=lt,$s=so;ge.reduxProperties=new Map;ge.reduxReactiveProperties=new Set;ge.reduxEventListeners=new Map;function ne(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ce(r){return!!r&&!!r[H]}function le(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gd}(r)||Array.isArray(r)||!!r[Vs]||!!(!((e=r.constructor)===null||e===void 0)&&e[Vs])||mi(r)||gi(r))}function ut(r,e,t){t===void 0&&(t=!1),At(r)===0?(t?Object.keys:Ct)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,i){return e(i,n,r)})}function At(r){var e=r[H];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:mi(r)?2:gi(r)?3:0}function Et(r,e){return At(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function ld(r,e){return At(r)===2?r.get(e):r[e]}function Ks(r,e,t){var n=At(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function Gs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function mi(r){return hd&&r instanceof Map}function gi(r){return md&&r instanceof Set}function $e(r){return r.o||r.t}function yi(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Ys(r);delete e[H];for(var t=Ct(e),n=0;n<t.length;n++){var i=t[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function bi(r,e){return e===void 0&&(e=!1),xi(r)||Ce(r)||!le(r)||(At(r)>1&&(r.set=r.add=r.clear=r.delete=ud),Object.freeze(r),e&&ut(r,function(t,n){return bi(n,!0)},!0)),r}function ud(){ne(2)}function xi(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ye(r){var e=hi[r];return e||ne(18,r),e}function dd(r,e){hi[r]||(hi[r]=e)}function di(){return xr}function si(r,e){e&&(ye("Patches"),r.u=[],r.s=[],r.v=e)}function co(r){fi(r),r.p.forEach(fd),r.p=null}function fi(r){r===xr&&(xr=r.l)}function Ds(r){return xr={p:[],l:xr,h:r,m:!0,_:0}}function fd(r){var e=r[H];e.i===0||e.i===1?e.j():e.g=!0}function ci(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||ye("ES5").S(e,r,n),n?(t[H].P&&(co(e),ne(4)),le(r)&&(r=lo(e,r),e.l||uo(e,r)),e.u&&ye("Patches").M(t[H].t,r,e.u,e.s)):r=lo(e,t,[]),co(e),e.u&&e.v(e.u,e.s),r!==qs?r:void 0}function lo(r,e,t){if(xi(e))return e;var n=e[H];if(!n)return ut(e,function(c,l){return Bs(r,n,e,c,l,t)},!0),e;if(n.A!==r)return e;if(!n.P)return uo(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=yi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ut(a,function(c,l){return Bs(r,n,i,c,l,t,s)}),uo(r,i,!1),t&&r.u&&ye("Patches").N(n,t,r.u,r.s)}return n.o}function Bs(r,e,t,n,i,a,s){if(Ce(i)){var c=lo(r,i,a&&e&&e.i!==3&&!Et(e.R,n)?a.concat(n):void 0);if(Ks(t,n,c),!Ce(c))return;r.m=!1}else s&&t.add(i);if(le(i)&&!xi(i)){if(!r.h.D&&r._<1)return;lo(r,i),e&&e.A.l||uo(r,i)}}function uo(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&bi(e,t)}function li(r,e){var t=r[H];return(t?$e(t):r)[e]}function Ws(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function De(r){r.P||(r.P=!0,r.l&&De(r.l))}function ui(r){r.o||(r.o=yi(r.t))}function pi(r,e,t){var n=mi(e)?ye("MapSet").F(e,t):gi(e)?ye("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:di(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,d=vr;s&&(l=[c],d=br);var h=Proxy.revocable(l,d),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,t):ye("ES5").J(e,t);return(t?t.A:di()).p.push(n),n}function pd(r){return Ce(r)||ne(22,r),function e(t){if(!le(t))return t;var n,i=t[H],a=At(t);if(i){if(!i.P&&(i.i<4||!ye("ES5").K(i)))return i.t;i.I=!0,n=Hs(t,a),i.I=!1}else n=Hs(t,a);return ut(n,function(s,c){i&&ld(i.t,s)===c||Ks(n,s,e(c))}),a===3?new Set(n):n}(r)}function Hs(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return yi(r)}function Zs(){function r(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var d=this[H];return vr.get(d,s)},set:function(d){var h=this[H];vr.set(h,s,d)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][H];if(!l.P)switch(l.i){case 5:n(l)&&De(l);break;case 4:t(l)&&De(l)}}}function t(s){for(var c=s.t,l=s.k,d=Ct(l),h=d.length-1;h>=0;h--){var p=d[h];if(p!==H){var g=c[p];if(g===void 0&&!Et(c,p))return!0;var y=l[p],b=y&&y[H];if(b?b.t!==g:!Gs(y,g))return!0}}var O=!!c[H];return d.length!==Ct(c).length+(O?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var d=0;d<c.length;d++)if(!c.hasOwnProperty(d))return!0;return!1}function i(s){s.g&&ne(3,JSON.stringify($e(s)))}var a={};dd("ES5",{J:function(s,c){var l=Array.isArray(s),d=function(p,g){if(p){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,r(b,!0));return y}var O=Ys(g);delete O[H];for(var A=Ct(O),E=0;E<A.length;E++){var C=A[E];O[C]=r(C,p||!!O[C].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(l,s),h={i:l?5:4,A:c?c.A:di(),P:!1,I:!1,R:{},l:c,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,H,{value:h,writable:!0}),d},S:function(s,c,l){l?Ce(c)&&c[H].A===s&&e(s.p):(s.u&&function d(h){if(h&&typeof h=="object"){var p=h[H];if(p){var g=p.t,y=p.k,b=p.R,O=p.i;if(O===4)ut(y,function(S){S!==H&&(g[S]!==void 0||Et(g,S)?b[S]||d(y[S]):(b[S]=!0,De(p)))}),ut(g,function(S){y[S]!==void 0||Et(y,S)||(b[S]=!1,De(p))});else if(O===5){if(n(p)&&(De(p),b.length=!0),y.length<g.length)for(var A=y.length;A<g.length;A++)b[A]=!1;else for(var E=g.length;E<y.length;E++)b[E]=!0;for(var C=Math.min(y.length,g.length),v=0;v<C;v++)y.hasOwnProperty(v)||(b[v]=!0),b[v]===void 0&&d(y[v])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var zs,xr,vi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hd=typeof Map<"u",md=typeof Set<"u",js=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qs=vi?Symbol.for("immer-nothing"):((zs={})["immer-nothing"]=!0,zs),Vs=vi?Symbol.for("immer-draftable"):"__$immer_draftable",H=vi?Symbol.for("immer-state"):"__$immer_state";var gd=""+Object.prototype.constructor,Ct=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Ys=Object.getOwnPropertyDescriptors||function(r){var e={};return Ct(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},hi={},vr={get:function(r,e){if(e===H)return r;var t=$e(r);if(!Et(t,e))return function(i,a,s){var c,l=Ws(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(r,t,e);var n=t[e];return r.I||!le(n)?n:n===li(r.t,e)?(ui(r),r.o[e]=pi(r.A.h,n,r)):n},has:function(r,e){return e in $e(r)},ownKeys:function(r){return Reflect.ownKeys($e(r))},set:function(r,e,t){var n=Ws($e(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var i=li($e(r),e),a=i?.[H];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Gs(t,i)&&(t!==void 0||Et(r.t,e)))return!0;ui(r),De(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return li(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,ui(r),De(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=$e(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){ne(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ne(12)}},br={};ut(vr,function(r,e){br[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),br.deleteProperty=function(r,e){return br.set.call(this,r,e,void 0)},br.set=function(r,e,t){return vr.set.call(this,r[0],e,t,r[0])};var yd=function(){function r(t){var n=this;this.O=js,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=n;return function(O){var A=this;O===void 0&&(O=c);for(var E=arguments.length,C=Array(E>1?E-1:0),v=1;v<E;v++)C[v-1]=arguments[v];return l.produce(O,function(S){var w;return(w=a).call.apply(w,[A,S].concat(C))})}}var d;if(typeof a!="function"&&ne(6),s!==void 0&&typeof s!="function"&&ne(7),le(i)){var h=Ds(n),p=pi(n,i,void 0),g=!0;try{d=a(p),g=!1}finally{g?co(h):fi(h)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(O){return si(h,s),ci(O,h)},function(O){throw co(h),O}):(si(h,s),ci(d,h))}if(!i||typeof i!="object"){if((d=a(i))===void 0&&(d=i),d===qs&&(d=void 0),n.D&&bi(d,!0),s){var y=[],b=[];ye("Patches").M(i,d,y,b),s(y,b)}return d}ne(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(d){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return n.produceWithPatches(d,function(y){return i.apply(void 0,[y].concat(p))})};var s,c,l=n.produce(i,a,function(d,h){s=d,c=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return[d,s,c]}):[l,s,c]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){le(t)||ne(8),Ce(t)&&(t=pd(t));var n=Ds(this),i=pi(this,t,void 0);return i[H].C=!0,fi(n),i},e.finishDraft=function(t,n){var i=t&&t[H],a=i.A;return si(a,n),ci(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!js&&ne(20),this.O=t},e.applyPatches=function(t,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ye("Patches").$;return Ce(t)?s(t,n):this.produce(t,function(c){return s(c,n)})},r}(),re=new yd,bd=re.produce,vy=re.produceWithPatches.bind(re),Sy=re.setAutoFreeze.bind(re),Oy=re.setUseProxies.bind(re),wy=re.applyPatches.bind(re),Ey=re.createDraft.bind(re),Cy=re.finishDraft.bind(re),fo=bd;function Be(r){"@babel/helpers - typeof";return Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(r)}function Si(r,e){if(Be(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Oi(r){var e=Si(r,"string");return Be(e)==="symbol"?e:String(e)}function wi(r,e,t){return e=Oi(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Js(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function po(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Js(Object(t),!0).forEach(function(n){wi(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Js(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Y(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 Xs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ei=function(){return Math.random().toString(36).substring(7).split("").join(".")},ho={INIT:"@@redux/INIT"+Ei(),REPLACE:"@@redux/REPLACE"+Ei(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ei()}};function xd(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Ci(r,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Y(1));return t(Ci)(r,e)}if(typeof r!="function")throw new Error(Y(2));var i=r,a=e,s=[],c=s,l=!1;function d(){c===s&&(c=s.slice())}function h(){if(l)throw new Error(Y(3));return a}function p(O){if(typeof O!="function")throw new Error(Y(4));if(l)throw new Error(Y(5));var A=!0;return d(),c.push(O),function(){if(A){if(l)throw new Error(Y(6));A=!1,d();var C=c.indexOf(O);c.splice(C,1),s=null}}}function g(O){if(!xd(O))throw new Error(Y(7));if(typeof O.type>"u")throw new Error(Y(8));if(l)throw new Error(Y(9));try{l=!0,a=i(a,O)}finally{l=!1}for(var A=s=c,E=0;E<A.length;E++){var C=A[E];C()}return O}function y(O){if(typeof O!="function")throw new Error(Y(10));i=O,g({type:ho.REPLACE})}function b(){var O,A=p;return O={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(Y(11));function v(){C.next&&C.next(h())}v();var S=A(v);return{unsubscribe:S}}},O[Xs]=function(){return this},O}return g({type:ho.INIT}),n={dispatch:g,subscribe:p,getState:h,replaceReducer:y},n[Xs]=b,n}function vd(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:ho.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof t(void 0,{type:ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Qs(r){for(var e=Object.keys(r),t={},n=0;n<e.length;n++){var i=e[n];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,c;try{vd(t)}catch(l){c=l}return function(d,h){if(d===void 0&&(d={}),c)throw c;if(0)var p;for(var g=!1,y={},b=0;b<a.length;b++){var O=a[b],A=t[O],E=d[O],C=A(E,h);if(typeof C>"u"){var v=h&&h.type;throw new Error(Y(14))}y[O]=C,g=g||C!==E}return g=g||a.length!==Object.keys(d).length,g?y:d}}function Rt(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ec(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Y(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=Rt.apply(void 0,c)(i.dispatch),po(po({},i),{},{dispatch:a})}}}function tc(r){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,r):s(c)}}};return e}var rc=tc();rc.withExtraArgument=tc;var Ai=rc;var sc=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sd=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(h){return l([d,h])}}function l(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(r,t)}catch(h){d=[6,h],i=0}finally{n=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Nt=function(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r},Od=Object.defineProperty,wd=Object.defineProperties,Ed=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,Ad=Object.prototype.propertyIsEnumerable,nc=function(r,e,t){return e in r?Od(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},We=function(r,e){for(var t in e||(e={}))Cd.call(e,t)&&nc(r,t,e[t]);if(oc)for(var n=0,i=oc(e);n<i.length;n++){var t=i[n];Ad.call(e,t)&&nc(r,t,e[t])}return r},Ri=function(r,e){return wd(r,Ed(e))},Rd=function(r,e,t){return new Promise(function(n,i){var a=function(l){try{c(t.next(l))}catch(d){i(d)}},s=function(l){try{c(t.throw(l))}catch(d){i(d)}},c=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};c((t=t.apply(r,e)).next())})};var Nd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rt:Rt.apply(null,arguments)},zy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function _d(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Id=function(r){sc(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Nt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nt([void 0],t.concat(this))))},e}(Array),Pd=function(r){sc(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Nt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nt([void 0],t.concat(this))))},e}(Array);function Ii(r){return le(r)?fo(r,function(){}):r}function Td(r){return typeof r=="boolean"}function Fd(){return function(e){return Ld(e)}}function Ld(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,n=r.immutableCheck,i=n===void 0?!0:n,a=r.serializableCheck,s=a===void 0?!0:a,c=new Id;if(t&&(Td(t)?c.push(Ai):c.push(Ai.withExtraArgument(t.extraArgument))),0){if(i)var l;if(s)var d}return c}var Ni=!0;function cc(r){var e=Fd(),t=r||{},n=t.reducer,i=n===void 0?void 0:n,a=t.middleware,s=a===void 0?e():a,c=t.devTools,l=c===void 0?!0:c,d=t.preloadedState,h=d===void 0?void 0:d,p=t.enhancers,g=p===void 0?void 0:p,y;if(typeof i=="function")y=i;else if(_d(i))y=Qs(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Ni&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ni&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ec.apply(void 0,b),A=Rt;l&&(A=Nd(We({trace:!Ni},typeof l=="object"&&l)));var E=new Pd(O),C=E;Array.isArray(g)?C=Nt([O],g):typeof g=="function"&&(C=g(E));var v=A.apply(void 0,C);return Ci(y,h,v)}function He(r,e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return We(We({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:n[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(n){return n.type===r},t}function lc(r){var e={},t=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return r(i),[e,t,n]}function kd(r){return typeof r=="function"}function Ud(r,e,t,n){t===void 0&&(t=[]);var i=typeof e=="function"?lc(e):[e,t,n],a=i[0],s=i[1],c=i[2],l;if(kd(r))l=function(){return Ii(r())};else{var d=Ii(r);l=function(){return d}}function h(p,g){p===void 0&&(p=l());var y=Nt([a[g.type]],s.filter(function(b){var O=b.matcher;return O(g)}).map(function(b){var O=b.reducer;return O}));return y.filter(function(b){return!!b}).length===0&&(y=[c]),y.reduce(function(b,O){if(O)if(Ce(b)){var A=b,E=O(A,g);return E===void 0?b:E}else{if(le(b))return fo(b,function(C){return O(C,g)});var E=O(b,g);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},p)}return h.getInitialState=l,h}function Md(r,e){return r+"/"+e}function uc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Ii(r.initialState),n=r.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var p=n[h],g=Md(e,h),y,b;"reducer"in p?(y=p.reducer,b=p.prepare):y=p,a[h]=y,s[g]=y,c[h]=b?He(g,b):He(g)});function l(){var h=typeof r.extraReducers=="function"?lc(r.extraReducers):[r.extraReducers],p=h[0],g=p===void 0?{}:p,y=h[1],b=y===void 0?[]:y,O=h[2],A=O===void 0?void 0:O,E=We(We({},g),s);return Ud(t,function(C){for(var v in E)C.addCase(v,E[v]);for(var S=0,w=b;S<w.length;S++){var P=w[S];C.addMatcher(P.matcher,P.reducer)}A&&C.addDefaultCase(A)})}var d;return{name:e,reducer:function(h,p){return d||(d=l()),d(h,p)},actions:c,caseReducers:a,getInitialState:function(){return d||(d=l()),d.getInitialState()}}}var $d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dd=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=$d[Math.random()*64|0];return e},Bd=["name","message","stack","code"],_i=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),ic=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Wd=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=Bd;t<n.length;t++){var i=n[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},Gy=function(){function r(e,t,n){var i=He(e+"/fulfilled",function(h,p,g,y){return{payload:h,meta:Ri(We({},y||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),a=He(e+"/pending",function(h,p,g){return{payload:void 0,meta:Ri(We({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=He(e+"/rejected",function(h,p,g,y,b){return{payload:y,error:(n&&n.serializeError||Wd)(h||"Rejected"),meta:Ri(We({},b||{}),{arg:g,requestId:p,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function d(h){return function(p,g,y){var b=n?.idGenerator?n.idGenerator(h):Dd(),O=new l,A,E=!1;function C(S){A=S,O.abort()}var v=function(){return Rd(this,null,function(){var S,w,P,U,D,M,N;return Sd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:g,extra:y}),zd(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,D=new Promise(function(x,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:A||"Aborted"})})}),p(a(b,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:b,arg:h},{getState:g,extra:y}))),[4,Promise.race([D,Promise.resolve(t(h,{dispatch:p,getState:g,extra:y,requestId:b,signal:O.signal,abort:C,rejectWithValue:function(x,R){return new _i(x,R)},fulfillWithValue:function(x,R){return new ic(x,R)}})).then(function(x){if(x instanceof _i)throw x;return x instanceof ic?i(x.payload,b,h,x.meta):i(x,b,h)})])];case 3:return P=m.sent(),[3,5];case 4:return M=m.sent(),P=M instanceof _i?s(null,b,h,M.payload,M.meta):s(M,b,h),[3,5];case 5:return N=n&&!n.dispatchConditionRejection&&s.match(P)&&P.meta.condition,N||p(P),[2,P]}})})}();return Object.assign(v,{abort:C,requestId:b,arg:h,unwrap:function(){return v.then(Hd)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function Hd(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function zd(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var dc="listener",fc="completed",pc="cancelled",Zy="task-"+pc,qy="task-"+fc,Yy=dc+"-"+pc,Jy=dc+"-"+fc;var Pi="listenerMiddleware";var Xy=He(Pi+"/add"),Qy=He(Pi+"/removeAll"),eb=He(Pi+"/remove");var ac,tb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(ac||(ac=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},jd=function(r){return function(e){setTimeout(e,r)}},rb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jd(10);Zs();window.ftReduxStores||(window.ftReduxStores={});var ze=class r{static get(e){var t;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(ct(a))return a;if(i==null)return;let s=uc({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),c=cc({reducer:(l,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...d.overwrites}:s.reducer(l,d)});return window.ftReduxStores[i.name]=new r(s,c)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new yr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...l)=>{let d=c(...l);return this.reduxStore.dispatch(d),d}:l=>{this.setState({[s]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Vd(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ct(e)&&e.clear()}var Ui={};$(Ui,{scrollHelper:()=>ki});var Fi,mo=new Map,Li=class{lock(e,t){if(t){let n=mo.get(t);if(n==null||n===e)return mo.set(t,e),t}}release(e,t){t&&mo.get(t)===e&&mo.delete(t)}findFirstScrollableParent(e){let t,n=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let d=l,h=this.elementCanScroll(d);if(h&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else h&&c==null&&(c=d)}t=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let n=0;for(;t&&t.offsetParent!==e.offsetParent;)n+=t.offsetTop,t=t.offsetParent;return n+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=nn(0,(s-n.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(t?.position,c)*(a-s)+s;n.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fi=window.FluidTopicsScrollHelper)!==null&&Fi!==void 0?Fi:new Li;var ki=window.FluidTopicsScrollHelper;var Mi={};$(Mi,{shadowQuerySelector:()=>Kd,shadowQuerySelectorAll:()=>Gd});function Kd(r,e,...t){var n;let i=r.querySelector(e);for(let a of t)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Gd(r,e,...t){let n=[...r.querySelectorAll(e)];for(let i of t)n=n.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return n}var Bi={};$(Bi,{SearchPlaceConverter:()=>xo,SearchPlaceQueryParams:()=>W,isSearchPlaceQueryParams:()=>Tc,serializeRequest:()=>Jd});var Zd=yl(mc(),1);var gc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(gc||(gc={}));var yc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(yc||(yc={}));var bc;(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"})(bc||(bc={}));var xc;(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"})(xc||(xc={}));var vc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(vc||(vc={}));var Sc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Sc||(Sc={}));var Oc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Oc||(Oc={}));var wc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(wc||(wc={}));var Ec;(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"})(Ec||(Ec={}));var Cc;(function(r){r.ASC="ASC",r.DESC="DESC"})(Cc||(Cc={}));var Ac;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ac||(Ac={}));var $i;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})($i||($i={}));var _c=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var Rc;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Rc||(Rc={}));var bo;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(bo||(bo={}));var Nc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Nc||(Nc={}));var Sr;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Sr||(Sr={}));var Ic=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var It;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(It||(It={}));var Di;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Di||(Di={}));var G;(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"})(G||(G={}));var Pc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Pc||(Pc={}));var xb={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN],[G.DEVELOPER]:[G.BETA_USER,G.DEBUG_USER]};function qd(r){return`"${r}"`}function Yd(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Jd(r,e){return new xo(r,{}).serialize(e)}var W;(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"})(W||(W={}));var Xd=new Set(Object.values(W));function Tc(r){return Xd.has(r)}var xo=class{constructor(e,t){this.baseUrl=e,this.predefinedSorts=t,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t="/search"){let n=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${t}?${n}`).href}toURLSearchParams(e){var t,n,i,a,s,c,l,d,h,p;let g=new URLSearchParams({[W.LOCALE]:(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(W.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&g.append(W.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(W.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&g.append(W.SORT,"last_update");let y=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(E=>E.valueFilter))!==null&&s!==void 0?s:[];if(y.length>0){let E=y.map(C=>{var v,S;let w=((S=(v=C.valueFilter)===null||v===void 0?void 0:v.values)!==null&&S!==void 0?S:[]).map(P=>this.escapeFilters(P)).map(P=>encodeURIComponent(qd(P))).join("_");return`${C.key}~${w}`}).join("*");g.append(W.VALUE_FILTERS,E)}let b=(l=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(b.length>0){let E=b.map(C=>{var v;return`${C.key}~${(v=C.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");g.append(W.DATE_FILTERS,E)}let O=(h=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let E=O.map(C=>{var v,S;return`${C.key}~${(v=C.rangeFilter)===null||v===void 0?void 0:v.from}_${(S=C.rangeFilter)===null||S===void 0?void 0:S.to}`}).join("*");g.append(W.RANGE_FILTERS,E)}let A=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let E in A)g.append(E,A[E]);return g}parse(e){var t;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,n,i,a,s,c,l,d;let h=((t=e.get(W.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),p=((n=e.get(W.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),g=(i=e.get(W.SCOPE))!==null&&i!==void 0?i:"default",y={};for(let b of e.keys())Tc(b)||(y[b]=e.get(b));return{contentLocale:e.get(W.LOCALE)==="all"?void 0:(a=e.get(W.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get(W.QUERY))!==null&&s!==void 0?s:""),scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:_c(h)?h:"EVERYWHERE",sort:(d=(l=this.predefinedSorts[p])!==null&&l!==void 0?l:this.predefinedSorts.DEFAULT)!==null&&d!==void 0?d:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:y}}parseCompatFilters(e){var t,n,i,a,s,c;let l=[];return e.has(W.FILTERS)&&(l=this.parseValueFilters((t=e.get(W.FILTERS))!==null&&t!==void 0?t:"")),(n=e.has(W.PERIOD))!==null&&n!==void 0&&n&&(l=[...l,...this.parseLegacyPeriodFilter(((i=e.get(W.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...l,...this.parseValueFilters((a=e.get(W.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(W.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(W.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Yd).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Sr[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,n,i]of this.filtersEscapeMapping)e=e.replaceAll(t,n);return e}superEscapeFilters(e){for(let[t,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[t,n,i]of this.filtersEscapeMapping)e=e.replace(i,t);return e}parseLegacyPeriodFilter(e){if(Ic(e))return[{key:"ft:lastEdition",dateFilter:{type:Sr[e]}}];if(e.startsWith("CUSTOM_")){let[t,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Wi={};$(Wi,{toFtFormComponent:()=>Qd});var vo=Symbol("elementInternals");function Qd(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[vo].form}constructor(...i){super(i),this[vo]=this.attachInternals(),this[vo].role=e}setFormValue(i){this[vo].setFormValue(i)}}return t}var Hi={};$(Hi,{DateFormatter:()=>Pt});var Pt=class{static format(e,t,n,i){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,i)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var zi,ji,Vi,Ki,ef=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Vi=(ji=(zi=window.safari)===null||zi===void 0?void 0:zi.pushNotification)===null||ji===void 0?void 0:ji.toString())!==null&&Vi!==void 0?Vi:"")==="[object SafariRemoteNotification]",tf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ki=window.ftGlobals)!==null&&Ki!==void 0?Ki:{lit:Ko,litDecorators:Go,litRepeat:qo,litClassMap:Yo,litStyleMap:Jo,litUnsafeHTML:Xo,wcUtils:{...en,...Qo,...rn,...Hi,...on,...sn,...Un,...Bn,...Jn,...kn,...ti,...Qn,...Fs,...an,...ni,...ii,...ks,...ai,...Ti,...Xn,...Ui,...Mi,...Bi,...Wi,isSafari:ef,isTouchScreen:tf,setVariable:Jr}};var i0={},Fc=T`
51
51
  [part="no-results-message"] {
52
52
  text-align: center;
53
53
  padding: 12px;
54
54
  }
55
- `;var Zd=fl(pc(),1);var hc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(hc||(hc={}));var mc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(mc||(mc={}));var yc;(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"})(yc||(yc={}));var gc;(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"})(gc||(gc={}));var bc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(bc||(bc={}));var xc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(xc||(xc={}));var vc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(vc||(vc={}));var Sc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Sc||(Sc={}));var Oc;(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"})(Oc||(Oc={}));var wc;(function(r){r.ASC="ASC",r.DESC="DESC"})(wc||(wc={}));var Cc;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Cc||(Cc={}));var Hi;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Hi||(Hi={}));var Ec;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Ec||(Ec={}));var go;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(go||(go={}));var Ac;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Ac||(Ac={}));var Rc;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Rc||(Rc={}));var _t;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(_t||(_t={}));var zi;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(zi||(zi={}));var K;(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"})(K||(K={}));var Nc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Nc||(Nc={}));var Vb={[K.PERSONAL_BOOK_SHARE_USER]:[K.PERSONAL_BOOK_USER],[K.HTML_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.PDF_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.KHUB_ADMIN]:[K.CONTENT_PUBLISHER],[K.ADMIN]:[K.KHUB_ADMIN,K.USERS_ADMIN,K.PORTAL_ADMIN],[K.DEVELOPER]:[K.BETA_USER,K.DEBUG_USER]};var Ic=T`
56
- `;var qd="ft-app-info",ji=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Yd={session:(r,e)=>{ae(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>F.eventBus.dispatchEvent(new ji(e.payload)),0))}},F=He.get({name:qd,reducers:Yd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var ut=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=F.getState(),i=e??n;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let n=r.get(e);if(n)t(n);else{let i=F.subscribe(()=>{n=r.get(e),n&&(i(),t(n))})}})}};var Ee=class{constructor(e=!0,t){var n;this.overrideApi=t;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new pe,this.cache=e?i.commonCache:new pe}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}clearCache(){this.cache.clearAll()}};var _c,Jd=Symbol("clearAfterUnitTest"),bo=class extends Ee{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_c]=()=>{this.defaultMessages={},this.cache=new pe,this.listeners={}},this.currentUiLocale=F.getState().uiLocale,F.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=F.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var n;if(e=e.toLowerCase(),Object.keys(t).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...t};ae(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,n;return this.fetchContext(e),(n=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,t){let n=e.toLowerCase();return this.resolveContext(n)[t]}resolveMessage(e,t,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new mr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>Zr(0).then(()=>t()).catch(()=>null)))}};_c=Jd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bo{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bo{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var dt=window.FluidTopicsI18nService,Pc=window.FluidTopicsCustomI18nService;var J=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},j=class extends V{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=()=>ut.get(),this.messageContexts=[],this.cache=new pe,this.cleanSessionDebouncer=new Te}render(){return Z`
55
+ `;var Lc=T`
56
+ `;var rf="ft-app-info",Gi=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},of={session:(r,e)=>{se(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>F.eventBus.dispatchEvent(new Gi(e.payload)),0))}},F=ze.get({name:rf,reducers:of,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var dt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=F.getState(),i=e??n;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let n=r.get(e);if(n)t(n);else{let i=F.subscribe(()=>{n=r.get(e),n&&(i(),t(n))})}})}};var Ae=class{constructor(e=!0,t){var n;this.overrideApi=t;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new he,this.cache=e?i.commonCache:new he}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):dt.await()}clearCache(){this.cache.clearAll()}};var kc,nf=Symbol("clearAfterUnitTest"),So=class extends Ae{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[kc]=()=>{this.defaultMessages={},this.cache=new he,this.listeners={}},this.currentUiLocale=F.getState().uiLocale,F.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=F.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var n;if(e=e.toLowerCase(),Object.keys(t).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...t};se(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,n;return this.fetchContext(e),(n=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,t){let n=e.toLowerCase();return this.resolveContext(n)[t]}resolveMessage(e,t,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new gr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>Yr(0).then(()=>t()).catch(()=>null)))}};kc=nf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends So{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends So{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var ft=window.FluidTopicsI18nService,Uc=window.FluidTopicsCustomI18nService;var X=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},V=class extends K{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=()=>dt.get(),this.messageContexts=[],this.cache=new he,this.cleanSessionDebouncer=new Fe}render(){return q`
57
57
  <slot></slot>
58
- `}update(e){super.update(e),e.has("baseUrl")&&(F.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&F.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&F.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&F.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&F.actions.noCustom(this.noCustom),e.has("editorMode")&&F.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&F.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&F.actions.session(this.session),e.has("availableUiLocales")&&F.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>dt.addContext(t)),e.has("openExternalDocumentInNewTab")&&F.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&F.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&F.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};j.elementDefinitions={};j.styles=Ic;J([_()],j.prototype,"baseUrl",void 0);J([_()],j.prototype,"apiIntegrationIdentifier",void 0);J([_()],j.prototype,"uiLocale",void 0);J([re(null)],j.prototype,"availableUiLocales",void 0);J([re(null)],j.prototype,"metadataConfiguration",void 0);J([_({type:Boolean})],j.prototype,"editorMode",void 0);J([_({type:Boolean})],j.prototype,"noCustom",void 0);J([_({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);J([_({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],j.prototype,"noCustomComponent",void 0);J([_({type:Boolean})],j.prototype,"withManualResources",void 0);J([_({type:Boolean})],j.prototype,"navigatorOnline",void 0);J([_({type:Boolean})],j.prototype,"forcedOffline",void 0);J([_({type:Object})],j.prototype,"apiProvider",void 0);J([re([])],j.prototype,"messageContexts",void 0);J([re(void 0)],j.prototype,"session",void 0);var xo=class extends Ee{async listMySearches(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vo=class extends Ee{async listMyBookmarks(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xd="ft-user-assets",So=He.get({name:Xd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Vi=class{constructor(){this.currentSession=F.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vo,this.savedSearchesService=new xo,F.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=F.getState();ae((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),So.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),So.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();So.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;So.actions.bookmarks(t)}}},D0=new Vi;var Ki=class{addCommand(e,t=!1){F.commands.add(e,t)}consumeCommand(e){return F.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ki;var Gi=class{highlightHtml(e,t,n){ei(e,t,n)}};window.FluidTopicsHighlightHtmlService=new Gi;var Zi=class{isDate(e){var t,n,i,a;return(a=(i=((n=(t=F.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,t){var n,i,a;return Nt.format(e,(n=t?.locale)!==null&&n!==void 0?n:F.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Zi;Y("ft-app-context")(j);var qi=class r extends Event{constructor(){super(r.eventName)}};qi.eventName="search-context-clear-all-filters";var Qd=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ji=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Yi=Symbol("registerInterval");function ef(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Yi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Yi]):this.dispatchEvent(new Ji)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yi,Qd([ot()],t.prototype,"stateManager",void 0),t}var Pt=class extends ef(me){};var Tc=T`
58
+ `}update(e){super.update(e),e.has("baseUrl")&&(F.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&F.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&F.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&F.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&F.actions.noCustom(this.noCustom),e.has("editorMode")&&F.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&F.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&F.actions.session(this.session),e.has("availableUiLocales")&&F.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>ft.addContext(t)),e.has("openExternalDocumentInNewTab")&&F.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&F.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&F.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};V.elementDefinitions={};V.styles=Lc;X([I()],V.prototype,"baseUrl",void 0);X([I()],V.prototype,"apiIntegrationIdentifier",void 0);X([I()],V.prototype,"uiLocale",void 0);X([oe(null)],V.prototype,"availableUiLocales",void 0);X([oe(null)],V.prototype,"metadataConfiguration",void 0);X([I({type:Boolean})],V.prototype,"editorMode",void 0);X([I({type:Boolean})],V.prototype,"noCustom",void 0);X([I({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);X([I({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],V.prototype,"noCustomComponent",void 0);X([I({type:Boolean})],V.prototype,"withManualResources",void 0);X([I({type:Boolean})],V.prototype,"navigatorOnline",void 0);X([I({type:Boolean})],V.prototype,"forcedOffline",void 0);X([I({type:Object})],V.prototype,"apiProvider",void 0);X([oe([])],V.prototype,"messageContexts",void 0);X([oe(void 0)],V.prototype,"session",void 0);var Oo=class extends Ae{async listMySearches(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var wo=class extends Ae{async listMyBookmarks(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var af="ft-user-assets",Eo=ze.get({name:af,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zi=class{constructor(){this.currentSession=F.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wo,this.savedSearchesService=new Oo,F.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=F.getState();se((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Eo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Eo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Eo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Eo.actions.bookmarks(t)}}},G0=new Zi;var qi=class{addCommand(e,t=!1){F.commands.add(e,t)}consumeCommand(e){return F.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qi;var Yi=class{highlightHtml(e,t,n){oi(e,t,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var Ji=class{isDate(e){var t,n,i,a;return(a=(i=((n=(t=F.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,t){var n,i,a;return Pt.format(e,(n=t?.locale)!==null&&n!==void 0?n:F.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ji;J("ft-app-context")(V);var Xi=class r extends Event{constructor(){super(r.eventName)}};Xi.eventName="search-context-clear-all-filters";var sf=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ea=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Qi=Symbol("registerInterval");function cf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Qi]):this.dispatchEvent(new ea)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Qi,sf([nt()],t.prototype,"stateManager",void 0),t}var Tt=class extends cf(ge){};var Mc=T`
59
59
  a {
60
60
  color: inherit;
61
61
  text-decoration: inherit;
62
62
  }
63
- `;var Oo=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank}};var Qi=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Xi=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Ae=class extends V{constructor(){super(...arguments),this.index=0,this.stateManager=new Oo(e=>this.onResultSelected(e))}render(){return Z`
63
+ `;var Co=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank}};var ra=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ta=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Re=class extends K{constructor(){super(...arguments),this.index=0,this.stateManager=new Co(e=>this.onResultSelected(e))}render(){return q`
64
64
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
65
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new Xi(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Ae.elementDefinitions={};Ae.styles=Tc;Qi([_({attribute:!1})],Ae.prototype,"cluster",void 0);Qi([ot()],Ae.prototype,"result",void 0);Qi([_()],Ae.prototype,"index",void 0);Y("ft-search-result-context")(Ae);var ea=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ra=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},ta=Symbol("registerInterval");function tf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(i){this.resultStateManager=i}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ta]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[ta]):this.dispatchEvent(new ra)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=ta,ea([_({attribute:!1})],t.prototype,"cluster",void 0),ea([_({attribute:!1})],t.prototype,"result",void 0),ea([_({attribute:!1,type:Number})],t.prototype,"rank",void 0),t}var Tt=class extends tf(Pt){};var rf={highlightBackgroundColor:o.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Fc=T`
65
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new ta(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Re.elementDefinitions={};Re.styles=Mc;ra([I({attribute:!1})],Re.prototype,"cluster",void 0);ra([nt()],Re.prototype,"result",void 0);ra([I()],Re.prototype,"index",void 0);J("ft-search-result-context")(Re);var oa=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ia=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},na=Symbol("registerInterval");function lf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(i){this.resultStateManager=i}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[na]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[na]):this.dispatchEvent(new ia)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=na,oa([I({attribute:!1})],t.prototype,"cluster",void 0),oa([I({attribute:!1})],t.prototype,"result",void 0),oa([I({attribute:!1,type:Number})],t.prototype,"rank",void 0),t}var Ft=class extends lf(Tt){};var uf={highlightBackgroundColor:o.create("--ft-srt-highlight-background-color","","COLOR","transparent")},$c=T`
66
66
  .kwicmatch {
67
67
  font-weight: 700;
68
- background-color: ${rf.highlightBackgroundColor};
68
+ background-color: ${uf.highlightBackgroundColor};
69
69
  }
70
70
 
71
71
  a {
@@ -76,8 +76,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
76
76
  a:focus {
77
77
  outline: revert;
78
78
  }
79
- `;var kc=Symbol.for(""),of=r=>{if(r?.r===kc)return r?._$litStatic$},oa=r=>({_$litStatic$:r,r:kc});var Lc=new Map,Mc=r=>(e,...t)=>{let n=t.length,i,a,s=[],c=[],l,d=0,h=!1;for(;d<n;){for(l=e[d];d<n&&(a=t[d],(i=of(a))!==void 0);)l+=i+e[++d],h=!0;d!==n&&c.push(a),s.push(l),d++}if(d===n&&s.push(e[n]),h){let p=s.join("$$lit$$");(e=Lc.get(p))===void 0&&(s.raw=s,Lc.set(p,e=s)),t=c}return r(e,...t)},na=Mc(wa),Yx=Mc(Ca);var wo;(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"})(wo||(wo={}));function $c(r){let e=ir[r];return T`
80
- .ft-typography--${Je(r)} {
79
+ `;var Bc=Symbol.for(""),df=r=>{if(r?.r===Bc)return r?._$litStatic$},aa=r=>({_$litStatic$:r,r:Bc});var Dc=new Map,Wc=r=>(e,...t)=>{let n=t.length,i,a,s=[],c=[],l,d=0,h=!1;for(;d<n;){for(l=e[d];d<n&&(a=t[d],(i=df(a))!==void 0);)l+=i+e[++d],h=!0;d!==n&&c.push(a),s.push(l),d++}if(d===n&&s.push(e[n]),h){let p=s.join("$$lit$$");(e=Dc.get(p))===void 0&&(s.raw=s,Dc.set(p,e=s)),t=c}return r(e,...t)},sa=Wc(Aa),nv=Wc(Ra);var Ao;(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"})(Ao||(Ao={}));function Hc(r){let e=ar[r];return T`
80
+ .ft-typography--${Xe(r)} {
81
81
  font-family: ${e.fontFamily};
82
82
  font-size: ${e.fontSize};
83
83
  font-weight: ${e.fontWeight};
@@ -85,17 +85,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
85
85
  line-height: ${e.lineHeight};
86
86
  text-transform: ${e.textCase};
87
87
  }
88
- `}var Uc=o.extend("--ft-typography-font-family","",Yr.titleFont),Re=o.extend("--ft-typography-font-family","",Yr.contentFont),I={fontFamily:Re,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")},Ft={fontFamily:o.extend("--ft-typography-title-font-family","",Uc),fontSize:o.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},Lt={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Uc),fontSize:o.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},kt={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Re),fontSize:o.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Mt={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Re),fontSize:o.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},$t={fontFamily:o.extend("--ft-typography-body1-font-family","",Re),fontSize:o.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Ut={fontFamily:o.extend("--ft-typography-body2-font-family","",Re),fontSize:o.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},Dt={fontFamily:o.extend("--ft-typography-caption-font-family","",Re),fontSize:o.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Bt={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Re),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Wt={fontFamily:o.extend("--ft-typography-overline-font-family","",Re),fontSize:o.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},Ht={fontFamily:o.extend("--ft-typography-button-font-family","",Re),fontSize:o.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},Dc=T`
88
+ `}var zc=o.extend("--ft-typography-font-family","",Xr.titleFont),Ne=o.extend("--ft-typography-font-family","",Xr.contentFont),_={fontFamily:Ne,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")},Lt={fontFamily:o.extend("--ft-typography-title-font-family","",zc),fontSize:o.extend("--ft-typography-title-font-size","",_.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",_.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",_.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",_.textTransform,"inherit")},kt={fontFamily:o.extend("--ft-typography-title-dense-font-family","",zc),fontSize:o.extend("--ft-typography-title-dense-font-size","",_.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",_.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",_.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",_.textTransform,"inherit")},Ut={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Ne),fontSize:o.extend("--ft-typography-subtitle1-font-size","",_.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",_.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",_.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",_.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",_.textTransform,"inherit")},Mt={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Ne),fontSize:o.extend("--ft-typography-subtitle2-font-size","",_.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",_.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",_.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",_.textTransform,"inherit")},$t={fontFamily:o.extend("--ft-typography-body1-font-family","",Ne),fontSize:o.extend("--ft-typography-body1-font-size","",_.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",_.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",_.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",_.textTransform,"inherit")},Dt={fontFamily:o.extend("--ft-typography-body2-font-family","",Ne),fontSize:o.extend("--ft-typography-body2-font-size","",_.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",_.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",_.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",_.textTransform,"inherit")},Bt={fontFamily:o.extend("--ft-typography-caption-font-family","",Ne),fontSize:o.extend("--ft-typography-caption-font-size","",_.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",_.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",_.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",_.textTransform,"inherit")},Wt={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Ne),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",_.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",_.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",_.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",_.textTransform,"inherit")},Ht={fontFamily:o.extend("--ft-typography-overline-font-family","",Ne),fontSize:o.extend("--ft-typography-overline-font-size","",_.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",_.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",_.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",_.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",_.textTransform,"uppercase")},zt={fontFamily:o.extend("--ft-typography-button-font-family","",Ne),fontSize:o.extend("--ft-typography-button-font-size","",_.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",_.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",_.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",_.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",_.textTransform,"uppercase")},jc=T`
89
89
  .ft-typography--title {
90
- font-family: ${Ft.fontFamily};
91
- font-size: ${Ft.fontSize};
92
- font-weight: ${Ft.fontWeight};
93
- letter-spacing: ${Ft.letterSpacing};
94
- line-height: ${Ft.lineHeight};
95
- text-transform: ${Ft.textTransform};
96
- }
97
- `,Bc=T`
98
- .ft-typography--title-dense {
99
90
  font-family: ${Lt.fontFamily};
100
91
  font-size: ${Lt.fontSize};
101
92
  font-weight: ${Lt.fontWeight};
@@ -103,8 +94,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
103
94
  line-height: ${Lt.lineHeight};
104
95
  text-transform: ${Lt.textTransform};
105
96
  }
106
- `,Wc=T`
107
- .ft-typography--subtitle1 {
97
+ `,Vc=T`
98
+ .ft-typography--title-dense {
108
99
  font-family: ${kt.fontFamily};
109
100
  font-size: ${kt.fontSize};
110
101
  font-weight: ${kt.fontWeight};
@@ -112,7 +103,16 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
112
103
  line-height: ${kt.lineHeight};
113
104
  text-transform: ${kt.textTransform};
114
105
  }
115
- `,Hc=T`
106
+ `,Kc=T`
107
+ .ft-typography--subtitle1 {
108
+ font-family: ${Ut.fontFamily};
109
+ font-size: ${Ut.fontSize};
110
+ font-weight: ${Ut.fontWeight};
111
+ letter-spacing: ${Ut.letterSpacing};
112
+ line-height: ${Ut.lineHeight};
113
+ text-transform: ${Ut.textTransform};
114
+ }
115
+ `,Gc=T`
116
116
  .ft-typography--subtitle2 {
117
117
  font-family: ${Mt.fontFamily};
118
118
  font-size: ${Mt.fontSize};
@@ -122,7 +122,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
122
122
  text-transform: ${Mt.textTransform};
123
123
  }
124
124
 
125
- `,zc=T`
125
+ `,Zc=T`
126
126
  .ft-typography--body1 {
127
127
  font-family: ${$t.fontFamily};
128
128
  font-size: ${$t.fontSize};
@@ -131,17 +131,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
131
131
  line-height: ${$t.lineHeight};
132
132
  text-transform: ${$t.textTransform};
133
133
  }
134
- `,jc=T`
134
+ `,qc=T`
135
135
  .ft-typography--body2 {
136
- font-family: ${Ut.fontFamily};
137
- font-size: ${Ut.fontSize};
138
- font-weight: ${Ut.fontWeight};
139
- letter-spacing: ${Ut.letterSpacing};
140
- line-height: ${Ut.lineHeight};
141
- text-transform: ${Ut.textTransform};
142
- }
143
- `,Vc=T`
144
- .ft-typography--caption {
145
136
  font-family: ${Dt.fontFamily};
146
137
  font-size: ${Dt.fontSize};
147
138
  font-weight: ${Dt.fontWeight};
@@ -149,8 +140,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
149
140
  line-height: ${Dt.lineHeight};
150
141
  text-transform: ${Dt.textTransform};
151
142
  }
152
- `,Kc=T`
153
- .ft-typography--breadcrumb {
143
+ `,Yc=T`
144
+ .ft-typography--caption {
154
145
  font-family: ${Bt.fontFamily};
155
146
  font-size: ${Bt.fontSize};
156
147
  font-weight: ${Bt.fontWeight};
@@ -158,8 +149,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
158
149
  line-height: ${Bt.lineHeight};
159
150
  text-transform: ${Bt.textTransform};
160
151
  }
161
- `,Gc=T`
162
- .ft-typography--overline {
152
+ `,Jc=T`
153
+ .ft-typography--breadcrumb {
163
154
  font-family: ${Wt.fontFamily};
164
155
  font-size: ${Wt.fontSize};
165
156
  font-weight: ${Wt.fontWeight};
@@ -167,8 +158,8 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
167
158
  line-height: ${Wt.lineHeight};
168
159
  text-transform: ${Wt.textTransform};
169
160
  }
170
- `,Zc=T`
171
- .ft-typography--button {
161
+ `,Xc=T`
162
+ .ft-typography--overline {
172
163
  font-family: ${Ht.fontFamily};
173
164
  font-size: ${Ht.fontSize};
174
165
  font-weight: ${Ht.fontWeight};
@@ -176,56 +167,65 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
176
167
  line-height: ${Ht.lineHeight};
177
168
  text-transform: ${Ht.textTransform};
178
169
  }
179
- `,qc=T`
170
+ `,Qc=T`
171
+ .ft-typography--button {
172
+ font-family: ${zt.fontFamily};
173
+ font-size: ${zt.fontSize};
174
+ font-weight: ${zt.fontWeight};
175
+ letter-spacing: ${zt.letterSpacing};
176
+ line-height: ${zt.lineHeight};
177
+ text-transform: ${zt.textTransform};
178
+ }
179
+ `,el=T`
180
180
  .ft-typography {
181
181
  vertical-align: inherit;
182
182
  }
183
- `,Yc=[Object.keys(ir).map(r=>$c(r))];var Jc=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},le=class extends V{constructor(){super(...arguments),this.variant=wo.body1}render(){return this.element?na`
184
- <${oa(this.element)}
183
+ `,tl=[Object.keys(ar).map(r=>Hc(r))];var rl=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ue=class extends K{constructor(){super(...arguments),this.variant=Ao.body1}render(){return this.element?sa`
184
+ <${aa(this.element)}
185
185
  part="text"
186
186
  class="ft-typography ft-typography--${this.variant}">
187
187
  <slot></slot>
188
- </${oa(this.element)}>
189
- `:na`
188
+ </${aa(this.element)}>
189
+ `:sa`
190
190
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
191
- `}};le.styles=[Dc,Bc,Wc,Hc,zc,jc,Vc,Kc,Gc,Zc,qc,...Yc];Jc([_()],le.prototype,"element",void 0);Jc([_()],le.prototype,"variant",void 0);Y("ft-typography")(le);var Xc=r=>r??H;function Qc(r){var e,t,n,i,a;return((i=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(n=r.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=r.document)===null||a===void 0?void 0:a.openMode)===go.EXTERNAL}function el(r){var e,t,n,i,a;if(Qc(r))return(i=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(n=r.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case _t.MAP:return r.map.readerUrl;case _t.DOCUMENT:return r.document.viewerUrl;case _t.TOPIC:return r.topic.readerUrl}return""}function tl(r,e){return Xc(e&&Qc(r)?"_blank":void 0)}var Co=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}};var nf=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ft=class extends Tt{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Z`
192
- <a href="${el(this.result)}"
191
+ `}};ue.styles=[jc,Vc,Kc,Gc,Zc,qc,Yc,Jc,Xc,Qc,el,...tl];rl([I()],ue.prototype,"element",void 0);rl([I()],ue.prototype,"variant",void 0);J("ft-typography")(ue);var ol=r=>r??z;function nl(r){var e,t,n,i,a;return((i=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(n=r.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=r.document)===null||a===void 0?void 0:a.openMode)===bo.EXTERNAL}function il(r){var e,t,n,i,a;if(nl(r))return(i=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(n=r.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case It.MAP:return r.map.readerUrl;case It.DOCUMENT:return r.document.viewerUrl;case It.TOPIC:return r.topic.readerUrl}return""}function al(r,e){return ol(e&&nl(r)?"_blank":void 0)}var Ro=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}};var ff=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},pt=class extends Ft{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():q`
192
+ <a href="${il(this.result)}"
193
193
  @click=${this.onResultClick}
194
- target="${tl(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
194
+ target="${al(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
195
195
  part="link">
196
196
  ${this.renderTitle()}
197
197
  </a>
198
- `:z}renderTitle(){return Z`
199
- <ft-typography variant="title" part="text">${or(this.selectTitle(this.result))}</ft-typography>
200
- `}onResultClick(){this.dispatchEvent(new Co(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};ft.elementDefinitions={"ft-typography":le};ft.styles=Fc;nf([_({type:Boolean})],ft.prototype,"withoutLink",void 0);Y("ft-search-result-title")(ft);var af={highlightBackgroundColor:o.create("--ft-sra-highlight-background-color","","COLOR","transparent")},rl=T`
198
+ `:j}renderTitle(){return q`
199
+ <ft-typography variant="title" part="text">${nr(this.selectTitle(this.result))}</ft-typography>
200
+ `}onResultClick(){this.dispatchEvent(new Ro(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};pt.elementDefinitions={"ft-typography":ue};pt.styles=$c;ff([I({type:Boolean})],pt.prototype,"withoutLink",void 0);J("ft-search-result-title")(pt);var pf={highlightBackgroundColor:o.create("--ft-sra-highlight-background-color","","COLOR","transparent")},sl=T`
201
201
  .kwicmatch {
202
202
  font-weight: 700;
203
- background-color: ${af.highlightBackgroundColor};
203
+ background-color: ${pf.highlightBackgroundColor};
204
204
  }
205
- `;var zt=class extends Tt{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?Z`
206
- <ft-typography variant="body1" part="text">${or(e)}</ft-typography>
207
- `:Z`
205
+ `;var jt=class extends Ft{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?q`
206
+ <ft-typography variant="body1" part="text">${nr(e)}</ft-typography>
207
+ `:q`
208
208
  <style>
209
209
  :host {
210
210
  display: none !important;
211
211
  }
212
212
  </style>
213
- `}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};zt.elementDefinitions={"ft-typography":le};zt.styles=rl;Y("ft-search-result-abstract")(zt);var ol=T`
214
- `;var sf=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ia=Symbol("i18nAttributes"),Eo=Symbol("i18nProperties"),vr=Symbol("i18nUnsubs");function Ro(r){var e;class t extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Pc:dt}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...l)}onI18nUpdate(i){var a,s;(a=this[ia])===null||a===void 0||a.forEach((c,l)=>{var d;let h=this.getI18nAttributeValue(l);((d=h?.context)===null||d===void 0?void 0:d.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(l,h,c)}),(s=this[Eo])===null||s===void 0||s.forEach((c,l)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[l]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ia])===null||a===void 0||a.forEach((c,l)=>{let d=this.getI18nAttributeValue(l);d?.context&&d.key&&(i.has(l)||c.argsProvider!=null)&&(i.has(l)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(l,d,c))}),(s=this[Eo])===null||s===void 0||s.forEach((c,l)=>{c.argsProvider!=null&&(this[l]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Eo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ia])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(l=>this.getI18nAttributeValue(l))].map(l=>l?.context)).forEach(l=>l&&this.addI18nMessages(l))}addI18nMessages(i,a){i=i.toLowerCase(),this[vr].has(i)||this[vr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[vr].forEach(i=>i()),this[vr].clear()}}return e=vr,sf([_({type:Boolean})],t.prototype,"useCustomMessageContexts",void 0),t}var nl=class extends Ro(V){},Ao=class extends Ro(me){};var Sr=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ue=class extends Ao{constructor(){super(),this.editorMode=!1,this.addStore(F)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":z:Z`
213
+ `}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};jt.elementDefinitions={"ft-typography":ue};jt.styles=sl;J("ft-search-result-abstract")(jt);var cl=T`
214
+ `;var hf=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ca=Symbol("i18nAttributes"),No=Symbol("i18nProperties"),Or=Symbol("i18nUnsubs");function Io(r){var e;class t extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Uc:ft}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...l)}onI18nUpdate(i){var a,s;(a=this[ca])===null||a===void 0||a.forEach((c,l)=>{var d;let h=this.getI18nAttributeValue(l);((d=h?.context)===null||d===void 0?void 0:d.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(l,h,c)}),(s=this[No])===null||s===void 0||s.forEach((c,l)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[l]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ca])===null||a===void 0||a.forEach((c,l)=>{let d=this.getI18nAttributeValue(l);d?.context&&d.key&&(i.has(l)||c.argsProvider!=null)&&(i.has(l)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(l,d,c))}),(s=this[No])===null||s===void 0||s.forEach((c,l)=>{c.argsProvider!=null&&(this[l]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[No])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ca])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(l=>this.getI18nAttributeValue(l))].map(l=>l?.context)).forEach(l=>l&&this.addI18nMessages(l))}addI18nMessages(i,a){i=i.toLowerCase(),this[Or].has(i)||this[Or].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Or].forEach(i=>i()),this[Or].clear()}}return e=Or,hf([I({type:Boolean})],t.prototype,"useCustomMessageContexts",void 0),t}var ll=class extends Io(K){},_o=class extends Io(ge){};var wr=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},de=class extends _o{constructor(){super(),this.editorMode=!1,this.addStore(F)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":j:q`
215
215
  <span class="ft-i18n">
216
216
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
217
217
  </span>
218
- `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};ue.elementDefinitions={};ue.styles=ol;Sr([ke()],ue.prototype,"editorMode",void 0);Sr([_()],ue.prototype,"context",void 0);Sr([_()],ue.prototype,"key",void 0);Sr([re([])],ue.prototype,"args",void 0);Sr([_()],ue.prototype,"defaultMessage",void 0);var No=class r{static build(e){return new r(e)}static fromGwt(e){return new r(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(t,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(t,n)=>(...i)=>dt.resolveMessage(this.name,n,...i)}),this.rawMessages=new Proxy({},{get:(t,n)=>dt.resolveRawMessage(this.name,n)})}};Y("ft-i18n")(ue);var aa=No.build("searchResultsNumber");var pt=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ne=class extends Ro(Pt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>Z`
218
+ `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};de.elementDefinitions={};de.styles=cl;wr([Ue()],de.prototype,"editorMode",void 0);wr([I()],de.prototype,"context",void 0);wr([I()],de.prototype,"key",void 0);wr([oe([])],de.prototype,"args",void 0);wr([I()],de.prototype,"defaultMessage",void 0);var Po=class r{static build(e){return new r(e)}static fromGwt(e){return new r(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(t,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(t,n)=>(...i)=>ft.resolveMessage(this.name,n,...i)}),this.rawMessages=new Proxy({},{get:(t,n)=>ft.resolveRawMessage(this.name,n)})}};J("ft-i18n")(de);var la=Po.build("searchResultsNumber");var ht=function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ie=class extends Io(Tt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>q`
219
219
  <ft-search-result-title></ft-search-result-title>
220
220
  <ft-search-result-abstract></ft-search-result-abstract>
221
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(aa)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return Z`
222
- <ft-typography part="no-results-message" variant="body1">${aa.messages.results(0)}</ft-typography>
223
- `;let e=this.buildClusters();return Vo(e,t=>t.id,(t,n)=>{var i;return Z`
221
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(la)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return q`
222
+ <ft-typography part="no-results-message" variant="body1">${la.messages.results(0)}</ft-typography>
223
+ `;let e=this.buildClusters();return Zo(e,t=>t.id,(t,n)=>{var i;return q`
224
224
  <ft-search-result-context .cluster=${t} index="${n}"
225
225
  @ft-search-result-cluster-change="${a=>this.onClusterChange(t.id,a.detail)}">
226
226
  ${this.renderResult((i=this.selectedResultByCluster[t.id])!==null&&i!==void 0?i:t.entries[0],n)}
227
227
  </ft-search-result-context>
228
- `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager")&&this.clusterSortCriterion)&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let n=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");n&&Ti.scrollIntoViewIfPossible(n,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(n=>({id:this.clusterId(n.entries[0]),entries:n.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(i=>i.entries.map(a=>({id:this.clusterId(a),entries:[a]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,this.paging.perPage):n}clusterId(e){var t,n,i,a,s;return(a=(n=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&n!==void 0?n:(i=e.topic)===null||i===void 0?void 0:i.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};ne.styles=dc;pt([_({type:String,attribute:"cluster-policy"})],ne.prototype,"clusterPolicy",void 0);pt([_({type:Boolean})],ne.prototype,"displayNoResultsMessage",void 0);pt([_({attribute:!1})],ne.prototype,"renderResult",void 0);pt([re([])],ne.prototype,"clusterSortCriterion",void 0);pt([ke({selector:r=>({...r.request,paging:void 0})})],ne.prototype,"requestWithoutPaging",void 0);pt([ke({selector:r=>r.request.paging})],ne.prototype,"paging",void 0);pt([ke()],ne.prototype,"results",void 0);Y("ft-search-results")(ne);})();
228
+ `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager")&&this.clusterSortCriterion)&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let n=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");n&&ki.scrollIntoViewIfPossible(n,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(n=>({id:this.clusterId(n.entries[0]),entries:n.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(i=>i.entries.map(a=>({id:this.clusterId(a),entries:[a]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,this.paging.perPage):n}clusterId(e){var t,n,i,a,s;return(a=(n=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&n!==void 0?n:(i=e.topic)===null||i===void 0?void 0:i.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};ie.styles=Fc;ht([I({type:String,attribute:"cluster-policy"})],ie.prototype,"clusterPolicy",void 0);ht([I({type:Boolean})],ie.prototype,"displayNoResultsMessage",void 0);ht([I({attribute:!1})],ie.prototype,"renderResult",void 0);ht([oe([])],ie.prototype,"clusterSortCriterion",void 0);ht([Ue({selector:r=>({...r.request,paging:void 0})})],ie.prototype,"requestWithoutPaging",void 0);ht([Ue({selector:r=>r.request.paging})],ie.prototype,"paging",void 0);ht([Ue()],ie.prototype,"results",void 0);J("ft-search-results")(ie);})();
229
229
  /*! Bundled license information:
230
230
 
231
231
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: